diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-10 14:18:00 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-14 07:05:23 +0200 |
commit | 667026f0c829ba1be3d69726d7145b3ecd224dbd (patch) | |
tree | c79fdaf183e4deddce34aac0ca9a05ab11f6c106 /libmm-glib/mm-sms.c | |
parent | 96928909b9294b319374f1440832fbd7d934e0cb (diff) |
api: Sms.Store() now requires the specific memory storage where to store the SMS
... or MM_SMS_STORAGE_UNKNOWN to store it in the default storage.
Diffstat (limited to 'libmm-glib/mm-sms.c')
-rw-r--r-- | libmm-glib/mm-sms.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmm-glib/mm-sms.c b/libmm-glib/mm-sms.c index 3b151b8b..950e92c1 100644 --- a/libmm-glib/mm-sms.c +++ b/libmm-glib/mm-sms.c @@ -347,6 +347,7 @@ mm_sms_send_sync (MMSms *self, /** * mm_sms_store: * @self: A #MMSms. + * @storage: A #MMSmsStorage specifying where to store the SMS, or #MM_SMS_STORAGE_UNKNOWN to use the default. * @cancellable: (allow-none): A #GCancellable or %NULL. * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. * @user_data: User data to pass to @callback. @@ -360,6 +361,7 @@ mm_sms_send_sync (MMSms *self, */ void mm_sms_store (MMSms *self, + MMSmsStorage storage, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) @@ -367,6 +369,7 @@ mm_sms_store (MMSms *self, g_return_if_fail (MM_GDBUS_IS_SMS (self)); mm_gdbus_sms_call_store (self, + storage, cancellable, callback, user_data); @@ -395,6 +398,7 @@ mm_sms_store_finish (MMSms *self, /** * mm_sms_store_sync: * @self: A #MMSms. + * @storage: A #MMSmsStorage specifying where to store the SMS, or #MM_SMS_STORAGE_UNKNOWN to use the default. * @cancellable: (allow-none): A #GCancellable or %NULL. * @error: Return location for error or %NULL. * @@ -407,12 +411,14 @@ mm_sms_store_finish (MMSms *self, */ gboolean mm_sms_store_sync (MMSms *self, + MMSmsStorage storage, GCancellable *cancellable, GError **error) { g_return_val_if_fail (MM_GDBUS_IS_SMS (self), FALSE); return mm_gdbus_sms_call_store_sync (self, + storage, cancellable, error); } |