summaryrefslogtreecommitdiffstats
path: root/plugins/hso.c
diff options
context:
space:
mode:
authorYang Gu <yang.gu@intel.com>2010-09-19 15:46:54 +0800
committerMarcel Holtmann <marcel@holtmann.org>2010-09-19 20:38:13 +0900
commit5d569e2ee6d9824a4c69fa3587d576220af20049 (patch)
tree6855f9308bbb298d381b348dc891ba201d20bbb4 /plugins/hso.c
parenta4aeedc3f095cdc2d9d7938783b91c38433f96d5 (diff)
downloadofono-5d569e2ee6d9824a4c69fa3587d576220af20049.tar.bz2
hso: Enable phonebook atom
Diffstat (limited to 'plugins/hso.c')
-rw-r--r--plugins/hso.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/hso.c b/plugins/hso.c
index 25ca1574..bfc5c471 100644
--- a/plugins/hso.c
+++ b/plugins/hso.c
@@ -36,6 +36,7 @@
#include <ofono/modem.h>
#include <ofono/devinfo.h>
#include <ofono/netreg.h>
+#include <ofono/phonebook.h>
#include <ofono/sim.h>
#include <ofono/cbs.h>
#include <ofono/sms.h>
@@ -262,6 +263,15 @@ static void hso_pre_sim(struct ofono_modem *modem)
ofono_sim_inserted_notify(sim, TRUE);
}
+static void hso_post_sim(struct ofono_modem *modem)
+{
+ struct hso_data *data = ofono_modem_get_data(modem);
+
+ DBG("%p", modem);
+
+ ofono_phonebook_create(modem, 0, "atmodem", data->app);
+}
+
static void hso_post_online(struct ofono_modem *modem)
{
struct hso_data *data = ofono_modem_get_data(modem);
@@ -296,6 +306,7 @@ static struct ofono_modem_driver hso_driver = {
.disable = hso_disable,
.set_online = hso_set_online,
.pre_sim = hso_pre_sim,
+ .post_sim = hso_post_sim,
.post_online = hso_post_online,
};