aboutsummaryrefslogtreecommitdiff
path: root/src/mm-device.h
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2013-01-17 23:11:09 -0800
committerAleksander Morgado <aleksander@lanedo.com>2013-01-18 11:27:51 +0100
commite75dba639febded0e2878a02f47829cedb6239f7 (patch)
tree6b2a027e217599819eac3e8938fadfcc5c75d43d /src/mm-device.h
parent2550cb20a9741378c747233ddea8e7a7daa5c198 (diff)
core: add 'hotplugged' flag to indicate if modem is newly plugged in
This patch adds a 'hotplugged' flag to MMBaseModem to indicate if a modem is newly plugged in. A plugin can use this information to determine if, for example, the modem needs to be soft reset using the ATZ command. Dan Williams <dcbw@redhat.com> contributed the idea of implementation.
Diffstat (limited to 'src/mm-device.h')
-rw-r--r--src/mm-device.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mm-device.h b/src/mm-device.h
index 4849905b..e7065ed7 100644
--- a/src/mm-device.h
+++ b/src/mm-device.h
@@ -58,7 +58,7 @@ struct _MMDeviceClass {
GType mm_device_get_type (void);
-MMDevice *mm_device_new (GUdevDevice *udev_device);
+MMDevice *mm_device_new (GUdevDevice *udev_device, gboolean hotplugged);
void mm_device_grab_port (MMDevice *self,
GUdevDevice *udev_port);
@@ -96,4 +96,6 @@ GList *mm_device_get_port_probe_list (MMDevice *self);
const gchar *mm_device_utils_get_port_driver (GUdevDevice *udev_port);
+gboolean mm_device_get_hotplugged (MMDevice *self);
+
#endif /* MM_DEVICE_H */