aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-common.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-08 16:15:39 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:47 +0100
commitad95567e88eadf452c7e48a1d97bac4b741c206b (patch)
tree84e0011dd150fe57880fd9677d8c6b56efed8878 /cli/mmcli-common.c
parent014a9eddab6c1787470caad58c0626a551fdc842 (diff)
cli: print Rm protocol in bearer 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 732cbfc6..57f27a26 100644
--- a/cli/mmcli-common.c
+++ b/cli/mmcli-common.c
@@ -774,6 +774,19 @@ mmcli_get_3gpp_registration_state_string (MMModem3gppRegistrationState state)
return value->value_nick;
}
+const gchar *
+mmcli_get_cdma_rm_protocol_string (MMModemCdmaRmProtocol protocol)
+{
+ static GEnumClass *enum_class = NULL;
+ GEnumValue *value;
+
+ if (!enum_class)
+ enum_class = G_ENUM_CLASS (g_type_class_ref (MM_TYPE_MODEM_CDMA_RM_PROTOCOL));
+
+ value = g_enum_get_value (enum_class, protocol);
+ return value->value_nick;
+}
+
/* Common options */
static gchar *modem_str;
static gchar *bearer_str;