aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-mbim.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-03-11 11:35:35 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-03-17 09:39:10 +0100
commit32c4b200668f284e3c1774a1e54f58181aa91e6e (patch)
tree1c6e17b6c0288aae72b0be9e46120396c2b4bbfb /src/mm-port-mbim.h
parente5305498b7ddbc5e419cf51fc0c30aa6593a40d2 (diff)
port-mbim: implement new link setup/cleanup methods
These are really wrappers around the MbimDevice methods, only making sure the MMPortMbim is open before they're used.
Diffstat (limited to 'src/mm-port-mbim.h')
-rw-r--r--src/mm-port-mbim.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mm-port-mbim.h b/src/mm-port-mbim.h
index 7c2d4df5..81e3deb7 100644
--- a/src/mm-port-mbim.h
+++ b/src/mm-port-mbim.h
@@ -92,6 +92,24 @@ gboolean mm_port_mbim_allocate_qmi_client_finish (MMPortMbim *self,
MbimDevice *mm_port_mbim_peek_device (MMPortMbim *self);
+void mm_port_mbim_setup_link (MMPortMbim *self,
+ MMPort *data,
+ const gchar *link_prefix_hint,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gchar *mm_port_mbim_setup_link_finish (MMPortMbim *self,
+ GAsyncResult *res,
+ guint *session_id,
+ GError **error);
+
+void mm_port_mbim_cleanup_link (MMPortMbim *self,
+ const gchar *link_name,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_port_mbim_cleanup_link_finish (MMPortMbim *self,
+ GAsyncResult *res,
+ GError **error);
+
void mm_port_mbim_reset (MMPortMbim *self,
MMPort *data,
GAsyncReadyCallback callback,