diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-09-13 09:46:42 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2019-09-13 18:13:26 +0000 |
commit | 137ece0f2fd1a9592c5dd79812588037723e7fa3 (patch) | |
tree | fde01619d74a41a4a5f2eb50b93a176d2f958637 /src/mm-modem-helpers.h | |
parent | 80703b667bbf8e23298e9d6bded3ef3250986cc9 (diff) |
broadband-bearer: setup cid selection as a testable method
Rework how the broadband bearer runs CGDCONT? and CGDCONT=? and setup
a helper method to perform the CID selection logic.
Also, implement unit tests for the CID selection logic.
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r-- | src/mm-modem-helpers.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index 8a73daab..73a13ddd 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -192,6 +192,14 @@ void mm_3gpp_pdp_context_list_free (GList *pdp_list); GList *mm_3gpp_parse_cgdcont_read_response (const gchar *reply, GError **error); +/* Select best CID to use during connection */ +guint mm_3gpp_select_best_cid (const gchar *apn, + MMBearerIpFamily ip_family, + GList *context_list, + GList *context_format_list, + gboolean *cid_reused, + gboolean *cid_overwritten); + /* AT+CGACT? (active PDP context query) response parser */ typedef struct { guint cid; |