aboutsummaryrefslogtreecommitdiff
path: root/src/mm-broadband-modem.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-02-18 12:13:46 +0100
committerAleksander Morgado <aleksander@lanedo.com>2013-02-18 13:47:34 +0100
commit30639606d35dcc323cb13a29b6e0627aad87dd8d (patch)
treec4801df654a93406a4d6dcbe3be7440f97101892 /src/mm-broadband-modem.h
parent263be58465ba0e449d73b65fd69d5dc10423a78f (diff)
broadband-modem: new step during 'enabling_started' to initialize the modem
We previously had the modem initialization command merged with some other port setup commands in the 'modem_init' step of the 'Modem' interface. Instead of doing this, we now split the logic into two separate steps: A first 'enabling_modem_init' modem initialization step is to be run just after the ports have been opened, but only during the first enabling operation, and only if the modem was not hotplugged. A hotplugged modem is assumed to be properly initialized already, so no need to ATZ-it. Also, we will now wait 500ms by default after the modem initialization command has been sent, to let it settle down. The second 'modem_init' step will be run during the 'Modem' interface initialization, and it currently only holds specific setup of the primary and secondary serial ports. We'll be modifying this logic a bit in the next commits, so no big deal to have that step name unchanged.
Diffstat (limited to 'src/mm-broadband-modem.h')
-rw-r--r--src/mm-broadband-modem.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mm-broadband-modem.h b/src/mm-broadband-modem.h
index 481665ac..c3e33547 100644
--- a/src/mm-broadband-modem.h
+++ b/src/mm-broadband-modem.h
@@ -69,6 +69,17 @@ struct _MMBroadbandModemClass {
GAsyncResult *res,
GError **error);
+ /* Modem initialization. During the 'enabling' step, this setup will be
+ * called in order to initialize the modem, only if it wasn't hotplugged,
+ * as we assume that a hotplugged modem is already initialized. */
+ void (* enabling_modem_init) (MMBroadbandModem *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (* enabling_modem_init_finish) (MMBroadbandModem *self,
+ GAsyncResult *res,
+ GError **error);
+
+
/* Last disabling step */
gboolean (* disabling_stopped) (MMBroadbandModem *self,
GError **error);