From a84beea8c7bcf7180e1bd9bfe1481f41e4c4bd00 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 13 May 2021 19:42:35 +0100 Subject: Perf tester: Add change_encoding stub to tree callbacks. --- perf/hubbub.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'perf') 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; +} -- cgit v1.2.3