aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-09-18 16:09:54 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-01 16:40:51 +0200
commit77208f66ab4ad3c8401b2fe62c93915a5b944331 (patch)
treeda7f7474376f38a5a5c4a8e0c3941999f51228f4 /src/mm-iface-modem.h
parentb622424d2fdcd1f455c3ecbc86a7624a39050f2d (diff)
iface-modem: ensure we're in low power mode when initializing
The power-down command defined by the plugin will be run *only* after having checked for current and modem capabilities, as plugins (e.g. Sierra) may have different commands for that depending on whether they are 3GPP or 3GPP2. We do not reuse the 'modem_power_down' callback from the disabling sequence, as some plugins really behave pretty badly with this (e.g. Samsung CFUN=4 may take up to 30s to complete). So, we let plugins use the power-down command when disabling but avoid launching it during init.
Diffstat (limited to 'src/mm-iface-modem.h')
-rw-r--r--src/mm-iface-modem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h
index 4a3d75b3..d4d9db4f 100644
--- a/src/mm-iface-modem.h
+++ b/src/mm-iface-modem.h
@@ -57,6 +57,14 @@ struct _MMIfaceModem {
GAsyncResult *res,
GError **error);
+ /* Asynchronous modem power-down operation run during initialization */
+ void (*modem_init_power_down) (MMIfaceModem *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (*modem_init_power_down_finish) (MMIfaceModem *self,
+ GAsyncResult *res,
+ GError **error);
+
/* Loading of the Manufacturer property */
void (*load_manufacturer) (MMIfaceModem *self,
GAsyncReadyCallback callback,