aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-sim.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-08-01 09:59:24 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-08-28 14:59:06 +0000
commitb2979c63eb2d724512c7a96c071f3d4b422e79cb (patch)
tree4f10087feda351343b56a992364dc45b934e2c9d /src/mm-base-sim.h
parent18084f89394491d4a363a90354000c55af1490c8 (diff)
base-sim: allow explicit wait for SIM readiness during initialization
Before attempting to load any SIM property value, allow checking whether the SIM is ready for operation or not. This action is implicitly done by the "unlock required check" step that is triggered before initializing the primary SIM card, but it would not be done when initializing other available SIM cards.
Diffstat (limited to 'src/mm-base-sim.h')
-rw-r--r--src/mm-base-sim.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-base-sim.h b/src/mm-base-sim.h
index d9457f11..d6bc4bb8 100644
--- a/src/mm-base-sim.h
+++ b/src/mm-base-sim.h
@@ -52,6 +52,14 @@ struct _MMBaseSim {
struct _MMBaseSimClass {
MmGdbusSimSkeletonClass parent;
+ /* Wait SIM ready (async) */
+ void (* wait_sim_ready) (MMBaseSim *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (* wait_sim_ready_finish) (MMBaseSim *self,
+ GAsyncResult *res,
+ GError **error);
+
/* Load SIM identifier (async) */
void (* load_sim_identifier) (MMBaseSim *self,
GAsyncReadyCallback callback,