diff options
author | Michal Mazur <michamazur@google.com> | 2024-09-19 19:29:40 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2024-09-25 12:08:40 +0000 |
commit | a030eaef7639e491f085cdd0ee52a217b8b7bea9 (patch) | |
tree | 97a94697cbfdcca96fabc97264d93b08b3190a10 /src/mm-modem-helpers.h | |
parent | 257839c66ee6982eee9108b6661a5816b85ad885 (diff) |
sim: add common helpers to parse operator name and mnc length
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r-- | src/mm-modem-helpers.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index ddcff724..874a87bd 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -571,6 +571,15 @@ gboolean mm_sim_parse_cpol_test_response (const gchar *response, guint *out_max_index, GError **error); +/* Parse operator name and mnc length */ +gchar *mm_sim_convert_spn_to_utf8 (const guint8 *bin, + gsize len, + GError **error); + +guint mm_sim_validate_mnc_length (const guint8 *bin, + gsize len, + GError **error); + /*****************************************************************************/ /* Useful when clamp-ing an unsigned integer with implicit low limit set to 0, |