diff options
author | Frédéric Danis <frederic.danis@linux.intel.com> | 2011-06-21 18:48:33 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-06-21 12:07:23 -0500 |
commit | a79546eaf4f3d07ee96d6e5030e765c7c894c012 (patch) | |
tree | 49d401d9430cc12fff532496b3bcbfd5190c3421 | |
parent | b22b0ab57b95fadd9f034cb7925c6f5c314ccd0e (diff) | |
download | ofono-a79546eaf4f3d07ee96d6e5030e765c7c894c012.tar.bz2 |
message-waiting: API to retrieve voicemail number
-rw-r--r-- | src/message-waiting.c | 7 | ||||
-rw-r--r-- | src/ofono.h | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/message-waiting.c b/src/message-waiting.c index ad534d99..7e8c3f44 100644 --- a/src/message-waiting.c +++ b/src/message-waiting.c @@ -605,6 +605,13 @@ static void mw_cphs_mbdn_changed(int id, void *userdata) mw_cphs_mbdn_read_cb, mw); } +const struct ofono_phone_number *__ofono_message_waiting_get_mbdn( + struct ofono_message_waiting *mw, + unsigned int index) +{ + return &mw->mailbox_number[index]; +} + static void mw_mbi_read_cb(int ok, int total_length, int record, const unsigned char *data, int record_length, void *userdata) diff --git a/src/ofono.h b/src/ofono.h index 33eaf93d..6524806b 100644 --- a/src/ofono.h +++ b/src/ofono.h @@ -447,6 +447,10 @@ struct sms; void __ofono_message_waiting_mwi(struct ofono_message_waiting *mw, struct sms *sms, gboolean *out_discard); +const struct ofono_phone_number *__ofono_message_waiting_get_mbdn( + struct ofono_message_waiting *mw, + unsigned int index); + #include <ofono/nettime.h> void __ofono_nettime_probe_drivers(struct ofono_modem *modem); |