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 57f27a26..acbce994 100644
--- a/cli/mmcli-common.c
+++ b/cli/mmcli-common.c
@@ -775,6 +775,19 @@ mmcli_get_3gpp_registration_state_string (MMModem3gppRegistrationState state)
}
const gchar *
+mmcli_get_cdma_registration_state_string (MMModemCdmaRegistrationState state)
+{
+ static GEnumClass *enum_class = NULL;
+ GEnumValue *value;
+
+ if (!enum_class)
+ enum_class = G_ENUM_CLASS (g_type_class_ref (MM_TYPE_MODEM_CDMA_REGISTRATION_STATE));
+
+ value = g_enum_get_value (enum_class, state);
+ return value->value_nick;
+}
+
+const gchar *
mmcli_get_cdma_rm_protocol_string (MMModemCdmaRmProtocol protocol)
{
static GEnumClass *enum_class = NULL;