aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib
diff options
context:
space:
mode:
Diffstat (limited to 'libmm-glib')
-rw-r--r--libmm-glib/mm-bearer.c22
-rw-r--r--libmm-glib/mm-bearer.h2
2 files changed, 24 insertions, 0 deletions
diff --git a/libmm-glib/mm-bearer.c b/libmm-glib/mm-bearer.c
index 31668281..1c6a1cdd 100644
--- a/libmm-glib/mm-bearer.c
+++ b/libmm-glib/mm-bearer.c
@@ -264,6 +264,28 @@ mm_bearer_get_bearer_type (MMBearer *self)
/*****************************************************************************/
+/**
+ * mm_bearer_get_profile_id:
+ * @self: A #MMBearer.
+ *
+ * Gets profile ID associated to the bearer connection, if known.
+ *
+ * If the bearer is disconnected or the modem doesn't support profile management
+ * features, %MM_3GPP_PROFILE_ID_UNKNOWN.
+ *
+ * Returns: a profile id.
+ *
+ * Since: 1.18
+ */
+gint
+mm_bearer_get_profile_id (MMBearer *self)
+{
+ g_return_val_if_fail (MM_IS_BEARER (self), MM_3GPP_PROFILE_ID_UNKNOWN);
+
+ return mm_gdbus_bearer_get_profile_id (MM_GDBUS_BEARER (self));
+}
+/*****************************************************************************/
+
static void
ipv4_config_updated (MMBearer *self,
GParamSpec *pspec)
diff --git a/libmm-glib/mm-bearer.h b/libmm-glib/mm-bearer.h
index c96888df..9f15e926 100644
--- a/libmm-glib/mm-bearer.h
+++ b/libmm-glib/mm-bearer.h
@@ -84,6 +84,8 @@ guint mm_bearer_get_ip_timeout (MMBearer *self);
MMBearerType mm_bearer_get_bearer_type (MMBearer *self);
+gint mm_bearer_get_profile_id (MMBearer *self);
+
void mm_bearer_connect (MMBearer *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,