From ddfe8acf11f351a5887ced8fedf736ee4b108c51 Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski Date: Fri, 9 Apr 2010 08:48:50 +0200 Subject: Drivers can notify core of SIM insertion / removal Add ofono_sim_inserted_notify function to notify the core of SIM insertion / removal. Make every plugin generate a sim inserted event on start. For devices with removable card, the event should be emitted after the plugin detects such event. For devices that need to wait for SIM card initialization, they can emit this event later. --- include/sim.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/sim.h') diff --git a/include/sim.h b/include/sim.h index 23b1905a..2218564a 100644 --- a/include/sim.h +++ b/include/sim.h @@ -187,7 +187,8 @@ unsigned int ofono_sim_add_state_watch(struct ofono_sim *sim, void ofono_sim_remove_state_watch(struct ofono_sim *sim, unsigned int id); enum ofono_sim_state ofono_sim_get_state(struct ofono_sim *sim); -void ofono_sim_set_ready(struct ofono_sim *sim); + +void ofono_sim_inserted_notify(struct ofono_sim *sim, ofono_bool_t inserted); /* This will queue an operation to read all available records with id from the * SIM. Callback cb will be called every time a record has been read, or once -- cgit v1.2.3