cli: print Rm protocol in bearer info

This commit is contained in:
Aleksander Morgado
2012-01-08 16:15:39 +01:00
parent 014a9eddab
commit ad95567e88
3 changed files with 21 additions and 3 deletions

View File

@@ -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;