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 /src/mm-modem-helpers.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 'src/mm-modem-helpers.h')
-rw-r--r-- | src/mm-modem-helpers.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index 8da0a176..9733ead0 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -85,7 +85,7 @@ GList *mm_3gpp_parse_cops_test_response (const gchar *reply, /* AT+CGDCONT? (PDP context query) response parser */ typedef struct { guint cid; - gchar *pdp_type; + MMBearerIpFamily pdp_type; gchar *apn; } MM3gppPdpContext; void mm_3gpp_pdp_context_list_free (GList *pdp_list); @@ -152,6 +152,9 @@ MMModemAccessTechnology mm_string_to_access_tech (const gchar *string); gchar *mm_3gpp_parse_operator (const gchar *reply, MMModemCharset cur_charset); +const gchar *mm_3gpp_get_pdp_type_from_ip_family (MMBearerIpFamily family); +MMBearerIpFamily mm_3gpp_get_ip_family_from_pdp_type (const gchar *pdp_type); + /*****************************************************************************/ /* CDMA specific helpers and utilities */ /*****************************************************************************/ |