diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-13 19:42:35 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2021-05-13 20:03:31 +0100 |
commit | a84beea8c7bcf7180e1bd9bfe1481f41e4c4bd00 (patch) | |
tree | d41fbeee1c32171441958f6561774f3e31fbb7ac | |
parent | 882a2a3556a67f46cfb3bff77aff8c7ecad16c89 (diff) | |
download | libhubbub-a84beea8c7bcf7180e1bd9bfe1481f41e4c4bd00.tar.gz libhubbub-a84beea8c7bcf7180e1bd9bfe1481f41e4c4bd00.tar.bz2 |
Perf tester: Add change_encoding stub to tree callbacks.
-rw-r--r-- | perf/hubbub.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/perf/hubbub.c b/perf/hubbub.c index 32ca061..d0ca8ec 100644 --- a/perf/hubbub.c +++ b/perf/hubbub.c @@ -89,6 +89,7 @@ static hubbub_error form_associate(void *ctx, void *form, void *node); static hubbub_error add_attributes(void *ctx, void *node, const hubbub_attribute *attributes, uint32_t n_attributes); static hubbub_error set_quirks_mode(void *ctx, hubbub_quirks_mode mode); +static hubbub_error change_encoding(void *ctx, const char *charset); static hubbub_tree_handler tree_handler = { create_comment, @@ -107,6 +108,7 @@ static hubbub_tree_handler tree_handler = { form_associate, add_attributes, set_quirks_mode, + change_encoding, NULL, NULL }; @@ -531,3 +533,11 @@ hubbub_error set_quirks_mode(void *ctx, hubbub_quirks_mode mode) return HUBBUB_OK; } + +hubbub_error change_encoding(void *ctx, const char *charset) +{ + UNUSED(ctx); + UNUSED(charset); + + return HUBBUB_OK; +} |