summaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-3gpp.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-22 00:13:43 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:55 +0100
commit3acdf7b9b8fe499750a3791c282cf00b5899c6d3 (patch)
tree2eddf815c0acd453bbe7a9d4fa7b087cc46c9a57 /src/mm-iface-modem-3gpp.h
parent050c30db1c5ac9ed5003b73fd4cbf0fe56f3008f (diff)
downloadModemManager-3acdf7b9b8fe499750a3791c282cf00b5899c6d3.tar.gz
iface-modem-3gpp: split unsolicited events setup and enabling
Configuring unsolicited events involves: * Setup unsolicited events. This handles the setup of the unsolicited message handlers in the AT ports, including the setup of the callback to get called when the unsolicited messages are received. * Enable unsolicited events. This tells the modem to actually send the unsolicited messages. * Disable unsolicited events. This tells the modem to stop sending unsolicited messages. * Cleanup unsolicited events. This removes the unsolicited message handlers in the AT ports.
Diffstat (limited to 'src/mm-iface-modem-3gpp.h')
-rw-r--r--src/mm-iface-modem-3gpp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mm-iface-modem-3gpp.h b/src/mm-iface-modem-3gpp.h
index c518e1183..d22bc775e 100644
--- a/src/mm-iface-modem-3gpp.h
+++ b/src/mm-iface-modem-3gpp.h
@@ -54,6 +54,14 @@ struct _MMIfaceModem3gpp {
GAsyncResult *res,
GError **error);
+ /* Asynchronous setting up unsolicited events */
+ void (*setup_unsolicited_events) (MMIfaceModem3gpp *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (*setup_unsolicited_events_finish) (MMIfaceModem3gpp *self,
+ GAsyncResult *res,
+ GError **error);
+
/* Asynchronous enabling of unsolicited events */
void (*enable_unsolicited_events) (MMIfaceModem3gpp *self,
GAsyncReadyCallback callback,
@@ -62,6 +70,14 @@ struct _MMIfaceModem3gpp {
GAsyncResult *res,
GError **error);
+ /* Asynchronous cleaning up of unsolicited events */
+ void (*cleanup_unsolicited_events) (MMIfaceModem3gpp *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (*cleanup_unsolicited_events_finish) (MMIfaceModem3gpp *self,
+ GAsyncResult *res,
+ GError **error);
+
/* Asynchronous disabling of unsolicited events */
void (*disable_unsolicited_events) (MMIfaceModem3gpp *self,
GAsyncReadyCallback callback,