summaryrefslogtreecommitdiffstats
path: root/include/modem.h
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-09-17 10:14:02 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-09-17 10:14:02 -0500
commit0698fc2788303385920ee3c4fb8c5b636697c6cb (patch)
treed1213fa40f5337937754406798f51cf4b7088528 /include/modem.h
parent35cb156ba9e72c2c90bfec3e24b77d09c9454a45 (diff)
downloadofono-0698fc2788303385920ee3c4fb8c5b636697c6cb.tar.bz2
Split populate modem driver method
Introduce two new methods - pre_sim - SIM is not inserted or locked. This should populate the modem with atoms that can be used without the SIM. Generally this is the devinfo atom, the sim atom and the voice call atom (emergency calls only) - post_sim - SIM is ready. This method should populate the modem with the remaining atoms
Diffstat (limited to 'include/modem.h')
-rw-r--r--include/modem.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/modem.h b/include/modem.h
index 260ee19a..f718b9cf 100644
--- a/include/modem.h
+++ b/include/modem.h
@@ -78,8 +78,11 @@ struct ofono_modem_driver {
/* Power down device */
int (*disable)(struct ofono_modem *modem);
- /* Populate the atoms supported by this device */
- void (*populate)(struct ofono_modem *modem);
+ /* Populate the atoms available without SIM / Locked SIM */
+ void (*pre_sim)(struct ofono_modem *modem);
+
+ /* Populate the atoms that are available with SIM / Unlocked SIM*/
+ void (*post_sim)(struct ofono_modem *modem);
};
int ofono_modem_driver_register(const struct ofono_modem_driver *);