From e75dba639febded0e2878a02f47829cedb6239f7 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Thu, 17 Jan 2013 23:11:09 -0800 Subject: 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 contributed the idea of implementation. --- src/mm-plugin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mm-plugin.c') diff --git a/src/mm-plugin.c b/src/mm-plugin.c index c7a58b77..b6889ef3 100644 --- a/src/mm-plugin.c +++ b/src/mm-plugin.c @@ -802,6 +802,8 @@ mm_plugin_create_modem (MMPlugin *self, port_probes, error); if (modem) { + mm_base_modem_set_hotplugged (modem, mm_device_get_hotplugged (device)); + /* Grab each port */ for (l = port_probes; l; l = g_list_next (l)) { GError *inner_error = NULL; -- cgit v1.2.3-70-g09d2