aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmm-common/mm-common-bearer-properties.c17
-rw-r--r--libmm-common/mm-common-bearer-properties.h2
2 files changed, 19 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 (
diff --git a/libmm-common/mm-common-bearer-properties.h b/libmm-common/mm-common-bearer-properties.h
index 4e9454b8..715fc61a 100644
--- a/libmm-common/mm-common-bearer-properties.h
+++ b/libmm-common/mm-common-bearer-properties.h
@@ -51,6 +51,8 @@ MMCommonBearerProperties *mm_common_bearer_properties_new_from_dictionary (
GVariant *dictionary,
GError **error);
+MMCommonBearerProperties *mm_common_bearer_properties_dup (MMCommonBearerProperties *orig);
+
void mm_common_bearer_properties_set_apn (
MMCommonBearerProperties *properties,
const gchar *apn);