All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable phonebook for hso modem
@ 2010-09-19  7:46 Yang Gu
  2010-09-19 11:38 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Gu @ 2010-09-19  7:46 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]

---
 plugins/hso.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/plugins/hso.c b/plugins/hso.c
index 25ca157..bfc5c47 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,
 };
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Enable phonebook for hso modem
  2010-09-19  7:46 [PATCH] Enable phonebook for hso modem Yang Gu
@ 2010-09-19 11:38 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2010-09-19 11:38 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

Hi Yang,

>  plugins/hso.c |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)

patch has been applied. Thanks.

Regards

Marcel



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-19 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-19  7:46 [PATCH] Enable phonebook for hso modem Yang Gu
2010-09-19 11:38 ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.