summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-02-26 08:57:39 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-02-26 08:57:39 +0000
commit33b13190e1e8925100a7d577ce9ee72344eff987 (patch)
tree1a248b3ff2e901ad5165d849264aaad69d068cf8 /include
parent7d514fad9af90ea6c12e4bcab41176f5dd9de282 (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 'include')
-rw-r--r--include/gsmd/state.h1
-rw-r--r--include/gsmd/usock.h2
-rw-r--r--include/libgsmd/misc.h4
3 files changed, 7 insertions, 0 deletions
diff --git a/include/gsmd/state.h b/include/gsmd/state.h
index 65659ef..7162b4f 100644
--- a/include/gsmd/state.h
+++ b/include/gsmd/state.h
@@ -13,6 +13,7 @@ struct gsmd_device_state {
unsigned int network_state_gsm;
unsigned int network_state_gprs;
} ciph_ind;
+ unsigned int vibrator;
unsigned int on;
unsigned int registered;
unsigned int ringing;
diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h
index 7df22b2..bb03aa1 100644
--- a/include/gsmd/usock.h
+++ b/include/gsmd/usock.h
@@ -140,6 +140,8 @@ enum gsmd_msg_phone {
GSMD_PHONE_GET_REVISION = 6,
GSMD_PHONE_GET_SERIAL = 7,
GSMD_PHONE_GET_BATTERY = 8,
+ GSMD_PHONE_VIB_ENABLE = 9,
+ GSMD_PHONE_VIB_DISABLE = 10,
};
enum gsmd_msg_modem {
diff --git a/include/libgsmd/misc.h b/include/libgsmd/misc.h
index 884e294..9100260 100644
--- a/include/libgsmd/misc.h
+++ b/include/libgsmd/misc.h
@@ -73,4 +73,8 @@ extern int lgsm_voicemail_set(struct lgsm_handle *lh, const char *number);
extern int lgsm_voicemail_get(struct lgsm_handle *lh);
/* Get Battery Connection status and charge level */
extern int lgsm_get_battery(struct lgsm_handle *lh);
+
+/* Enable vibrator */
+extern int lgsm_phone_vibrator(struct lgsm_handle *lh, int enable);
+
#endif
personal git repositories of Harald Welte. Your mileage may vary