diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-12-09 19:10:08 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:33 +0100 |
commit | 82693cf523456058f03a06d6e9e449e1df7caac2 (patch) | |
tree | a7a3640c4b7bafd4c5af2198d7da8d23b173c1ad /cli/mmcli-common.c | |
parent | 46248460156fd8d558372df3c1a06f9d06aad15e (diff) |
cli: enable printing modem info
Diffstat (limited to 'cli/mmcli-common.c')
-rw-r--r-- | cli/mmcli-common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/mmcli-common.c b/cli/mmcli-common.c index 5dccd823..11b4b831 100644 --- a/cli/mmcli-common.c +++ b/cli/mmcli-common.c @@ -265,3 +265,16 @@ mmcli_get_state_reason_string (MMModemStateChangeReason reason) g_warn_if_reached (); return NULL; } + +const gchar * +mmcli_get_lock_string (MMModemLock lock) +{ + static GEnumClass *enum_class = NULL; + GEnumValue *value; + + if (!enum_class) + enum_class = G_ENUM_CLASS (g_type_class_ref (MM_TYPE_MODEM_LOCK)); + + value = g_enum_get_value (enum_class, lock); + return value->value_nick; +} |