diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:26 +0200 |
commit | 6d3b7cdd62d798521d73ac58d57bd67061d64ba5 (patch) | |
tree | 196aff7bf983541fd2519ca40b92dbeb7acec8b3 /src/list_window.h | |
parent | 1cd28efa96dbc3d49a43d9b12c5b65d493baf949 (diff) | |
download | mpd-6d3b7cdd62d798521d73ac58d57bd67061d64ba5.tar.gz mpd-6d3b7cdd62d798521d73ac58d57bd67061d64ba5.tar.xz mpd-6d3b7cdd62d798521d73ac58d57bd67061d64ba5.zip |
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.
Diffstat (limited to 'src/list_window.h')
-rw-r--r-- | src/list_window.h | 39 |
1 files changed, 18 insertions, 21 deletions
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, |