diff options
author | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-02-26 08:57:39 +0000 |
---|---|---|
committer | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-02-26 08:57:39 +0000 |
commit | 33b13190e1e8925100a7d577ce9ee72344eff987 (patch) | |
tree | 1a248b3ff2e901ad5165d849264aaad69d068cf8 /src/libgsmd | |
parent | 7d514fad9af90ea6c12e4bcab41176f5dd9de282 (diff) |
gsmd: add vibrator at cmd (Sudharshan S)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4115 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/libgsmd')
-rw-r--r-- | src/libgsmd/libgsmd_phone.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libgsmd/libgsmd_phone.c b/src/libgsmd/libgsmd_phone.c index 2c67e8e..5ad5e44 100644 --- a/src/libgsmd/libgsmd_phone.c +++ b/src/libgsmd/libgsmd_phone.c @@ -74,3 +74,15 @@ int lgsm_get_battery(struct lgsm_handle *lh) { return lgsm_send_simple(lh, GSMD_MSG_PHONE, GSMD_PHONE_GET_BATTERY); } + +int lgsm_phone_vibrator(struct lgsm_handle *lh, int enable) +{ + int type; + if(enable) + type = GSMD_PHONE_VIB_ENABLE; + else + type = GSMD_PHONE_VIB_DISABLE; + + return lgsm_send_simple(lh, GSMD_MSG_PHONE, type); +} + |