diff options
author | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-08-17 08:36:48 +0000 |
---|---|---|
committer | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-08-17 08:36:48 +0000 |
commit | ad708e46d7a8adc45aa8b9ec2ff7b110303f708f (patch) | |
tree | 5a5cc9f7679a8dec50677048d2aa6d52c0f5d9cd /include | |
parent | 1dc0db218c93c606e0eb3ab5d7cc2dff1677fe75 (diff) |
Add retrieving phone's own subscriber number. (Andrzej Zaborowski)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2733 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'include')
-rw-r--r-- | include/gsmd/usock.h | 18 | ||||
-rw-r--r-- | include/libgsmd/misc.h | 3 |
2 files changed, 21 insertions, 0 deletions
diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h index 3472189..19c616c 100644 --- a/include/gsmd/usock.h +++ b/include/gsmd/usock.h @@ -478,6 +478,24 @@ struct gsmd_phonebook_storage { char storage[3]; } __attribute__ ((packed)); +/* Subscriber number information from 3GPP TS 07.07, Clause 7.1 */ +enum gsmd_subscriber_service { + GSMD_SERVICE_UNKNOWN = -1, + GSMD_SERVICE_ASYNC_MODEM = 0, + GSMD_SERVICE_SYNC_MODEM, + GSMD_SERVICE_PAD_ACCESS, + GSMD_SERVICE_PACKET_ACCESS, + GSMD_SERVICE_VOICE, + GSMD_SERVICE_FAX, +}; + +struct gsmd_own_number { + int is_last; + enum gsmd_subscriber_service service; + struct gsmd_addr addr; + char name[0]; +}; + struct gsmd_msg_hdr { u_int8_t version; u_int8_t msg_type; diff --git a/include/libgsmd/misc.h b/include/libgsmd/misc.h index d673c31..8fa1ba6 100644 --- a/include/libgsmd/misc.h +++ b/include/libgsmd/misc.h @@ -68,6 +68,9 @@ extern int lgsm_prefoper_delete(struct lgsm_handle *lh, int index); extern int lgsm_prefoper_add(struct lgsm_handle *lh, gsmd_oper_numeric oper); extern int lgsm_prefoper_get_space(struct lgsm_handle *lh); +/* Get subscriber's own phone number */ +extern int lgsm_get_subscriber_num(struct lgsm_handle *lh); + /* CLIP, CLIR, COLP, Call Forwarding, Call Waiting, Call Deflecting */ /* TBD */ |