aboutsummaryrefslogtreecommitdiff
path: root/src/mm-broadband-modem.h
diff options
context:
space:
mode:
authorCarlo Lobrano <c.lobrano@gmail.com>2016-08-08 15:47:18 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-08-10 09:39:27 +0200
commit60f4f9e57df90cf094fffb6896ffce8dba15d244 (patch)
treea611d459cc957f1c5bf3e16268d2d3b8ba082f9f /src/mm-broadband-modem.h
parent3047522b2e494776d9aced64180e54c46e861de1 (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.h4
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 */