diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-12 21:09:41 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-12 21:09:41 +0100 |
commit | 3c7538a9f906e38e78be0300049f9e49839d7fd7 (patch) | |
tree | 318e996390f05db954969b2eb9cb71760f118e75 /content/content_protected.h | |
parent | a8596a80aeb70acb05aba29f654df24210f50c19 (diff) | |
download | netsurf-3c7538a9f906e38e78be0300049f9e49839d7fd7.tar.gz netsurf-3c7538a9f906e38e78be0300049f9e49839d7fd7.tar.bz2 |
hoist common text search out of content handlers
Diffstat (limited to 'content/content_protected.h')
-rw-r--r-- | content/content_protected.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/content/content_protected.h b/content/content_protected.h index 314a0a9a3..26f43807c 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -87,9 +87,6 @@ struct content_handler { int scrx, int scry); bool (*drop_file_at_point)(struct content *c, int x, int y, char *file); - void (*search)(struct content *c, void *context, search_flags_t flags, - const char *string); - void (*search_clear)(struct content *c); nserror (*debug_dump)(struct content *c, FILE *f, enum content_debug op); nserror (*debug)(struct content *c, enum content_debug op); nserror (*clone)(const struct content *old, struct content **newc); @@ -237,6 +234,14 @@ struct content { * HTTP status code, 0 if not HTTP. */ long http_code; + + /** + * Free text search state + */ + struct { + char *string; + struct textsearch_context *context; + } textsearch; }; extern const char * const content_type_name[]; |