diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-08-01 09:59:21 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-08-28 14:59:06 +0000 |
commit | 18084f89394491d4a363a90354000c55af1490c8 (patch) | |
tree | c9493a2956c979faf9a438f34bbca263146aee48 /src/mm-base-sim.h | |
parent | c999c8e9cf54a6ef34b16325c32a03aa1e31db2d (diff) |
base-sim: 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.
Diffstat (limited to 'src/mm-base-sim.h')
-rw-r--r-- | src/mm-base-sim.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-base-sim.h b/src/mm-base-sim.h index 7a4a1faa..d9457f11 100644 --- a/src/mm-base-sim.h +++ b/src/mm-base-sim.h @@ -153,6 +153,15 @@ gboolean mm_base_sim_initialize_finish (MMBaseSim *self, GAsyncResult *result, GError **error); +MMBaseSim *mm_base_sim_new_initialized (MMBaseModem *modem, + guint slot_number, + gboolean active, + const gchar *sim_identifier, + const gchar *imsi, + const gchar *operator_identifier, + const gchar *operator_name, + const GStrv emergency_numbers); + void mm_base_sim_send_pin (MMBaseSim *self, const gchar *pin, GAsyncReadyCallback callback, |