diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-22 09:35:15 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-22 09:38:21 +0200 |
commit | 1ac18a06bb37d8745480a9af4fd6bc2f762bf265 (patch) | |
tree | 2074fb1f3cb16e483779dcd4f19db3d6c1c936c1 /libmm-common/mm-bearer-properties.h | |
parent | c15525a1b3c2006e614f75a372f374176f576c23 (diff) |
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.
Diffstat (limited to 'libmm-common/mm-bearer-properties.h')
-rw-r--r-- | libmm-common/mm-bearer-properties.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmm-common/mm-bearer-properties.h b/libmm-common/mm-bearer-properties.h index 3288c33f..8272e6b6 100644 --- a/libmm-common/mm-bearer-properties.h +++ b/libmm-common/mm-bearer-properties.h @@ -58,7 +58,7 @@ void mm_bearer_properties_set_user (MMBearerProperties *properties, void mm_bearer_properties_set_password (MMBearerProperties *properties, const gchar *password); void mm_bearer_properties_set_ip_type (MMBearerProperties *properties, - const gchar *ip_type); + MMBearerIpFamily ip_type); void mm_bearer_properties_set_allow_roaming (MMBearerProperties *properties, gboolean allow_roaming); void mm_bearer_properties_set_number (MMBearerProperties *properties, @@ -69,7 +69,7 @@ void mm_bearer_properties_set_rm_protocol (MMBearerProperties *properties, const gchar *mm_bearer_properties_get_apn (MMBearerProperties *properties); const gchar *mm_bearer_properties_get_user (MMBearerProperties *properties); const gchar *mm_bearer_properties_get_password (MMBearerProperties *properties); -const gchar *mm_bearer_properties_get_ip_type (MMBearerProperties *properties); +MMBearerIpFamily mm_bearer_properties_get_ip_type (MMBearerProperties *properties); gboolean mm_bearer_properties_get_allow_roaming (MMBearerProperties *properties); const gchar *mm_bearer_properties_get_number (MMBearerProperties *properties); MMModemCdmaRmProtocol mm_bearer_properties_get_rm_protocol (MMBearerProperties *properties); |