From ebe1b0511444e82830e8de239c34c6817817fba8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 24 Jun 2020 23:49:59 +0100 Subject: improve desktop text search header usage remove unecessary inclusion of desktop search header in content header which has knock on effect of not having ctype or string system headers dragged in unecessarily. Futher this highlighted use of ctype API where internal ascii processing ought to be used. --- content/textsearch.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'content/textsearch.h') diff --git a/content/textsearch.h b/content/textsearch.h index e30ebc452..c32b17cca 100644 --- a/content/textsearch.h +++ b/content/textsearch.h @@ -28,8 +28,27 @@ struct textsearch_context; struct content; +struct hlcache_handle; struct box; +/** + * Free text search a content + * + * \param[in] h Handle to content to search. + * \param[in] context The context passed to gui table search handlers + * \param[in] flags The flags that control the search + * \param[in] The string being searched for. + * \retun NSERROR_OK on success else error code on faliure + */ +nserror content_textsearch(struct hlcache_handle *h, void *context, search_flags_t flags, const char *string); + +/** + * Clear a search + * + * \param[in] h Handle to content to clear search from. + */ +nserror content_textsearch_clear(struct hlcache_handle *h); + /** * Ends the search process, invalidating all state freeing the list of * found boxes. -- cgit v1.2.3