From 5eb5ec3682ba75cec9616039c60987eeee26e5ee Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Sun, 10 Aug 2008 16:37:52 +0000 Subject: Add support in the treebuilder. svn path=/trunk/hubbub/; revision=4991 --- include/hubbub/errors.h | 1 + include/hubbub/functypes.h | 5 +++++ include/hubbub/tree.h | 1 + 3 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/hubbub/errors.h b/include/hubbub/errors.h index fe369dc..9199d09 100644 --- a/include/hubbub/errors.h +++ b/include/hubbub/errors.h @@ -14,6 +14,7 @@ typedef enum hubbub_error { HUBBUB_OK = 0, HUBBUB_OOD = 1, /**< Out of data */ HUBBUB_REPROCESS = 2, + HUBBUB_ENCODINGCHANGE = 3, HUBBUB_NOMEM = 5, HUBBUB_BADPARM = 6, diff --git a/include/hubbub/functypes.h b/include/hubbub/functypes.h index d41f6bd..8d26926 100644 --- a/include/hubbub/functypes.h +++ b/include/hubbub/functypes.h @@ -121,5 +121,10 @@ typedef int (*hubbub_tree_add_attributes)(void *ctx, void *node, */ typedef int (*hubbub_tree_set_quirks_mode)(void *ctx, hubbub_quirks_mode mode); +/** + * Type of encoding change notification function + */ +typedef int (*hubbub_tree_encoding_change)(void *ctx, uint16_t mibenum); + #endif diff --git a/include/hubbub/tree.h b/include/hubbub/tree.h index 7e2e11f..0a286a0 100644 --- a/include/hubbub/tree.h +++ b/include/hubbub/tree.h @@ -30,6 +30,7 @@ typedef struct hubbub_tree_handler { hubbub_tree_form_associate form_associate; hubbub_tree_add_attributes add_attributes; hubbub_tree_set_quirks_mode set_quirks_mode; + hubbub_tree_encoding_change encoding_change; void *ctx; } hubbub_tree_handler; -- cgit v1.2.3