From 29a2f6a3b46afb00052a24b05232630acad3af70 Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Thu, 21 Feb 2008 05:16:15 +0000 Subject: gsmd: get battery status (Sudharshan S) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4091 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/libgsmd/libgsmd_phone.c | 4 ++++ src/libgsmd/libgsmd_pin.c | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/libgsmd') diff --git a/src/libgsmd/libgsmd_phone.c b/src/libgsmd/libgsmd_phone.c index 18cd614..2c67e8e 100644 --- a/src/libgsmd/libgsmd_phone.c +++ b/src/libgsmd/libgsmd_phone.c @@ -70,3 +70,7 @@ int lgsm_get_serial(struct lgsm_handle *lh) return lgsm_send_simple(lh, GSMD_MSG_PHONE, GSMD_PHONE_GET_SERIAL); } +int lgsm_get_battery(struct lgsm_handle *lh) +{ + return lgsm_send_simple(lh, GSMD_MSG_PHONE, GSMD_PHONE_GET_BATTERY); +} diff --git a/src/libgsmd/libgsmd_pin.c b/src/libgsmd/libgsmd_pin.c index 8d50b67..98fcbcc 100644 --- a/src/libgsmd/libgsmd_pin.c +++ b/src/libgsmd/libgsmd_pin.c @@ -28,6 +28,8 @@ #include #include +#include "lgsm_internals.h" + static const char *pin_type_names[__NUM_GSMD_PIN] = { [GSMD_PIN_READY] = "READY", [GSMD_PIN_SIM_PIN] = "SIM PIN", -- cgit v1.2.3