aboutsummaryrefslogtreecommitdiff
path: root/libmm-common/mm-common-bearer-properties.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-12 14:06:07 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:49 +0100
commitd19cf55f8f35bd82408ecfce012cdebe0ed2183f (patch)
treed9586b3093267806c2b8a18faab74b15d5556330 /libmm-common/mm-common-bearer-properties.c
parent8782df1b152b0ade1970282fb799ac6608fa3483 (diff)
libmm-common: allow duplicating the bearer properties object
Diffstat (limited to 'libmm-common/mm-common-bearer-properties.c')
-rw-r--r--libmm-common/mm-common-bearer-properties.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libmm-common/mm-common-bearer-properties.c b/libmm-common/mm-common-bearer-properties.c
index cae4caa8..50ddb570 100644
--- a/libmm-common/mm-common-bearer-properties.c
+++ b/libmm-common/mm-common-bearer-properties.c
@@ -393,6 +393,23 @@ mm_common_bearer_properties_new_from_dictionary (GVariant *dictionary,
/*****************************************************************************/
MMCommonBearerProperties *
+mm_common_bearer_properties_dup (MMCommonBearerProperties *orig)
+{
+ GVariant *dict;
+ MMCommonBearerProperties *copy;
+ GError *error = NULL;
+
+ dict = mm_common_bearer_properties_get_dictionary (orig);
+ copy = mm_common_bearer_properties_new_from_dictionary (dict, &error);
+ g_assert_no_error (error);
+ g_variant_unref (dict);
+
+ return copy;
+}
+
+/*****************************************************************************/
+
+MMCommonBearerProperties *
mm_common_bearer_properties_new (void)
{
return (MM_COMMON_BEARER_PROPERTIES (