summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-05-12 21:09:41 +0100
committerVincent Sanders <vince@kyllikki.org>2020-05-12 21:09:41 +0100
commit3c7538a9f906e38e78be0300049f9e49839d7fd7 (patch)
tree318e996390f05db954969b2eb9cb71760f118e75 /content/content.h
parenta8596a80aeb70acb05aba29f654df24210f50c19 (diff)
downloadnetsurf-3c7538a9f906e38e78be0300049f9e49839d7fd7.tar.gz
netsurf-3c7538a9f906e38e78be0300049f9e49839d7fd7.tar.bz2
hoist common text search out of content handlers
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h11
1 files changed, 7 insertions, 4 deletions
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);
/**