From 3acdf7b9b8fe499750a3791c282cf00b5899c6d3 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 22 Jan 2012 00:13:43 +0100 Subject: 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. --- src/mm-iface-modem-3gpp.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/mm-iface-modem-3gpp.h') diff --git a/src/mm-iface-modem-3gpp.h b/src/mm-iface-modem-3gpp.h index c518e118..d22bc775 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, -- cgit v1.2.3-70-g09d2