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:
Aleksander Morgado
2016-09-22 19:59:10 +02:00
parent 2a499f5557
commit dd98454a7d
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -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]);
}
+1
View File
@@ -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;