aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-common.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-21 15:16:07 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:36 +0100
commit6583bd61e13e842ab6b016cb0947432f1e3aea26 (patch)
treed33ae194c1ca7f9b3fb8576bb9dbcdb7b8e081e9 /cli/mmcli-common.c
parent73ca5dcb24c131d3e3a99a89dcd6f1329c9d90f4 (diff)
cli: implement 3GPP related actions
Diffstat (limited to 'cli/mmcli-common.c')
-rw-r--r--cli/mmcli-common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/mmcli-common.c b/cli/mmcli-common.c
index bf44a108..60903e8e 100644
--- a/cli/mmcli-common.c
+++ b/cli/mmcli-common.c
@@ -550,6 +550,19 @@ mmcli_get_lock_string (MMModemLock lock)
return value->value_nick;
}
+const gchar *
+mmcli_get_3gpp_network_availability_string (MMModem3gppNetworkAvailability availability)
+{
+ static GEnumClass *enum_class = NULL;
+ GEnumValue *value;
+
+ if (!enum_class)
+ enum_class = G_ENUM_CLASS (g_type_class_ref (MM_TYPE_MODEM_3GPP_NETWORK_AVAILABILITY));
+
+ value = g_enum_get_value (enum_class, availability);
+ return value->value_nick;
+}
+
/* Common options */
static gchar *modem_str;
static gchar *bearer_str;