From c5eec553984f937b1f1682378ab7096b7f6b3933 Mon Sep 17 00:00:00 2001 From: laforge Date: Fri, 17 Aug 2007 08:32:50 +0000 Subject: SIM Phonebook access implementation. This patch adds primitive-but-working support for SIM phonebook access, including phonebook memory storage and entry read/write/delete. Also, libgsmd-tools shell is modified to perform listing actions. API changes: lgsm_pb_read_entryies -> lgsm_pb_read_entries lgsm_pb_list_storage (new): List of supported phonebook memory storage. lgsm_pb_set_storage (new); Select phonebook memory storage. lgsmd_pb_del_entry -> lgsm_pb_del_entry lgsmd_pb_write_entry -> lgsm_pb_write_entry git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2726 99fdad57-331a-0410-800a-d7fa5415bdb3 --- include/libgsmd/phonebook.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'include/libgsmd') diff --git a/include/libgsmd/phonebook.h b/include/libgsmd/phonebook.h index a08d891..badb76f 100644 --- a/include/libgsmd/phonebook.h +++ b/include/libgsmd/phonebook.h @@ -78,6 +78,12 @@ extern int lgsm_pb_get_entry(struct lgsm_handle *lh, extern int lgsm_pb_set_entry(struct lgsm_handle *lh, struct lgsm_pb_entry *pb); +/* List of supported phonebook memory storage */ +extern int lgsm_pb_list_storage(struct lgsm_handle *lh); + +/* Select phonebook memory storage */ +extern int lgsm_pb_set_storage(struct lgsm_handle *lh, char *storage); + /* Find phonebook entires which alphanumeric filed start * with string */ extern int lgsm_pb_find_entry(struct lgsm_handle *lh, @@ -87,14 +93,14 @@ extern int lgsm_pb_find_entry(struct lgsm_handle *lh, extern int lgsm_pb_read_entry(struct lgsm_handle *lh, int index); /* Read phonebook entries in location number range */ -extern int lgsm_pb_read_entryies(struct lgsm_handle *lh, +extern int lgsm_pb_read_entries(struct lgsm_handle *lh, const struct lgsm_phonebook_readrg *pb_readrg); /* Delete phonebook entry in location index */ -extern int lgsmd_pb_del_entry(struct lgsm_handle *lh, int index); +extern int lgsm_pb_del_entry(struct lgsm_handle *lh, int index); /* Write phonebook entry in location */ -extern int lgsmd_pb_write_entry(struct lgsm_handle *lh, +extern int lgsm_pb_write_entry(struct lgsm_handle *lh, const struct lgsm_phonebook *pb); /* Get the location range/nlength/tlength supported */ -- cgit v1.2.3