aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sim-qmi.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-08-01 09:59:47 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-08-28 14:59:06 +0000
commitb564d5f2e508537dc5b10fd5fe20497113226526 (patch)
tree9b13e5e124b83ad19a2bd8d07573ca302c90d4f2 /src/mm-sim-qmi.h
parent89b6e811b984f2f9f6e0eea652246a58e3200c8f (diff)
sim-qmi: allow creating preinitialized SIM objects
The default SIM creation method will attempt to initialize the SIM properties during the object creation. This new method allows creating SIM objects with already known property values, and therefore not explicitly running the asynchronous initialization process. Completely equivalent to mm_base_sim_new_initialized() but creating a subclassed MMSimQmi instead of the generic MMBaseSim.
Diffstat (limited to 'src/mm-sim-qmi.h')
-rw-r--r--src/mm-sim-qmi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mm-sim-qmi.h b/src/mm-sim-qmi.h
index 20954444..c47891c4 100644
--- a/src/mm-sim-qmi.h
+++ b/src/mm-sim-qmi.h
@@ -53,4 +53,14 @@ void mm_sim_qmi_new (MMBaseModem *modem,
MMBaseSim *mm_sim_qmi_new_finish (GAsyncResult *res,
GError **error);
+MMBaseSim *mm_sim_qmi_new_initialized (MMBaseModem *modem,
+ gboolean dms_uim_deprecated,
+ guint slot_number,
+ gboolean active,
+ const gchar *sim_identifier,
+ const gchar *imsi,
+ const gchar *operator_identifier,
+ const gchar *operator_name,
+ const GStrv emergency_numbers);
+
#endif /* MM_SIM_QMI_H */