aboutsummaryrefslogtreecommitdiff
path: root/src/mm-bearer-list.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-04-03 22:23:34 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-04-29 10:13:22 +0000
commitdd7938b3e48bf9726146ab5c4b941c056b9cbce9 (patch)
tree61ab88acf930eedb97fa594008451599db3270ed /src/mm-bearer-list.h
parente4ef8319ec71b673b322279081636c70835f700b (diff)
bearer-list: allow lookup by connected profile id
Some of the operations performed by the profile management interface will require checking whether the operation is attempted on a profile for which there is a known connected bearer object. We introduce a new method to lookup a bearer in the bearer list by its connected profile id.
Diffstat (limited to 'src/mm-bearer-list.h')
-rw-r--r--src/mm-bearer-list.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mm-bearer-list.h b/src/mm-bearer-list.h
index 72fe24ff..40771f9a 100644
--- a/src/mm-bearer-list.h
+++ b/src/mm-bearer-list.h
@@ -70,10 +70,12 @@ void mm_bearer_list_foreach (MMBearerList *self,
MMBearerListForeachFunc func,
gpointer user_data);
-MMBaseBearer *mm_bearer_list_find_by_properties (MMBearerList *self,
+MMBaseBearer *mm_bearer_list_find_by_properties (MMBearerList *self,
MMBearerProperties *properties);
-MMBaseBearer *mm_bearer_list_find_by_path (MMBearerList *self,
- const gchar *path);
+MMBaseBearer *mm_bearer_list_find_by_path (MMBearerList *self,
+ const gchar *path);
+MMBaseBearer *mm_bearer_list_find_by_profile_id (MMBearerList *self,
+ gint profile_id);
void mm_bearer_list_disconnect_all_bearers (MMBearerList *self,
GAsyncReadyCallback callback,