aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-qmi.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-02-23 22:43:09 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-03-10 12:58:12 +0100
commitf58d3ef93fef8ae7e9d14f37fa2940d91d49a408 (patch)
tree16dc2679eb1924d0fc961dd39e72cb12218acb46 /src/mm-port-qmi.h
parentb3fb87cdf6ceb1593a27807b7f00f17ca489e23d (diff)
port-qmi: new methods to setup/cleanup net links
The logic to setup/cleanup net links is based on the QmiDevice net link addition/removal operations. When the qmi_wwan add_mux/del_mux based logic is in use, we default to precreate 4 net links and we limit the amount of bearers that may be connected to that maximum, because it is not guaranteed that the qmi_wwan driver is able to create new links once the master interface is up; and the master interface needs to be up for a proper data connection. For all other drivers, or when qmi_wwan uses qmap-pass-through, we allow adding/deleting new links at any moment, without needing to rely on the precreated ones.
Diffstat (limited to 'src/mm-port-qmi.h')
-rw-r--r--src/mm-port-qmi.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mm-port-qmi.h b/src/mm-port-qmi.h
index 50f984e7..e03c262f 100644
--- a/src/mm-port-qmi.h
+++ b/src/mm-port-qmi.h
@@ -115,6 +115,25 @@ gboolean mm_port_qmi_setup_data_format_finish (MMPortQmi *s
GAsyncResult *res,
GError **error);
+void mm_port_qmi_setup_link (MMPortQmi *self,
+ MMPort *data,
+ const gchar *link_prefix_hint,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gchar *mm_port_qmi_setup_link_finish (MMPortQmi *self,
+ GAsyncResult *res,
+ guint *mux_id,
+ GError **error);
+
+void mm_port_qmi_cleanup_link (MMPortQmi *self,
+ const gchar *link_name,
+ guint mux_id,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_port_qmi_cleanup_link_finish (MMPortQmi *self,
+ GAsyncResult *res,
+ GError **error);
+
void mm_port_qmi_reset (MMPortQmi *self,
MMPort *data,
GAsyncReadyCallback callback,