base-modem: add missing 'reprobe' property setup
The sim hotswap logic likely just uses the getter/setter methods, but we should anyway fix the property definition bits.
This commit is contained in:
@@ -1538,4 +1538,12 @@ mm_base_modem_class_init (MMBaseModemClass *klass)
|
||||
G_TYPE_DBUS_CONNECTION,
|
||||
G_PARAM_READWRITE);
|
||||
g_object_class_install_property (object_class, PROP_CONNECTION, properties[PROP_CONNECTION]);
|
||||
|
||||
properties[PROP_REPROBE] =
|
||||
g_param_spec_boolean (MM_BASE_MODEM_REPROBE,
|
||||
"Reprobe",
|
||||
"Whether the modem needs to be reprobed or not.",
|
||||
FALSE,
|
||||
G_PARAM_READWRITE);
|
||||
g_object_class_install_property (object_class, PROP_REPROBE, properties[PROP_REPROBE]);
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ typedef struct _MMBaseModemPrivate MMBaseModemPrivate;
|
||||
#define MM_BASE_MODEM_PLUGIN "base-modem-plugin"
|
||||
#define MM_BASE_MODEM_VENDOR_ID "base-modem-vendor-id"
|
||||
#define MM_BASE_MODEM_PRODUCT_ID "base-modem-product-id"
|
||||
#define MM_BASE_MODEM_REPROBE "base-modem-reprobe"
|
||||
|
||||
struct _MMBaseModem {
|
||||
MmGdbusObjectSkeleton parent;
|
||||
|
||||
Reference in New Issue
Block a user