summaryrefslogtreecommitdiff
path: root/src/libgsmd
diff options
context:
space:
mode:
authortick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-12-03 07:08:22 +0000
committertick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-12-03 07:08:22 +0000
commitf09dc3e887bf0946975c1e78f01921827117ba50 (patch)
treee82acbf437ed97d7979fde494a3ade40ee5bdac9 /src/libgsmd
parent10cda54ece58b5de918cefb332df0143bdedec82 (diff)
gsmd: Rewrite read, readrg and find of phonebook. (Sean Chiang)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3551 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/libgsmd')
-rw-r--r--src/libgsmd/libgsmd_phonebook.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/libgsmd/libgsmd_phonebook.c b/src/libgsmd/libgsmd_phonebook.c
index f139c2a..798cd2f 100644
--- a/src/libgsmd/libgsmd_phonebook.c
+++ b/src/libgsmd/libgsmd_phonebook.c
@@ -199,51 +199,3 @@ int lgsm_pb_get_support(struct lgsm_handle *lh)
{
return lgsm_send_simple(lh, GSMD_MSG_PHONEBOOK, GSMD_PHONEBOOK_GET_SUPPORT);
}
-
-int lgsm_pb_retrieve_readrg(struct lgsm_handle *lh, int num)
-{
- struct gsmd_msg_hdr *gmh;
- int rc;
-
- gmh = lgsm_gmh_fill(GSMD_MSG_PHONEBOOK,
- GSMD_PHONEBOOK_RETRIEVE_READRG, sizeof(int));
- if (!gmh)
- return -ENOMEM;
-
- *(int *)(gmh->data) = num;
-
- rc = lgsm_send(lh, gmh);
- if (rc < gmh->len + sizeof(*gmh)) {
- lgsm_gmh_free(gmh);
- return -EIO;
- }
-
- lgsm_gmh_free(gmh);
-
- return 0;
-}
-
-int lgsm_pb_retrieve_find(struct lgsm_handle *lh, int num)
-{
- struct gsmd_msg_hdr *gmh;
- int rc;
-
- gmh = lgsm_gmh_fill(GSMD_MSG_PHONEBOOK,
- GSMD_PHONEBOOK_RETRIEVE_FIND, sizeof(int));
- if (!gmh)
- return -ENOMEM;
-
- *(int *)(gmh->data) = num;
-
- rc = lgsm_send(lh, gmh);
- if (rc < gmh->len + sizeof(*gmh)) {
- lgsm_gmh_free(gmh);
- return -EIO;
- }
-
- lgsm_gmh_free(gmh);
-
- return 0;
-}
-
-
personal git repositories of Harald Welte. Your mileage may vary