diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-11-25 15:02:31 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:27 +0100 |
commit | 7fa372d1185dc9ea195d3d7d8b8a5cfffe26963e (patch) | |
tree | 60f1842b899f3e1faaa8a10ad648f84c52b054a4 /src/mm-iface-modem.h | |
parent | 0adbd8edadbf3c0a07df59c362977e015481cedb (diff) |
iface-modem: allow plugins to send custom commands after power-up
Just after powering up the modem, plugins can run additional setup commands
themselves, in a new "after" power-up step.
Diffstat (limited to 'src/mm-iface-modem.h')
-rw-r--r-- | src/mm-iface-modem.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h index 67df959a..cac7b54e 100644 --- a/src/mm-iface-modem.h +++ b/src/mm-iface-modem.h @@ -198,6 +198,15 @@ struct _MMIfaceModem { gboolean (*modem_power_up_finish) (MMIfaceModem *self, GAsyncResult *res, GError **error); + + /* Asynchronous additional setup needed after power-up, + * Plugins can implement this to provide custom setups. */ + void (*modem_after_power_up) (MMIfaceModem *self, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*modem_after_power_up_finish) (MMIfaceModem *self, + GAsyncResult *res, + GError **error); }; GType mm_iface_modem_get_type (void); |