summaryrefslogtreecommitdiff
path: root/cli/mmcli-bearer.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-08-22 09:35:15 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-22 09:38:21 +0200
commit1ac18a06bb37d8745480a9af4fd6bc2f762bf265 (patch)
tree2074fb1f3cb16e483779dcd4f19db3d6c1c936c1 /cli/mmcli-bearer.c
parentc15525a1b3c2006e614f75a372f374176f576c23 (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 'cli/mmcli-bearer.c')
-rw-r--r--cli/mmcli-bearer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/mmcli-bearer.c b/cli/mmcli-bearer.c
index 651508ef..e7aa6e79 100644
--- a/cli/mmcli-bearer.c
+++ b/cli/mmcli-bearer.c
@@ -169,7 +169,8 @@ print_bearer_info (MMBearer *bearer)
" | Rm protocol: '%s'\n",
VALIDATE_NONE (mm_bearer_properties_get_apn (properties)),
mm_bearer_properties_get_allow_roaming (properties) ? "allowed" : "forbidden",
- VALIDATE_NONE (mm_bearer_properties_get_ip_type (properties)),
+ VALIDATE_UNKNOWN (mm_bearer_ip_family_get_string (
+ mm_bearer_properties_get_ip_type (properties))),
VALIDATE_NONE (mm_bearer_properties_get_user (properties)),
VALIDATE_NONE (mm_bearer_properties_get_password (properties)),
VALIDATE_NONE (mm_bearer_properties_get_number (properties)),