summaryrefslogtreecommitdiffstats
path: root/drivers/isimodem/isi.h
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@nokia.com>2009-08-13 19:54:26 +0300
committerAki Niemi <aki.niemi@nokia.com>2009-08-14 16:55:55 +0300
commit2076a044ecc2e9af5e188ad2de312520d6540739 (patch)
tree146f279aa72a8710551a187c9d8aa02c28a4ed38 /drivers/isimodem/isi.h
parent01b4c494477150a2630c5bf734119e2f8fa53c67 (diff)
downloadofono-2076a044ecc2e9af5e188ad2de312520d6540739.tar.bz2
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.
Diffstat (limited to 'drivers/isimodem/isi.h')
-rw-r--r--drivers/isimodem/isi.h10
1 files changed, 10 insertions, 0 deletions
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);