diff options
author | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2006-10-23 20:28:37 +0000 |
---|---|---|
committer | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2006-10-23 20:28:37 +0000 |
commit | cbffc8d64707828b045b679e8db0269ae362ffcf (patch) | |
tree | 9ba71c11b92600548581af9d582a2c1feb18473f /include/gsmd | |
parent | 7fe163099476937a14dd7a0714de542f7f94f665 (diff) |
more gsmd/libgsm implementation
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@114 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'include/gsmd')
-rw-r--r-- | include/gsmd/event.h | 1 | ||||
-rw-r--r-- | include/gsmd/usock.h | 10 |
2 files changed, 4 insertions, 7 deletions
diff --git a/include/gsmd/event.h b/include/gsmd/event.h index c6f2986..6ae4e02 100644 --- a/include/gsmd/event.h +++ b/include/gsmd/event.h @@ -14,6 +14,7 @@ enum gsmd_events { GSMD_EVT_OUT_COLP = 9, /* Outgoing COLP */ GSMD_EVT_CALL_WAIT = 10, /* Call Waiting */ GSMD_EVT_TIMEZONE = 11, /* Timezone change */ + GSMD_EVT_SUBSCRIPTIONS = 12, /* To which events are we subscribed to */ __NUM_GSMD_EVT }; diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h index eced10e..f5d26ae 100644 --- a/include/gsmd/usock.h +++ b/include/gsmd/usock.h @@ -30,15 +30,10 @@ enum gsmd_passthrough_type { GSMD_PASSTHROUGH_RESP = 2, }; -enum gsmd_event_type { - GSMD_EVENT_NONE = 0, - GSMD_EVENT_SUBSCRIPTIONS= 1, - GSMD_EVENT_HAPPENED = 2, -}; - enum gsmd_msg_voicecall_type { GSMD_VOICECALL_DIAL = 1, GSMD_VOICECALL_HANGUP = 2, + GSMD_VOICECALL_ANSWER = 3, }; /* Handset / MT related commands */ @@ -53,7 +48,7 @@ enum gsmd_msg_pin_type { /* Length from 3GPP TS 04.08, Clause 10.5.4.7 */ -#define GSMD_ADDR_MAXLEN 13 +#define GSMD_ADDR_MAXLEN 32 struct gsmd_addr { u_int8_t type; char number[GSMD_ADDR_MAXLEN+1]; @@ -95,6 +90,7 @@ struct gsmd_msg_hdr { u_int8_t _pad; u_int16_t id; u_int16_t len; + u_int8_t data[]; } __attribute__((packed)); |