aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/call.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-02-06 20:26:30 +0100
committerPaul Kocialkowski <contact@paulk.fr>2014-02-06 20:26:30 +0100
commit0b3a6b4838e4ba55c79387bf7314e6dffb33bf42 (patch)
tree66988f78393b8e83974f4798ef095cde3b32eb99 /samsung-ipc/call.c
parentb2aaec58195f8ce135ba7debcef148998b8a3e71 (diff)
downloadexternal_libsamsung-ipc-0b3a6b4838e4ba55c79387bf7314e6dffb33bf42.zip
external_libsamsung-ipc-0b3a6b4838e4ba55c79387bf7314e6dffb33bf42.tar.gz
external_libsamsung-ipc-0b3a6b4838e4ba55c79387bf7314e6dffb33bf42.tar.bz2
Follow consistent coding style in headers
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/call.c')
-rw-r--r--samsung-ipc/call.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/samsung-ipc/call.c b/samsung-ipc/call.c
index 2c29d3d..c5c0c21 100644
--- a/samsung-ipc/call.c
+++ b/samsung-ipc/call.c
@@ -25,7 +25,7 @@
#define OUTGOING_NUMBER_MAX_LENGTH 86
-void ipc_call_outgoing_setup(struct ipc_call_outgoing *message, unsigned char type,
+void ipc_call_outgoing_setup(struct ipc_call_outgoing_data *message, unsigned char type,
unsigned char identity, unsigned char prefix, char *number)
{
int length;
@@ -37,12 +37,12 @@ void ipc_call_outgoing_setup(struct ipc_call_outgoing *message, unsigned char ty
if (length > OUTGOING_NUMBER_MAX_LENGTH)
length = OUTGOING_NUMBER_MAX_LENGTH;
- memset(message, 0, sizeof(struct ipc_call_outgoing));
+ memset(message, 0, sizeof(struct ipc_call_outgoing_data));
message->type = type;
message->identity = identity;
message->prefix = prefix;
- message->length = length;
+ message->number_length = length;
strncpy((char *) message->number, number, length);
}
@@ -71,7 +71,7 @@ struct ipc_call_list_entry* ipc_call_list_response_get_entry(struct ipc_message_
for (n = 0; n < num + 1; n++)
{
entry = (struct ipc_call_list_entry *) (response->data + pos);
- pos += (unsigned int) (sizeof(struct ipc_call_list_entry) + entry->number_len);
+ pos += (unsigned int) (sizeof(struct ipc_call_list_entry) + entry->number_length);
}
return entry;
@@ -93,7 +93,7 @@ char *ipc_call_list_response_get_entry_number(struct ipc_message_info *response,
for (n = 0; n < num + 1; n++)
{
if (entry != NULL)
- pos += entry->number_len;
+ pos += entry->number_length;
entry = (struct ipc_call_list_entry *) (response->data + pos);
pos += (unsigned int) sizeof(struct ipc_call_list_entry);
@@ -102,17 +102,17 @@ char *ipc_call_list_response_get_entry_number(struct ipc_message_info *response,
if (entry == NULL || (unsigned char *) (response->data + pos) == NULL)
return NULL;
- number = (char *) malloc(sizeof(char) * entry->number_len);
- strncpy(number, (char *) (response->data + pos), entry->number_len);
+ number = (char *) malloc(sizeof(char) * entry->number_length);
+ strncpy(number, (char *) (response->data + pos), entry->number_length);
return number;
}
-unsigned char *ipc_call_cont_dtmf_burst_pack(struct ipc_call_cont_dtmf *message,
+unsigned char *ipc_call_cont_dtmf_burst_pack(struct ipc_call_cont_dtmf_data *message,
unsigned char *burst, int burst_len)
{
unsigned char *data = NULL;
- int data_len = sizeof(struct ipc_call_cont_dtmf) + burst_len;
+ int data_len = sizeof(struct ipc_call_cont_dtmf_data) + burst_len;
if (message == NULL || burst == NULL || burst_len <= 0)
return NULL;
@@ -120,8 +120,8 @@ unsigned char *ipc_call_cont_dtmf_burst_pack(struct ipc_call_cont_dtmf *message,
data = (unsigned char *) malloc(sizeof(unsigned char) * data_len);
memset(data, 0, data_len);
- memcpy(data, message, sizeof(struct ipc_call_cont_dtmf));
- memcpy(data + sizeof(struct ipc_call_cont_dtmf), burst, burst_len);
+ memcpy(data, message, sizeof(struct ipc_call_cont_dtmf_data));
+ memcpy(data + sizeof(struct ipc_call_cont_dtmf_data), burst, burst_len);
return data;
}