X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fscreen_find.h;h=ff72012afd9720d69a638634a609964c49c9dc3d;hb=270f65da11a9c0e46af421afed54389dbc8453e5;hp=7753e228b87ffbe6dfbc85bec1dd9f831584f666;hpb=807add769f3b1696f8fea357af04e5d07a5cb7bb;p=ncmpc.git diff --git a/src/screen_find.h b/src/screen_find.h index 7753e22..ff72012 100644 --- a/src/screen_find.h +++ b/src/screen_find.h @@ -1,5 +1,5 @@ /* ncmpc (Ncurses MPD Client) - * (c) 2004-2009 The Music Player Daemon Project + * (c) 2004-2010 The Music Player Daemon Project * Project homepage: http://musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -23,16 +23,25 @@ #include "command.h" #include "list_window.h" -/* query user for a string and find it in a list window */ -int screen_find(struct list_window *lw, - command_t findcmd, - list_window_callback_fn_t callback_fn, - void *callback_data); +/** + * query user for a string and find it in a list window + * + * @param lw the list window to search + * @param findcmd the search command/mode + * @param callback_fn a function returning the text of a given line + * @param callback_data a pointer passed to callback_fn + * @return true if the command has been handled, false if not + */ +bool screen_find(struct list_window *lw, + command_t findcmd, + list_window_callback_fn_t callback_fn, + void *callback_data); /* query user for a string and jump to the entry * which begins with this string while the users types */ void screen_jump(struct list_window *lw, list_window_callback_fn_t callback_fn, + list_window_paint_callback_t paint_callback, void *callback_data); #endif