aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_utils.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-11-15 11:23:11 +0000
committerKalle Wallin <kaw@linux.se>2004-11-15 11:23:11 +0000
commite3c905a56bcc1fed3848485201a4a434aa9fc162 (patch)
treeaed87e32dc8c39473fa86b3d11d2048a06ac055f /src/screen_utils.c
parent41d25e22f8b3fabc954d5b58db6d1d36706aa418 (diff)
downloadmpd-e3c905a56bcc1fed3848485201a4a434aa9fc162.tar.gz
mpd-e3c905a56bcc1fed3848485201a4a434aa9fc162.tar.xz
mpd-e3c905a56bcc1fed3848485201a4a434aa9fc162.zip
Added a search screen
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2668 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/screen_utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/screen_utils.c b/src/screen_utils.c
index baa371be1..09ce85787 100644
--- a/src/screen_utils.c
+++ b/src/screen_utils.c
@@ -110,7 +110,8 @@ screen_find(screen_t *screen,
list_window_t *lw,
int rows,
command_t findcmd,
- list_window_callback_fn_t callback_fn)
+ list_window_callback_fn_t callback_fn,
+ void *callback_data)
{
int reversed = 0;
int retval = 0;
@@ -145,14 +146,14 @@ screen_find(screen_t *screen,
if( reversed )
retval = list_window_rfind(lw,
callback_fn,
- c,
+ callback_data,
screen->findbuf,
options.find_wrap,
rows);
else
retval = list_window_find(lw,
callback_fn,
- c,
+ callback_data,
screen->findbuf,
options.find_wrap);
if( retval == 0 )