diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-12-13 14:08:43 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-12-26 10:12:11 +0100 |
commit | 853aa29be80ee397f64d18c4d9cce64be35aec14 (patch) | |
tree | cca7f1a813e979b42e8ecacd156102e8e751ef20 /src/mm-iface-modem-3gpp-profile-manager.h | |
parent | 0d0ad722d9da2039ad71ece9c8ae4b1786c7f757 (diff) |
iface-modem-3gpp-profile-manager: support 'apn-type' as index field
The modem may report the 'apn-type' field is the one to be used as
index; if that's the case, allow setting and deleting profiles based
on the given 'apn-type' field.
This change also makes the internal profile management operations use
one index field or another, based on what the protocol implements.
Diffstat (limited to 'src/mm-iface-modem-3gpp-profile-manager.h')
-rw-r--r-- | src/mm-iface-modem-3gpp-profile-manager.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mm-iface-modem-3gpp-profile-manager.h b/src/mm-iface-modem-3gpp-profile-manager.h index e6f2833e..e9724087 100644 --- a/src/mm-iface-modem-3gpp-profile-manager.h +++ b/src/mm-iface-modem-3gpp-profile-manager.h @@ -101,6 +101,7 @@ struct _MMIfaceModem3gppProfileManager { /* Delete */ void (* delete_profile) (MMIfaceModem3gppProfileManager *self, MM3gppProfile *requested, + const gchar *index_field, GAsyncReadyCallback callback, gpointer user_data); gboolean (* delete_profile_finish) (MMIfaceModem3gppProfileManager *self, @@ -177,10 +178,13 @@ struct _MMIfaceModem3gppProfileManager { /* Store profile (substep of 'set profiles') */ void (* store_profile) (MMIfaceModem3gppProfileManager *self, MM3gppProfile *requested, + const gchar *index_field, GAsyncReadyCallback callback, gpointer user_data); - gint (* store_profile_finish) (MMIfaceModem3gppProfileManager *self, + gboolean (* store_profile_finish) (MMIfaceModem3gppProfileManager *self, GAsyncResult *res, + gint *out_profile_id, + MMBearerApnType *out_apn_type, GError **error); }; @@ -238,6 +242,7 @@ gboolean mm_iface_modem_3gpp_profile_manager_list_profiles_finish (MMIface GError **error); void mm_iface_modem_3gpp_profile_manager_set_profile (MMIfaceModem3gppProfileManager *self, MM3gppProfile *requested, + const gchar *index_field, gboolean strict, GAsyncReadyCallback callback, gpointer user_data); |