diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-08-01 09:59:19 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-08-28 14:59:06 +0000 |
commit | c999c8e9cf54a6ef34b16325c32a03aa1e31db2d (patch) | |
tree | 4e3aede6280412071061c52aeec79c8846448ee1 /src/mm-base-sim.h | |
parent | 842ad4bd64404e4a98d089c9a8fa60715c7018c6 (diff) |
base-sim: new 'slot number' property
This new property helps us identify in which SIM slot the SIM card is
inserted, when multiple slots are available, in the [1,N] range.
For the single-SIM systems this value will always be '0'.
This property is not publicly exposed in DBus, it is considered an
implementation detail.
Diffstat (limited to 'src/mm-base-sim.h')
-rw-r--r-- | src/mm-base-sim.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mm-base-sim.h b/src/mm-base-sim.h index afafa376..7a4a1faa 100644 --- a/src/mm-base-sim.h +++ b/src/mm-base-sim.h @@ -36,9 +36,10 @@ typedef struct _MMBaseSimClass MMBaseSimClass; typedef struct _MMBaseSimPrivate MMBaseSimPrivate; /* Properties */ -#define MM_BASE_SIM_PATH "sim-path" -#define MM_BASE_SIM_CONNECTION "sim-connection" -#define MM_BASE_SIM_MODEM "sim-modem" +#define MM_BASE_SIM_PATH "sim-path" +#define MM_BASE_SIM_CONNECTION "sim-connection" +#define MM_BASE_SIM_MODEM "sim-modem" +#define MM_BASE_SIM_SLOT_NUMBER "sim-slot-number" /* Signals */ #define MM_BASE_SIM_PIN_LOCK_ENABLED "sim-pin-lock-enabled" @@ -173,6 +174,8 @@ void mm_base_sim_export (MMBaseSim *self); const gchar *mm_base_sim_get_path (MMBaseSim *sim); +guint mm_base_sim_get_slot_number (MMBaseSim *self); + void mm_base_sim_load_sim_identifier (MMBaseSim *self, GAsyncReadyCallback callback, gpointer user_data); |