From 1ac18a06bb37d8745480a9af4fd6bc2f762bf265 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 22 Aug 2012 09:35:15 +0200 Subject: api,dbus: 'ip-type' property now given as a MMBearerIpFamily (u) Instead of using a predefined set of string values for 'ip-type' in Modem.CreateBearer() and Simple.Connect(), we'll use an enumeration. The implementation will then need to convert the requested IP family type to e.g. the correct PDP type in 3GPP modems. This change also consolidates the use of enums in dictionary properties when possible to do so, as with the Rm Protocol. --- libmm-common/mm-simple-connect-properties.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmm-common/mm-simple-connect-properties.c') diff --git a/libmm-common/mm-simple-connect-properties.c b/libmm-common/mm-simple-connect-properties.c index ba69d42a..a0ef96a7 100644 --- a/libmm-common/mm-simple-connect-properties.c +++ b/libmm-common/mm-simple-connect-properties.c @@ -124,7 +124,7 @@ mm_simple_connect_properties_set_password (MMSimpleConnectProperties *self, void mm_simple_connect_properties_set_ip_type (MMSimpleConnectProperties *self, - const gchar *ip_type) + MMBearerIpFamily ip_type) { g_return_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self)); @@ -228,10 +228,10 @@ mm_simple_connect_properties_get_password (MMSimpleConnectProperties *self) return mm_bearer_properties_get_password (self->priv->bearer_properties); } -const gchar * +MMBearerIpFamily mm_simple_connect_properties_get_ip_type (MMSimpleConnectProperties *self) { - g_return_val_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self), NULL); + g_return_val_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self), MM_BEARER_IP_FAMILY_UNKNOWN); return mm_bearer_properties_get_ip_type (self->priv->bearer_properties); } -- cgit v1.2.3-70-g09d2