aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-messaging.h
diff options
context:
space:
mode:
authorCarlo Lobrano <c.lobrano@gmail.com>2016-03-09 11:27:43 +0100
committerAleksander Morgado <aleksander@aleksander.es>2016-03-09 14:43:08 +0100
commitbe317e8b80cd984149ea152c9d00c6bb814e7c88 (patch)
treeb59255b3611d3be0804a0f081e298c967d4b44c5 /src/mm-iface-modem-messaging.h
parent7c2d5b1aa358c4edb94203d7de586d489b656576 (diff)
broadband-modem: fix +CPMS empty parameter support
* Add new async virtual method init_current_storages to MMIfaceModemMessaging * Add logic of init_current_storages to MMBroadbandModem * Add step "INIT_CURRENT_STORAGES" in MMIfaceModemMessaging initialization in order to load and store current SMS storages for mem1 and mem2. * Add usage of current sms storage value for mem1 in place of an empty string parameter when the command AT+CPMS is used. https://bugs.freedesktop.org/show_bug.cgi?id=93135
Diffstat (limited to 'src/mm-iface-modem-messaging.h')
-rw-r--r--src/mm-iface-modem-messaging.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mm-iface-modem-messaging.h b/src/mm-iface-modem-messaging.h
index c27e100c..57fa4521 100644
--- a/src/mm-iface-modem-messaging.h
+++ b/src/mm-iface-modem-messaging.h
@@ -62,6 +62,13 @@ struct _MMIfaceModemMessaging {
GArray **mem2,
GArray **mem3,
GError **error);
+ /* Initializes the state of the storages */
+ void (* init_current_storages) (MMIfaceModemMessaging *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (*init_current_storages_finish) (MMIfaceModemMessaging *self,
+ GAsyncResult *res,
+ GError **error);
/* Set default storage (async) */
void (* set_default_storage) (MMIfaceModemMessaging *self,