diff options
author | Thieu Le <thieule@chromium.org> | 2013-10-07 13:57:27 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-10-09 09:59:42 +0200 |
commit | f9a4f87d5204432b52cb41b31809d43425467da5 (patch) | |
tree | b8ae31d2b84d80e376e80942ae7ca7f116dccece /cli | |
parent | 564b3610fd6e4060bc36c2cf568b2305aaf6ea19 (diff) |
iface-modem-3gpp: add SubscriptionState property
Diffstat (limited to 'cli')
-rw-r--r-- | cli/mmcli-modem-simple.c | 15 | ||||
-rw-r--r-- | cli/mmcli-modem.c | 3 |
2 files changed, 15 insertions, 3 deletions
diff --git a/cli/mmcli-modem-simple.c b/cli/mmcli-modem-simple.c index 22976a97..7b997926 100644 --- a/cli/mmcli-modem-simple.c +++ b/cli/mmcli-modem-simple.c @@ -251,13 +251,16 @@ status_process_reply (MMSimpleStatus *result, (mm_simple_status_get_3gpp_registration_state (result) == MM_MODEM_3GPP_REGISTRATION_STATE_ROAMING)) { g_print (" -------------------------\n" - " 3GPP | registration: '%s'\n" + " 3GPP | registration: '%s'\n" " | operator code: '%s'\n" - " | operator name: '%s'\n", + " | operator name: '%s'\n" + " | subscription: '%s'\n", mm_modem_3gpp_registration_state_get_string ( mm_simple_status_get_3gpp_registration_state (result)), VALIDATE_UNKNOWN (mm_simple_status_get_3gpp_operator_code (result)), - VALIDATE_UNKNOWN (mm_simple_status_get_3gpp_operator_name (result))); + VALIDATE_UNKNOWN (mm_simple_status_get_3gpp_operator_name (result)), + mm_modem_3gpp_subscription_state_get_string ( + mm_simple_status_get_3gpp_subscription_state (result))); } if ((mm_simple_status_get_cdma_cdma1x_registration_state (result) != @@ -296,8 +299,14 @@ status_process_reply (MMSimpleStatus *result, g_free (access_tech_str); g_free (bands_str); + } else { + g_print (" -------------------------\n" + " 3GPP | subscription: '%s'\n", + mm_modem_3gpp_subscription_state_get_string ( + mm_simple_status_get_3gpp_subscription_state (result))); } + g_print ("\n"); g_object_unref (result); } diff --git a/cli/mmcli-modem.c b/cli/mmcli-modem.c index 18e7356f..dbec796f 100644 --- a/cli/mmcli-modem.c +++ b/cli/mmcli-modem.c @@ -441,11 +441,14 @@ print_modem_info (void) " | enabled locks: '%s'\n" " | operator id: '%s'\n" " | operator name: '%s'\n" + " | subscription: '%s'\n" " | registration: '%s'\n", VALIDATE_UNKNOWN (mm_modem_3gpp_get_imei (ctx->modem_3gpp)), facility_locks, VALIDATE_UNKNOWN (mm_modem_3gpp_get_operator_code (ctx->modem_3gpp)), VALIDATE_UNKNOWN (mm_modem_3gpp_get_operator_name (ctx->modem_3gpp)), + mm_modem_3gpp_subscription_state_get_string ( + mm_modem_3gpp_get_subscription_state ((ctx->modem_3gpp))), mm_modem_3gpp_registration_state_get_string ( mm_modem_3gpp_get_registration_state ((ctx->modem_3gpp)))); |