aboutsummaryrefslogtreecommitdiff
path: root/src/mm-shared-qmi.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-08-01 10:00:37 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-08-28 14:59:06 +0000
commite4fd17d8c30c5bacc5eedb8c48db7317089bbcef (patch)
tree51d3b67e23c9b7371ee77edfa13e33b98649ab71 /src/mm-shared-qmi.h
parent7c76450c15555204d14a8ce0550dc2c639d288b3 (diff)
shared-qmi: implement SIM slot switching
Using the 'UIM switch slot' operation, this commit introduces the ability to change which SIM slot to be active at any given time in a Multi-SIM Single-Standby setup. There is no validation done on whether the selected SIM slot has a valid SIM card inserted or not; if the user selects a slot without any SIM card, the newly probed modem object will start in Failed state right away.
Diffstat (limited to 'src/mm-shared-qmi.h')
-rw-r--r--src/mm-shared-qmi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-shared-qmi.h b/src/mm-shared-qmi.h
index 4a9567b8..73096e4b 100644
--- a/src/mm-shared-qmi.h
+++ b/src/mm-shared-qmi.h
@@ -171,6 +171,14 @@ gboolean mm_shared_qmi_load_sim_slots_finish (MMIfaceMode
GPtrArray **sim_slots,
guint *primary_sim_slot,
GError **error);
+void mm_shared_qmi_set_primary_sim_slot (MMIfaceModem *self,
+ guint sim_slot,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_shared_qmi_set_primary_sim_slot_finish (MMIfaceModem *self,
+ GAsyncResult *res,
+ GError **error);
+
/* Shared QMI location support */
void mm_shared_qmi_location_load_capabilities (MMIfaceModemLocation *self,