From 2076a044ecc2e9af5e188ad2de312520d6540739 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Thu, 13 Aug 2009 19:54:26 +0300 Subject: Add ISI modem SIM phonebook support This patch only provides access to the SIM phonebook. Note that the interface to the SIM phonebook is quite slow, which may cause timeouts on phonebooks with a large number of entries using the default D-Bus timeout value. --- drivers/isimodem/isi.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/isimodem/isi.h') diff --git a/drivers/isimodem/isi.h b/drivers/isimodem/isi.h index e808bfd8..f753d386 100644 --- a/drivers/isimodem/isi.h +++ b/drivers/isimodem/isi.h @@ -26,9 +26,16 @@ e.type = OFONO_ERROR_TYPE_FAILURE; \ e.error = 0 \ +#define DECLARE_SUCCESS(e) \ + struct ofono_error e; \ + e.type = OFONO_ERROR_TYPE_NO_ERROR; \ + e.error = 0 \ + + struct isi_data { struct ofono_modem *modem; struct netreg_data *netreg; + struct pb_data *pb; }; struct isi_cb_data { @@ -54,3 +61,6 @@ static inline struct isi_cb_data *isi_cb_data_new(struct ofono_modem *modem, } void dump_msg(const unsigned char *msg, size_t len); + +extern void isi_phonebook_init(struct ofono_modem *modem); +extern void isi_phonebook_exit(struct ofono_modem *modem); -- cgit v1.2.3