From 636e8ecfdf47c6441975e41ed3f39dace55485c6 Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Thu, 6 Mar 2008 09:35:12 +0000 Subject: gsmd: Query Antenna Status (Erin Yueh) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4174 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/libgsmd/libgsmd_phone.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libgsmd') 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); -- cgit v1.2.3