helpers: implement CGDCONT reply parsing

New method to parse the PDP query reply, and build a list of structs with the
found info.
This commit is contained in:
Aleksander Morgado
2011-12-15 19:57:18 +01:00
parent d7f4a5e134
commit 5f4655c574
3 changed files with 141 additions and 1 deletions

View File

@@ -32,10 +32,20 @@ typedef struct {
} MM3gppNetworkInfo;
void mm_3gpp_network_info_list_free (GList *info_list);
GList *mm_3gpp_parse_scan_response (const gchar *reply,
GError **error);
/* PDP context query results */
typedef struct {
guint cid;
gchar *pdp_type;
gchar *apn;
} MM3gppPdpContext;
void mm_3gpp_pdp_context_list_free (GList *pdp_list);
GList *mm_3gpp_parse_pdp_query_response (const gchar *reply,
GError **error);
GPtrArray *mm_gsm_creg_regex_get (gboolean solicited);
void mm_gsm_creg_regex_destroy (GPtrArray *array);