cli: new helper to get the CDMA registration state string

This commit is contained in:
Aleksander Morgado
2012-01-09 21:07:35 +01:00
parent a71393f227
commit c5fdd83905
2 changed files with 14 additions and 0 deletions

View File

@@ -774,6 +774,19 @@ mmcli_get_3gpp_registration_state_string (MMModem3gppRegistrationState state)
return value->value_nick;
}
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)
{