diff options
-rw-r--r-- | include/call.h | 9 | ||||
-rw-r--r-- | vapi/samsung-ipc-1.0.vapi | 13 |
2 files changed, 20 insertions, 2 deletions
diff --git a/include/call.h b/include/call.h index b6f5068..9c2e7c7 100644 --- a/include/call.h +++ b/include/call.h @@ -57,6 +57,13 @@ #define IPC_CALL_STATE_RELEASED 0x04 #define IPC_CALL_STATE_CONNECTING 0x05 +#define IPC_CALL_LIST_ENTRY_STATE_ACTIVE 0x01 +#define IPC_CALL_LIST_ENTRY_STATE_HOLDING 0x02 +#define IPC_CALL_LIST_ENTRY_STATE_DIALING 0x03 +#define IPC_CALL_LIST_ENTRY_STATE_ALERTING 0x04 +#define IPC_CALL_LIST_ENTRY_STATE_INCOMING 0x05 +#define IPC_CALL_LIST_ENTRY_STATE_WAITING 0x06 + #define IPC_CALL_TERM_MO 0x01 #define IPC_CALL_TERM_MT 0x02 @@ -72,7 +79,7 @@ struct ipc_call_list_entry { unsigned char type; // IPC_CALL_TYPE_... unsigned char idx; unsigned char term; // IPC_CALL_TERM_... - unsigned char state; + unsigned char state; // IPC_CALL_LIST_ENTRY_STATE_... unsigned char mpty; unsigned char number_len; unsigned char unk4; diff --git a/vapi/samsung-ipc-1.0.vapi b/vapi/samsung-ipc-1.0.vapi index cc16d13..2f29e7c 100644 --- a/vapi/samsung-ipc-1.0.vapi +++ b/vapi/samsung-ipc-1.0.vapi @@ -627,6 +627,17 @@ namespace SamsungIpc CONNECTING, } + [CCode (cname = "gint8", cprefix = "IPC_CALL_LIST_ENTRY_STATE_", has_type_id = false)] + public enum State2 + { + ACTIVE, + HOLDING, + DIALING, + ALERTING, + INCOMING, + WAITING + } + [CCode (cname = "int", cprefix = "IPC_CALL_TERM_", has_type_id = false)] public enum Termination { @@ -693,7 +704,7 @@ namespace SamsungIpc public Type type; public uint8 idx; public Termination term; - public uint8 state; + public State2 state; public uint8 mpty; public uint8 number_len; public uint8 unk4; |