diff options
Diffstat (limited to 'src/list_window.h')
-rw-r--r-- | src/list_window.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/list_window.h b/src/list_window.h index 9ef67214b..114f71eff 100644 --- a/src/list_window.h +++ b/src/list_window.h @@ -7,9 +7,9 @@ #define LW_HIDE_CURSOR 0x01 -typedef char *(*list_window_callback_fn_t)(int index, - int *highlight, - void *data); +typedef const char *(*list_window_callback_fn_t)(int index, + int *highlight, + void *data); typedef struct { WINDOW *w; @@ -60,7 +60,7 @@ void list_window_check_selected(list_window_t *lw, int length); int list_window_find(list_window_t *lw, list_window_callback_fn_t callback, void *callback_data, - char *str, + const char *str, int wrap); /* find a string in a list window (reversed) */ @@ -68,7 +68,7 @@ int list_window_rfind(list_window_t *lw, list_window_callback_fn_t callback, void *callback_data, - char *str, + const char *str, int wrap, int rows); |