From b2979c63eb2d724512c7a96c071f3d4b422e79cb Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sat, 1 Aug 2020 09:59:24 +0200 Subject: 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. --- src/mm-base-sim.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mm-base-sim.h') 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, -- cgit v1.2.3-70-g09d2