diff options
author | Teijo Kinnunen <teijo.kinnunen@uros.com> | 2021-02-25 16:57:16 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-26 12:28:01 +0100 |
commit | a4aba0a6b210b213dd631cb2f7d507b5ad187bc5 (patch) | |
tree | cae25ae0d333ce1d8400a0a84d35f1dfad3f4511 /cli/mmcli-sim.c | |
parent | 816beeffcb748cde1682e470620c8b26d304b13f (diff) |
mmcli,sim: add preferred networks list to SIM properties
Diffstat (limited to 'cli/mmcli-sim.c')
-rw-r--r-- | cli/mmcli-sim.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/mmcli-sim.c b/cli/mmcli-sim.c index 2a1fed3a..68ae7f5d 100644 --- a/cli/mmcli-sim.c +++ b/cli/mmcli-sim.c @@ -158,6 +158,8 @@ mmcli_sim_shutdown (void) static void print_sim_info (MMSim *sim) { + GList *preferred_nets_list; + mmcli_output_string (MMC_F_SIM_GENERAL_DBUS_PATH, mm_sim_get_path (sim)); mmcli_output_string (MMC_F_SIM_PROPERTIES_ACTIVE, mm_sim_get_active (sim) ? "yes" : "no"); mmcli_output_string (MMC_F_SIM_PROPERTIES_IMSI, mm_sim_get_imsi (sim)); @@ -166,6 +168,9 @@ print_sim_info (MMSim *sim) mmcli_output_string (MMC_F_SIM_PROPERTIES_OPERATOR_ID, mm_sim_get_operator_identifier (sim)); mmcli_output_string (MMC_F_SIM_PROPERTIES_OPERATOR_NAME, mm_sim_get_operator_name (sim)); mmcli_output_string_array (MMC_F_SIM_PROPERTIES_EMERGENCY_NUMBERS, (const gchar **) mm_sim_get_emergency_numbers (sim), FALSE); + preferred_nets_list = mm_sim_get_preferred_networks (sim); + mmcli_output_preferred_networks (preferred_nets_list); + g_list_free_full (preferred_nets_list, (GDestroyNotify) mm_sim_preferred_network_free); mmcli_output_dump (); } |