libmm-common: allow duplicating the bearer properties object
This commit is contained in:
@@ -392,6 +392,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 *
|
MMCommonBearerProperties *
|
||||||
mm_common_bearer_properties_new (void)
|
mm_common_bearer_properties_new (void)
|
||||||
{
|
{
|
||||||
|
@@ -51,6 +51,8 @@ MMCommonBearerProperties *mm_common_bearer_properties_new_from_dictionary (
|
|||||||
GVariant *dictionary,
|
GVariant *dictionary,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
MMCommonBearerProperties *mm_common_bearer_properties_dup (MMCommonBearerProperties *orig);
|
||||||
|
|
||||||
void mm_common_bearer_properties_set_apn (
|
void mm_common_bearer_properties_set_apn (
|
||||||
MMCommonBearerProperties *properties,
|
MMCommonBearerProperties *properties,
|
||||||
const gchar *apn);
|
const gchar *apn);
|
||||||
|
Reference in New Issue
Block a user