From 6d3b7cdd62d798521d73ac58d57bd67061d64ba5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 12:27:26 +0200 Subject: code style, indent with tabs Follow the same code style als MPD itself. This patch only fixes parts of the code which are going to be touched in the following bunch of patches, i.e. there will be more "code style" patches in the future. --- src/list_window.h | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) (limited to 'src/list_window.h') diff --git a/src/list_window.h b/src/list_window.h index fe465bede..9ef67214b 100644 --- a/src/list_window.h +++ b/src/list_window.h @@ -7,27 +7,24 @@ #define LW_HIDE_CURSOR 0x01 -typedef char * (*list_window_callback_fn_t) (int index, - int *highlight, - void *data); - -typedef struct -{ - WINDOW *w; - int rows, cols; - - int start; - int selected; - int xoffset; - int clear; - int repaint; - int flags; - +typedef char *(*list_window_callback_fn_t)(int index, + int *highlight, + void *data); + +typedef struct { + WINDOW *w; + int rows, cols; + + int start; + int selected; + int xoffset; + int clear; + int repaint; + int flags; } list_window_t; -typedef struct -{ - GList *list; +typedef struct { + GList *list; } list_window_state_t; @@ -60,7 +57,7 @@ void list_window_next_page(list_window_t *lw, int length); void list_window_check_selected(list_window_t *lw, int length); /* find a string in a list window */ -int list_window_find(list_window_t *lw, +int list_window_find(list_window_t *lw, list_window_callback_fn_t callback, void *callback_data, char *str, @@ -68,7 +65,7 @@ int list_window_find(list_window_t *lw, /* find a string in a list window (reversed) */ int -list_window_rfind(list_window_t *lw, +list_window_rfind(list_window_t *lw, list_window_callback_fn_t callback, void *callback_data, char *str, -- cgit v1.2.3