diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-12 21:21:59 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-12 21:29:32 +0100 |
commit | 68b9417a6bc8344f68f8a8206d2f2781079bd713 (patch) | |
tree | 3d17a1a61f50f87f84bb6d2c3938bb6474477679 /content/textsearch.h | |
parent | 3c7538a9f906e38e78be0300049f9e49839d7fd7 (diff) | |
download | netsurf-68b9417a6bc8344f68f8a8206d2f2781079bd713.tar.gz netsurf-68b9417a6bc8344f68f8a8206d2f2781079bd713.tar.bz2 |
consolodate the textsearch code into a single module
Diffstat (limited to 'content/textsearch.h')
-rw-r--r-- | content/textsearch.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/content/textsearch.h b/content/textsearch.h index f94bcdb42..c0a1acf9a 100644 --- a/content/textsearch.h +++ b/content/textsearch.h @@ -24,34 +24,11 @@ #ifndef NETSURF_CONTENT_SEARCH_H #define NETSURF_CONTENT_SEARCH_H -#include <ctype.h> -#include <string.h> - #include "desktop/search.h" struct textsearch_context; struct content; -/** - * create a search_context - * - * \param c The content the search_context is connected to - * \param context A context pointer passed to the provider routines. - * \param search_out A pointer to recive the new text search context - * \return NSERROR_OK on success and \a search_out updated else error code - */ -nserror content_textsearch_create(struct content *c, void *context, struct textsearch_context **textsearch_out); - -/** - * Begins/continues the search process - * - * \note that this may be called many times for a single search. - * - * \param context The search context in use. - * \param flags The flags forward/back etc - * \param string The string to match - */ -nserror content_textsearch_step(struct textsearch_context *textsearch, search_flags_t flags, const char *string); /** * Ends the search process, invalidating all state freeing the list of |