diff options
author | Carlo Lobrano <c.lobrano@gmail.com> | 2016-08-08 15:47:18 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-08-10 09:39:27 +0200 |
commit | 60f4f9e57df90cf094fffb6896ffce8dba15d244 (patch) | |
tree | a611d459cc957f1c5bf3e16268d2d3b8ba082f9f /src/mm-broadband-modem.h | |
parent | 3047522b2e494776d9aced64180e54c46e861de1 (diff) |
modem: support SIM hot swap
BaseModem
added reprobe property.
MMDevice
added logic to recreate the modem if it is set invalid and "to reprobe"
MMBroadbandModem
* added initialization step for SIM hot swap:
1. keep dedicated ports open to listen to modem's unsolicited
2. dedicated error management in case of initialization failure due to SIM missing
* added function to be called in order to act upon SIM insertion/removal:
1. close dedicated ports
2. set the modem to be reprobed
3. disable modem
* added SIM HOT SWAP boolean property
MMIfaceModem
* added initialization step for SIM hot swap, if supported by the plugin
* dedicated error management in case of initialization failure due to SIM missing
Diffstat (limited to 'src/mm-broadband-modem.h')
-rw-r--r-- | src/mm-broadband-modem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-broadband-modem.h b/src/mm-broadband-modem.h index 93ffeb54..9cb3494e 100644 --- a/src/mm-broadband-modem.h +++ b/src/mm-broadband-modem.h @@ -127,5 +127,9 @@ gboolean mm_broadband_modem_lock_sms_storages_finish (MMBroadbandModem *self, void mm_broadband_modem_unlock_sms_storages (MMBroadbandModem *self, gboolean mem1, gboolean mem2); +/* Helper to update SIM hot swap */ +void mm_broadband_modem_update_sim_hot_swap_detected (MMBroadbandModem *self); + + #endif /* MM_BROADBAND_MODEM_H */ |