summaryrefslogtreecommitdiff
path: root/src/libgsmd/libgsmd_phone.c
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-03-06 09:35:12 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-03-06 09:35:12 +0000
commit636e8ecfdf47c6441975e41ed3f39dace55485c6 (patch)
treeaf38a8465ff88f7ffef39727b40935d1cc5d704f /src/libgsmd/libgsmd_phone.c
parentdc73a4a864610c3f9d5a175d30f9a168e3dc88fd (diff)
gsmd: Query Antenna Status (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4174 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/libgsmd/libgsmd_phone.c')
-rw-r--r--src/libgsmd/libgsmd_phone.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libgsmd/libgsmd_phone.c b/src/libgsmd/libgsmd_phone.c
index 5ad5e44..a67642a 100644
--- a/src/libgsmd/libgsmd_phone.c
+++ b/src/libgsmd/libgsmd_phone.c
@@ -45,6 +45,11 @@ int lgsm_phone_power(struct lgsm_handle *lh, int power)
return lgsm_send_simple(lh, GSMD_MSG_PHONE, type);
}
+int lgsm_get_power_status(struct lgsm_handle *lh)
+{
+ return lgsm_send_simple(lh, GSMD_MSG_PHONE, GSMD_PHONE_POWER_STATUS);
+}
+
int lgsm_get_imsi(struct lgsm_handle *lh)
{
return lgsm_send_simple(lh, GSMD_MSG_PHONE, GSMD_PHONE_GET_IMSI);
personal git repositories of Harald Welte. Your mileage may vary