From 74a2749fe8ffb21128097eb526e4732c0b9e6fb8 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Mon, 30 Jul 2012 18:29:47 -0300 Subject: [PATCH] coding style: function open braces on next line. We should have the open brace on the next line, after function declaration. My bad, with Iscaro following the pattern afterwards. --- dialer/callscreen.c | 3 ++- dialer/contacts.c | 3 ++- dialer/history.c | 39 +++++++++++++++++++++++++-------------- dialer/keypad.c | 3 ++- 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/dialer/callscreen.c b/dialer/callscreen.c index 2666342..c589fc6 100644 --- a/dialer/callscreen.c +++ b/dialer/callscreen.c @@ -866,7 +866,8 @@ static void _on_del(void *data, Evas *e __UNUSED__, free(ctx); } -Evas_Object *callscreen_add(Evas_Object *parent) { +Evas_Object *callscreen_add(Evas_Object *parent) +{ Callscreen *ctx; Evas_Object *obj = gui_layout_add(parent, "call"); EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL); diff --git a/dialer/contacts.c b/dialer/contacts.c index e1b31b4..679f906 100644 --- a/dialer/contacts.c +++ b/dialer/contacts.c @@ -3,7 +3,8 @@ #endif #include -Evas_Object *contacts_add(Evas_Object *parent) { +Evas_Object *contacts_add(Evas_Object *parent) +{ Evas_Object *obj = elm_label_add(parent); elm_object_text_set(obj, "TO BE DONE"); return obj; diff --git a/dialer/history.c b/dialer/history.c index c5a24f3..f2127c2 100644 --- a/dialer/history.c +++ b/dialer/history.c @@ -40,7 +40,8 @@ static OFono_Callback_List_Call_Node *callback_node_call_removed = NULL; static OFono_Callback_List_Call_Node *callback_node_call_changed = NULL; static Call_Info *_history_call_info_list_search(Eina_List *list, - const char *line_id) { + const char *line_id) +{ Call_Info *call_info; Eina_List *l; @@ -51,7 +52,8 @@ static Call_Info *_history_call_info_list_search(Eina_List *list, return NULL; } -static void _history_call_changed(void *data, OFono_Call *call) { +static void _history_call_changed(void *data, OFono_Call *call) +{ History *history = data; const char *line_id = ofono_call_line_id_get(call); Call_Info *call_info; @@ -81,14 +83,16 @@ static void _history_call_changed(void *data, OFono_Call *call) { eina_list_prepend(history->calls->list, call_info); } -static void _history_call_log_save(History *history) { +static void _history_call_log_save(History *history) +{ if (!(eet_data_write(history->log, history->edd_list, HISTORY_ENTRY, history->calls, EET_COMPRESSION_DEFAULT))) ERR("Could in the history log file"); } -static void _history_call_removed(void *data, OFono_Call *call) { +static void _history_call_removed(void *data, OFono_Call *call) +{ History *history = data; const char *line_id = ofono_call_line_id_get(call); Call_Info *call_info; @@ -117,14 +121,16 @@ static void _history_call_removed(void *data, OFono_Call *call) { NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); } -static void _call_info_free(Call_Info *call_info) { +static void _call_info_free(Call_Info *call_info) +{ eina_stringshare_del(call_info->line_id); eina_stringshare_del(call_info->name); free(call_info); } static void _on_del(void *data, Evas *e __UNUSED__, - Evas_Object *obj __UNUSED__, void *event __UNUSED__) { + Evas_Object *obj __UNUSED__, void *event __UNUSED__) +{ History *history = data; Call_Info *call_info; ofono_call_removed_cb_del(callback_node_call_removed); @@ -132,9 +138,8 @@ static void _on_del(void *data, Evas *e __UNUSED__, eet_close(history->log); eet_data_descriptor_free(history->edd); eet_data_descriptor_free(history->edd_list); - EINA_LIST_FREE(history->calls->list, call_info) { + EINA_LIST_FREE(history->calls->list, call_info) _call_info_free(call_info); - } free(history->calls); elm_genlist_item_class_free(history->itc); free(history); @@ -142,7 +147,8 @@ static void _on_del(void *data, Evas *e __UNUSED__, } static void _history_call_info_descriptor_init(Eet_Data_Descriptor **edd, - Eet_Data_Descriptor **edd_list) { + Eet_Data_Descriptor **edd_list) +{ Eet_Data_Descriptor_Class eddc; EET_EINA_STREAM_DATA_DESCRIPTOR_CLASS_SET(&eddc, Call_Info); @@ -166,7 +172,8 @@ static void _history_call_info_descriptor_init(Eet_Data_Descriptor **edd, *edd); } -static void _history_call_log_read(History *history) { +static void _history_call_log_read(History *history) +{ Call_Info *call_info; Eina_List *l; @@ -193,7 +200,8 @@ static void _history_call_log_read(History *history) { } static char *_item_label_get(void *data, Evas_Object *obj __UNUSED__, - const char *part __UNUSED__) { + const char *part __UNUSED__) +{ Call_Info *call_info = data; char *buf; const char *name, *call_state; @@ -221,18 +229,21 @@ static char *_item_label_get(void *data, Evas_Object *obj __UNUSED__, } static void _btn_naviframe_next_click(void *data, Evas_Object *obj __UNUSED__, - void *event_inf __UNUSED__) { + void *event_inf __UNUSED__) +{ History *history = data; elm_naviframe_item_promote(history->missed); } static void _btn_naviframe_prev_click(void *data, Evas_Object *obj __UNUSED__, - void *event_inf __UNUSED__) { + void *event_inf __UNUSED__) +{ History *history = data; elm_naviframe_item_promote(history->all); } -Evas_Object *history_add(Evas_Object *parent) { +Evas_Object *history_add(Evas_Object *parent) +{ History *history; const char *config_path; char path[PATH_MAX]; diff --git a/dialer/keypad.c b/dialer/keypad.c index 51e7430..7a6e46b 100644 --- a/dialer/keypad.c +++ b/dialer/keypad.c @@ -413,7 +413,8 @@ static void _on_del(void *data, Evas *e __UNUSED__, free(ctx); } -Evas_Object *keypad_add(Evas_Object *parent) { +Evas_Object *keypad_add(Evas_Object *parent) +{ Keypad *ctx; Evas_Object *obj = gui_layout_add(parent, "keypad"); EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL); -- 2.7.4