From 8b1ae5afab556d4ff7ce105421b357e0cdae7f1e Mon Sep 17 00:00:00 2001 From: Teijo Kinnunen Date: Fri, 5 Mar 2021 14:46:50 +0200 Subject: modem-helpers,mm-base-sim: Sim.SetPreferredNetworks AT implementation Implement Sim.SetPreferredNetworks method by using the AT+CPOL command. --- src/mm-modem-helpers.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mm-modem-helpers.h') diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index 806a8e79..b64e8e01 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -526,14 +526,22 @@ gboolean mm_parse_supl_address (const gchar *supl, /* +CPOL? response parser (for a single entry) - accepts only numeric operator format*/ gboolean mm_sim_parse_cpol_query_response (const gchar *response, + guint *out_index, gchar **out_operator_code, gboolean *out_gsm_act, gboolean *out_gsm_compact_act, gboolean *out_utran_act, gboolean *out_eutran_act, gboolean *out_ngran_act, + guint *out_act_count, GError **error); +/* +CPOL=? response parser for getting supported min and max index */ +gboolean mm_sim_parse_cpol_test_response (const gchar *response, + guint *out_min_index, + guint *out_max_index, + GError **error); + /*****************************************************************************/ /* Useful when clamp-ing an unsigned integer with implicit low limit set to 0, -- cgit v1.2.3-70-g09d2