From 3c7538a9f906e38e78be0300049f9e49839d7fd7 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 12 May 2020 21:09:41 +0100 Subject: hoist common text search out of content handlers --- content/content.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index 2b16c5225..f68af538b 100644 --- a/content/content.h +++ b/content/content.h @@ -378,19 +378,22 @@ bool content_drop_file_at_point(struct hlcache_handle *h, int x, int y, char *file); /** - * Search a content + * 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 */ -void content_search(struct hlcache_handle *h, void *context, - search_flags_t flags, const char *string); +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. */ -void content_search_clear(struct hlcache_handle *h); +nserror content_textsearch_clear(struct hlcache_handle *h); /** -- cgit v1.2.3