aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-common.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-21 15:27:10 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:36 +0100
commit241c29491873d527ac44272cbf4214e955ec5be6 (patch)
tree688aa0a28d4cecb6720ca57f74ece70466e71b6a /cli/mmcli-common.c
parent6583bd61e13e842ab6b016cb0947432f1e3aea26 (diff)
cli: include 3GPP related stuff when printing modem info
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 60903e8e..89e48323 100644
--- a/cli/mmcli-common.c
+++ b/cli/mmcli-common.c
@@ -563,6 +563,19 @@ mmcli_get_3gpp_network_availability_string (MMModem3gppNetworkAvailability avail
return value->value_nick;
}
+const gchar *
+mmcli_get_3gpp_registration_state_string (MMModem3gppRegistrationState state)
+{
+ static GEnumClass *enum_class = NULL;
+ GEnumValue *value;
+
+ if (!enum_class)
+ enum_class = G_ENUM_CLASS (g_type_class_ref (MM_TYPE_MODEM_3GPP_REGISTRATION_STATE));
+
+ value = g_enum_get_value (enum_class, state);
+ return value->value_nick;
+}
+
/* Common options */
static gchar *modem_str;
static gchar *bearer_str;