aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-3gpp-profile.h
diff options
context:
space:
mode:
authorAndrew Lassalle <andrewlassalle@chromium.org>2021-10-14 11:57:26 -0700
committerAleksander Morgado <aleksander@aleksander.es>2021-10-17 17:56:44 +0200
commit8ecf7fc83e8ef0e1985b6a57da5bb25b26e43c72 (patch)
tree225485b57d5a0fb796ee57ac66fe72428473503f /libmm-glib/mm-3gpp-profile.h
parentc3fe738e7d69c97c701469095852bd068ce08b98 (diff)
3gpp-profile: Add profile name
QMI modems also report a profile name, and that value can be used to select and update a specific profile.
Diffstat (limited to 'libmm-glib/mm-3gpp-profile.h')
-rw-r--r--libmm-glib/mm-3gpp-profile.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/libmm-glib/mm-3gpp-profile.h b/libmm-glib/mm-3gpp-profile.h
index a3974a66..c0d0206a 100644
--- a/libmm-glib/mm-3gpp-profile.h
+++ b/libmm-glib/mm-3gpp-profile.h
@@ -69,6 +69,8 @@ MM3gppProfile *mm_3gpp_profile_new (void);
void mm_3gpp_profile_set_profile_id (MM3gppProfile *self,
gint profile_id);
+void mm_3gpp_profile_set_profile_name (MM3gppProfile *self,
+ const gchar *profile_name);
void mm_3gpp_profile_set_apn (MM3gppProfile *self,
const gchar *apn);
void mm_3gpp_profile_set_allowed_auth (MM3gppProfile *self,
@@ -83,6 +85,7 @@ void mm_3gpp_profile_set_apn_type (MM3gppProfile *self,
MMBearerApnType apn_type);
gint mm_3gpp_profile_get_profile_id (MM3gppProfile *self);
+const gchar *mm_3gpp_profile_get_profile_name (MM3gppProfile *self);
const gchar *mm_3gpp_profile_get_apn (MM3gppProfile *self);
MMBearerAllowedAuth mm_3gpp_profile_get_allowed_auth (MM3gppProfile *self);
const gchar *mm_3gpp_profile_get_user (MM3gppProfile *self);
@@ -112,11 +115,12 @@ gboolean mm_3gpp_profile_consume_variant (MM3gppProfile *self,
GError **error);
typedef enum {
- MM_3GPP_PROFILE_CMP_FLAGS_NONE = 0,
- MM_3GPP_PROFILE_CMP_FLAGS_NO_PROFILE_ID = 1 << 1,
- MM_3GPP_PROFILE_CMP_FLAGS_NO_AUTH = 1 << 2,
- MM_3GPP_PROFILE_CMP_FLAGS_NO_APN_TYPE = 1 << 3,
- MM_3GPP_PROFILE_CMP_FLAGS_NO_IP_TYPE = 1 << 4,
+ MM_3GPP_PROFILE_CMP_FLAGS_NONE = 0,
+ MM_3GPP_PROFILE_CMP_FLAGS_NO_PROFILE_ID = 1 << 1,
+ MM_3GPP_PROFILE_CMP_FLAGS_NO_PROFILE_NAME = 1 << 2,
+ MM_3GPP_PROFILE_CMP_FLAGS_NO_AUTH = 1 << 3,
+ MM_3GPP_PROFILE_CMP_FLAGS_NO_APN_TYPE = 1 << 4,
+ MM_3GPP_PROFILE_CMP_FLAGS_NO_IP_TYPE = 1 << 5,
} MM3gppProfileCmpFlags;
gboolean mm_3gpp_profile_cmp (MM3gppProfile *a,