summaryrefslogtreecommitdiff
path: root/src/libgsmd
diff options
context:
space:
mode:
authorlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-08-17 08:36:48 +0000
committerlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-08-17 08:36:48 +0000
commitad708e46d7a8adc45aa8b9ec2ff7b110303f708f (patch)
tree5a5cc9f7679a8dec50677048d2aa6d52c0f5d9cd /src/libgsmd
parent1dc0db218c93c606e0eb3ab5d7cc2dff1677fe75 (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 'src/libgsmd')
-rw-r--r--src/libgsmd/libgsmd_network.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libgsmd/libgsmd_network.c b/src/libgsmd/libgsmd_network.c
index 0b458de..333debd 100644
--- a/src/libgsmd/libgsmd_network.c
+++ b/src/libgsmd/libgsmd_network.c
@@ -128,3 +128,8 @@ int lgsm_prefoper_get_space(struct lgsm_handle *lh)
{
return lgsm_send_simple(lh, GSMD_MSG_NETWORK, GSMD_NETWORK_PREF_SPACE);
}
+
+int lgsm_get_subscriber_num(struct lgsm_handle *lh)
+{
+ return lgsm_send_simple(lh, GSMD_MSG_NETWORK, GSMD_NETWORK_GET_NUMBER);
+}
personal git repositories of Harald Welte. Your mileage may vary