sms: SMS objects need to be create by `create_modem()' in the Messaging iface

So that plugins can subclass the generic SMS object.
This commit is contained in:
Aleksander Morgado
2012-09-06 15:58:48 +02:00
parent 11740e9075
commit a90d149ce4
4 changed files with 32 additions and 4 deletions

View File

@@ -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;