api,modem: new 'SetPrimarySimSlot' method

This new method allows changing the SIM slot considered as primary,
when the modem supports multiple SIM slots.

The generic handling of this method will make sure that the modem
object and all its SIM objects are re-probed from scratch as soon as a
successful SIM slot switch happens.

Implementations may report MM_CORE_ERROR_EXISTS when the switch
doesn't need to happen (e.g. if the requested SIM slot is already the
active one).
This commit is contained in:
Aleksander Morgado
2020-08-01 09:59:37 +02:00
parent 5041b9c99b
commit 924cf1af3c
8 changed files with 303 additions and 0 deletions

View File

@@ -188,6 +188,9 @@ mm_modem_get_primary_sim_slot
mm_modem_list_sim_slots
mm_modem_list_sim_slots_finish
mm_modem_list_sim_slots_sync
mm_modem_set_primary_sim_slot
mm_modem_set_primary_sim_slot_finish
mm_modem_set_primary_sim_slot_sync
<SUBSECTION Methods>
mm_modem_enable
mm_modem_enable_finish
@@ -2135,6 +2138,9 @@ mm_gdbus_modem_call_set_current_bands_sync
mm_gdbus_modem_call_set_current_capabilities
mm_gdbus_modem_call_set_current_capabilities_finish
mm_gdbus_modem_call_set_current_capabilities_sync
mm_gdbus_modem_call_set_primary_sim_slot
mm_gdbus_modem_call_set_primary_sim_slot_finish
mm_gdbus_modem_call_set_primary_sim_slot_sync
mm_gdbus_modem_call_command
mm_gdbus_modem_call_command_finish
mm_gdbus_modem_call_command_sync
@@ -2185,6 +2191,7 @@ mm_gdbus_modem_complete_reset
mm_gdbus_modem_complete_set_current_modes
mm_gdbus_modem_complete_set_current_bands
mm_gdbus_modem_complete_set_current_capabilities
mm_gdbus_modem_complete_set_primary_sim_slot
mm_gdbus_modem_interface_info
mm_gdbus_modem_override_properties
<SUBSECTION Standard>