diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-06-25 22:29:03 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-06-25 22:29:03 +0200 |
commit | 30ba6fd8cd5cf14ebdcd1738bb8972149f764054 (patch) | |
tree | f5d0a133b43c59470629deaaa9efef7729f73e11 /samsung-ipc | |
parent | c9dfae7a17ea4e5a2e114df331942f70d48bfe5b (diff) | |
download | external_libsamsung-ipc-30ba6fd8cd5cf14ebdcd1738bb8972149f764054.zip external_libsamsung-ipc-30ba6fd8cd5cf14ebdcd1738bb8972149f764054.tar.gz external_libsamsung-ipc-30ba6fd8cd5cf14ebdcd1738bb8972149f764054.tar.bz2 |
Add newline and indentation on long functions names
Change-Id: Ie393301a04523816e7aa674e57a4c3a2eb93247e
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc')
-rw-r--r-- | samsung-ipc/call.c | 12 | ||||
-rw-r--r-- | samsung-ipc/ipc.c | 25 | ||||
-rw-r--r-- | samsung-ipc/ipc_util.c | 6 | ||||
-rw-r--r-- | samsung-ipc/net.c | 6 | ||||
-rw-r--r-- | samsung-ipc/rfs.c | 6 | ||||
-rw-r--r-- | samsung-ipc/sec.c | 8 | ||||
-rw-r--r-- | samsung-ipc/sms.c | 2 |
7 files changed, 41 insertions, 24 deletions
diff --git a/samsung-ipc/call.c b/samsung-ipc/call.c index ee7ef89..74da569 100644 --- a/samsung-ipc/call.c +++ b/samsung-ipc/call.c @@ -26,7 +26,8 @@ #define OUTGOING_NUMBER_MAX_LENGTH 86 -void ipc_call_outgoing_setup(struct ipc_call_outgoing *message, unsigned char type, unsigned char identity, unsigned char prefix, char *number) +void ipc_call_outgoing_setup(struct ipc_call_outgoing *message, unsigned char type, + unsigned char identity, unsigned char prefix, char *number) { int length; @@ -57,7 +58,8 @@ unsigned int ipc_call_list_response_get_num_entries(struct ipc_message_info *res } /* Retrieve one specific entry from a list of calls */ -struct ipc_call_list_entry* ipc_call_list_response_get_entry(struct ipc_message_info *response, unsigned int num) +struct ipc_call_list_entry* ipc_call_list_response_get_entry(struct ipc_message_info *response, + unsigned int num) { unsigned int count, pos, n; struct ipc_call_list_entry *entry = NULL; @@ -77,7 +79,8 @@ struct ipc_call_list_entry* ipc_call_list_response_get_entry(struct ipc_message_ } /* Retrieve the number of a call entry in the list of calls */ -char *ipc_call_list_response_get_entry_number(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 int count, pos, n; struct ipc_call_list_entry *entry = NULL; @@ -106,7 +109,8 @@ char *ipc_call_list_response_get_entry_number(struct ipc_message_info *response, return number; } -unsigned char *ipc_call_cont_dtmf_burst_pack(struct ipc_call_cont_dtmf *message, unsigned char *burst, int burst_len) +unsigned char *ipc_call_cont_dtmf_burst_pack(struct ipc_call_cont_dtmf *message, + unsigned char *burst, int burst_len) { unsigned char *data = NULL; int data_len = sizeof(struct ipc_call_cont_dtmf) + burst_len; diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c index 028e930..db68f81 100644 --- a/samsung-ipc/ipc.c +++ b/samsung-ipc/ipc.c @@ -188,7 +188,8 @@ int ipc_client_free(struct ipc_client *client) return 0; } -int ipc_client_set_log_handler(struct ipc_client *client, ipc_client_log_handler_cb log_handler_cb, void *user_data) +int ipc_client_set_log_handler(struct ipc_client *client, + ipc_client_log_handler_cb log_handler_cb, void *user_data) { if (client == NULL) return -1; @@ -199,7 +200,8 @@ int ipc_client_set_log_handler(struct ipc_client *client, ipc_client_log_handler return 0; } -int ipc_client_set_handlers(struct ipc_client *client, struct ipc_handlers *handlers) +int ipc_client_set_handlers(struct ipc_client *client, + struct ipc_handlers *handlers) { if (client == NULL || handlers == NULL) @@ -211,8 +213,8 @@ int ipc_client_set_handlers(struct ipc_client *client, struct ipc_handlers *hand } int ipc_client_set_io_handlers(struct ipc_client *client, - ipc_io_handler_cb read, void *read_data, - ipc_io_handler_cb write, void *write_data) + ipc_io_handler_cb read, void *read_data, + ipc_io_handler_cb write,void *write_data) { if (client == NULL || client->handlers == NULL) @@ -455,17 +457,20 @@ int _ipc_client_send(struct ipc_client *client, struct ipc_message_info *request return client->ops->send(client, request); } -inline void ipc_client_send_get(struct ipc_client *client, const unsigned short command, unsigned char mseq) +inline void ipc_client_send_get(struct ipc_client *client, + const unsigned short command, unsigned char mseq) { ipc_client_send(client, command, IPC_TYPE_GET, 0, 0, mseq); } -inline void ipc_client_send_exec(struct ipc_client *client, const unsigned short command, unsigned char mseq) +inline void ipc_client_send_exec(struct ipc_client *client, + const unsigned short command, unsigned char mseq) { ipc_client_send(client, command, IPC_TYPE_EXEC, 0, 0, mseq); } -void ipc_client_send(struct ipc_client *client, const unsigned short command, const char type, unsigned char *data, const int length, unsigned char mseq) +void ipc_client_send(struct ipc_client *client, const unsigned short command, + const char type, unsigned char *data, const int length, unsigned char mseq) { struct ipc_message_info request; @@ -480,7 +485,8 @@ void ipc_client_send(struct ipc_client *client, const unsigned short command, co _ipc_client_send(client, &request); } -int ipc_client_recv(struct ipc_client *client, struct ipc_message_info *response) +int ipc_client_recv(struct ipc_client *client, + struct ipc_message_info *response) { if (client == NULL || client->ops == NULL || @@ -490,7 +496,8 @@ int ipc_client_recv(struct ipc_client *client, struct ipc_message_info *response return client->ops->recv(client, response); } -void ipc_client_response_free(struct ipc_client *client, struct ipc_message_info *response) +void ipc_client_response_free(struct ipc_client *client, + struct ipc_message_info *response) { if (response->data != NULL) { free(response->data); diff --git a/samsung-ipc/ipc_util.c b/samsung-ipc/ipc_util.c index f8ca088..1b96768 100644 --- a/samsung-ipc/ipc_util.c +++ b/samsung-ipc/ipc_util.c @@ -313,7 +313,8 @@ void ipc_client_hex_dump(struct ipc_client *client, void *data, int size) } } -void *ipc_client_mtd_read(struct ipc_client *client, char *mtd_name, int size, int block_size) +void *ipc_client_mtd_read(struct ipc_client *client, char *mtd_name, int size, + int block_size) { void *mtd_p=NULL; uint8_t *data_p=NULL; @@ -362,7 +363,8 @@ error: return NULL; } -void *ipc_client_file_read(struct ipc_client *client, char *file_name, int size, int block_size) +void *ipc_client_file_read(struct ipc_client *client, char *file_name, int size, + int block_size) { void *file_p=NULL; uint8_t *data_p=NULL; diff --git a/samsung-ipc/net.c b/samsung-ipc/net.c index 7164565..996673e 100644 --- a/samsung-ipc/net.c +++ b/samsung-ipc/net.c @@ -23,14 +23,16 @@ #include <samsung-ipc.h> -void ipc_net_regist_get_setup(struct ipc_net_regist_get *message, unsigned char domain) +void ipc_net_regist_get_setup(struct ipc_net_regist_get *message, + unsigned char domain) { /* FIXME: could that be IPC_NET_ACCESS_TECHNOLOGY_... (act) ? */ message->net = 0xff; message->domain = domain; } -void ipc_net_plmn_sel_set_setup(struct ipc_net_plmn_sel_set *message, unsigned char mode, char *plmn, unsigned char act) +void ipc_net_plmn_sel_set_setup(struct ipc_net_plmn_sel_set *message, + unsigned char mode, char *plmn, unsigned char act) { int message_plmn_len; int plmn_len; diff --git a/samsung-ipc/rfs.c b/samsung-ipc/rfs.c index 04426ec..8233eb6 100644 --- a/samsung-ipc/rfs.c +++ b/samsung-ipc/rfs.c @@ -837,7 +837,8 @@ int nv_data_write(struct ipc_client *client, int offset, int length, char *buf) return 0; } -void ipc_rfs_send_io_confirm_for_nv_read_item(struct ipc_client *client, struct ipc_message_info *info) +void ipc_rfs_send_io_confirm_for_nv_read_item(struct ipc_client *client, + struct ipc_message_info *info) { struct ipc_rfs_io *rfs_io = (struct ipc_rfs_io *) info->data; struct ipc_rfs_io_confirm *rfs_io_conf; @@ -872,7 +873,8 @@ void ipc_rfs_send_io_confirm_for_nv_read_item(struct ipc_client *client, struct free(rfs_io_conf); } -void ipc_rfs_send_io_confirm_for_nv_write_item(struct ipc_client *client, struct ipc_message_info *info) +void ipc_rfs_send_io_confirm_for_nv_write_item(struct ipc_client *client, + struct ipc_message_info *info) { struct ipc_rfs_io *rfs_io = (struct ipc_rfs_io *) info->data; struct ipc_rfs_io_confirm *rfs_io_conf; diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c index 933398b..fbf3f7a 100644 --- a/samsung-ipc/sec.c +++ b/samsung-ipc/sec.c @@ -25,7 +25,7 @@ #include <samsung-ipc.h> void ipc_sec_pin_status_set_setup(struct ipc_sec_pin_status_set *message, - unsigned char pin_type, char *pin1, char *pin2) + unsigned char pin_type, char *pin1, char *pin2) { if (message == NULL) return; @@ -48,7 +48,7 @@ void ipc_sec_pin_status_set_setup(struct ipc_sec_pin_status_set *message, } void ipc_sec_lock_info_get_setup(struct ipc_sec_lock_info_get *message, - unsigned char pin_type) + unsigned char pin_type) { if (message == NULL) return; @@ -88,7 +88,7 @@ char *ipc_sec_rsim_access_response_get_file_data(struct ipc_message_info *respon } void ipc_sec_phone_lock_set_setup(struct ipc_sec_phone_lock_set *message, - int pin_type, int enable, char *passwd) + int pin_type, int enable, char *passwd) { message->type = pin_type; message->lock = enable ? 1 : 0; @@ -101,7 +101,7 @@ void ipc_sec_phone_lock_set_setup(struct ipc_sec_phone_lock_set *message, } void ipc_sec_change_locking_pw_set_setup(struct ipc_sec_change_locking_pw_set *message, - int type, char *passwd_old, char *passwd_new) + int type, char *passwd_old, char *passwd_new) { message->facility = type; diff --git a/samsung-ipc/sms.c b/samsung-ipc/sms.c index 8b91987..ba39c57 100644 --- a/samsung-ipc/sms.c +++ b/samsung-ipc/sms.c @@ -24,7 +24,7 @@ #include <samsung-ipc.h> unsigned char *ipc_sms_send_msg_pack(struct ipc_sms_send_msg_request *msg, char *smsc, - unsigned char *pdu, int pdu_length) + unsigned char *pdu, int pdu_length) { unsigned char *data = NULL, *p = NULL; unsigned int data_length = 0, smsc_len = 0; |