summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1aa3da5)
raw | patch | inline | side by side (parent: 1aa3da5)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sun, 25 Sep 2011 22:02:40 +0000 (00:02 +0200) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sun, 2 Oct 2011 18:54:04 +0000 (20:54 +0200) |
src/screen_find.c | patch | blob | history | |
src/screen_find.h | patch | blob | history |
diff --git a/src/screen_find.c b/src/screen_find.c
index 890f58cf14579dcf0436ec8012fa7f41437488e0..4113c39a522a1aef207c03540a60dac708ec25a1 100644 (file)
--- a/src/screen_find.c
+++ b/src/screen_find.c
#define JUMP_PROMPT _("Jump")
/* query user for a string and find it in a list window */
-int
+bool
screen_find(struct list_window *lw, command_t findcmd,
list_window_callback_fn_t callback_fn,
void *callback_data)
diff --git a/src/screen_find.h b/src/screen_find.h
index 1d46a9f8d4cfc01979100f66291fedb511e2e703..ff72012afd9720d69a638634a609964c49c9dc3d 100644 (file)
--- a/src/screen_find.h
+++ b/src/screen_find.h
#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 */