From d8135be6e2c132e59d3fbe9d231afa88b1e5e2b2 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 22 Feb 2025 17:17:32 +0100 Subject: modem-helpers: Add helpers to parse channel lists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `CSCB` has the form ``` CSCB: [0|1],"","" ``` If the first parameter is `0` this specifies the accepted types if `1` it specifies rejected. So far seen in the wild were CSCB strings with accepted types only and a coding scheme of "" so this is what we handle for the moment. Signed-off-by: Guido Günther --- src/mm-modem-helpers.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mm-modem-helpers.h') diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index f4b2ae8b..133c7006 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -418,6 +418,8 @@ gboolean mm_3gpp_parse_ccwa_service_query_response (const gchar *response, gboolean *status, GError **error); +GArray *mm_3gpp_parse_cscb_response (const char *raw, GError **error); + /* CGATT helpers */ gchar *mm_3gpp_build_cgatt_set_request (MMModem3gppPacketServiceState state); @@ -550,6 +552,9 @@ gboolean mm_parse_supl_address (const gchar *supl, guint16 *out_port, GError **error); +gboolean mm_validate_cbs_channels (GArray *channels, + GError **error); + /*****************************************************************************/ /* SIM specific helpers and utilities */ /*****************************************************************************/ -- cgit v1.2.3-70-g09d2