aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-messaging.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-09-06 15:58:48 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-09-06 19:58:01 +0200
commita90d149ce476010747a32398df8b556ec597afb1 (patch)
tree474cab8192ad5176d457d950d101553519a8594b /src/mm-iface-modem-messaging.c
parent11740e9075fd43009929c57b86d78d82c34aed78 (diff)
sms: SMS objects need to be create by `create_modem()' in the Messaging iface
So that plugins can subclass the generic SMS object.
Diffstat (limited to 'src/mm-iface-modem-messaging.c')
-rw-r--r--src/mm-iface-modem-messaging.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mm-iface-modem-messaging.c b/src/mm-iface-modem-messaging.c
index 278a5ec7..75e42e47 100644
--- a/src/mm-iface-modem-messaging.c
+++ b/src/mm-iface-modem-messaging.c
@@ -39,6 +39,16 @@ mm_iface_modem_messaging_bind_simple_status (MMIfaceModemMessaging *self,
/*****************************************************************************/
+MMSms *
+mm_iface_modem_messaging_create_sms (MMIfaceModemMessaging *self)
+{
+ g_assert (MM_IFACE_MODEM_MESSAGING (self)->create_sms != NULL);
+
+ return MM_IFACE_MODEM_MESSAGING_GET_INTERFACE (self)->create_sms (self);
+}
+
+/*****************************************************************************/
+
typedef struct {
GArray *supported_mem1;
GArray *supported_mem2;