aboutsummaryrefslogtreecommitdiffstats
path: root/include/call.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-02-09 13:51:38 +0100
committerPaul Kocialkowski <contact@paulk.fr>2014-02-09 13:51:38 +0100
commit828f125ee5957ee3f64d45329f5ac261a2a3c1a7 (patch)
tree7cb2c2433a4fae20f660dd60819350034ea1ebeb /include/call.h
parent6cb0b59e3f0a7b8f2c9690b7e8d171d88d000270 (diff)
downloadexternal_libsamsung-ipc-828f125ee5957ee3f64d45329f5ac261a2a3c1a7.zip
external_libsamsung-ipc-828f125ee5957ee3f64d45329f5ac261a2a3c1a7.tar.gz
external_libsamsung-ipc-828f125ee5957ee3f64d45329f5ac261a2a3c1a7.tar.bz2
Consistent coding style in helpers
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include/call.h')
-rw-r--r--include/call.h32
1 files changed, 23 insertions, 9 deletions
diff --git a/include/call.h b/include/call.h
index a98f847..92cb563 100644
--- a/include/call.h
+++ b/include/call.h
@@ -104,6 +104,10 @@ struct ipc_call_status_data {
unsigned char end_cause; // IPC_CALL_END_CAUSE
} __attribute__((__packed__));
+struct ipc_call_list_header {
+ unsigned char count;
+} __attribute__((__packed__));
+
struct ipc_call_list_entry {
unsigned char unknown1;
unsigned char type; // IPC_CALL_TYPE
@@ -115,6 +119,15 @@ struct ipc_call_list_entry {
unsigned char unknown3;
} __attribute__((__packed__));
+struct ipc_call_burst_dtmf_header {
+ unsigned char count;
+} __attribute__((__packed__));
+
+struct ipc_call_burst_dtmf_entry {
+ unsigned char state;
+ unsigned char tone;
+} __attribute__((__packed__));
+
struct ipc_call_cont_dtmf_data {
unsigned char state;
unsigned char tone;
@@ -124,15 +137,16 @@ struct ipc_call_cont_dtmf_data {
* Helpers
*/
-void ipc_call_outgoing_setup(struct ipc_call_outgoing_data *message, unsigned char type,
- unsigned char identity, unsigned char prefix, char *number);
-unsigned int ipc_call_list_response_get_num_entries(struct ipc_message_info *response);
-struct ipc_call_list_entry* ipc_call_list_response_get_entry(struct ipc_message_info *response,
- unsigned int num);
-char *ipc_call_list_response_get_entry_number(struct ipc_message_info *response,
- unsigned int num);
-unsigned char *ipc_call_cont_dtmf_burst_pack(struct ipc_call_cont_dtmf_data *message,
- unsigned char *burst, int burst_len);
+int ipc_call_outgoing_setup(struct ipc_call_outgoing_data *data,
+ unsigned char type, unsigned char identity, unsigned char prefix,
+ const char *number);
+unsigned char ipc_call_list_get_count(const void *data, size_t size);
+struct ipc_call_list_entry *ipc_call_list_get_entry(const void *data,
+ size_t size, unsigned int index);
+char *ipc_call_list_get_entry_number(const void *data,
+ size_t size, unsigned int index);
+void *ipc_call_burst_dtmf_setup(const struct ipc_call_burst_dtmf_entry *entries,
+ unsigned char count);
#endif