aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-common.c
diff options
context:
space:
mode:
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;