aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-03-25 13:20:13 -0500
committerDan Williams <dcbw@redhat.com>2013-03-27 08:23:52 -0500
commit3b3326bdf03a02822ac8d1e9e0ff08db2324c3ed (patch)
tree207615827c0f252c27a2f6c210283cb8edb88b6f /src/mm-modem-helpers.h
parentf299a05571f8d9b9f0bf996f20563ed9a13dab02 (diff)
broadband-modem: parse +GSN response for IMEI, MEID, and ESN (bgo #696596)
+GSN response differs widely between modems. Some prefix the MEID and/or ESN with 0x, some have leading zeros, some return the MEID and the ESN, and some append the serial number to the end of the IMEI. Handle that and make the ESN, MEID, IMEI, and EquipmentIdentifier parsing consistent.
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r--src/mm-modem-helpers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h
index 63e53a74..aa646993 100644
--- a/src/mm-modem-helpers.h
+++ b/src/mm-modem-helpers.h
@@ -203,4 +203,9 @@ gint mm_cdma_normalize_class (const gchar *orig_class);
gchar mm_cdma_normalize_band (const gchar *long_band,
gint *out_class);
+gboolean mm_parse_gsn (const char *gsn,
+ gchar **out_imei,
+ gchar **out_meid,
+ gchar **out_esn);
+
#endif /* MM_MODEM_HELPERS_H */