diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-08-10 16:37:52 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-08-10 16:37:52 +0000 |
commit | 5eb5ec3682ba75cec9616039c60987eeee26e5ee (patch) | |
tree | c3f9483ecb262279b7370b8239cd9e4fea951e6b /include/hubbub | |
parent | 2ae59ba6c47e1b062536e3835e429ad1a17bee6f (diff) | |
download | libhubbub-5eb5ec3682ba75cec9616039c60987eeee26e5ee.tar.gz libhubbub-5eb5ec3682ba75cec9616039c60987eeee26e5ee.tar.bz2 |
Add <meta charset> support in the treebuilder.
svn path=/trunk/hubbub/; revision=4991
Diffstat (limited to 'include/hubbub')
-rw-r--r-- | include/hubbub/errors.h | 1 | ||||
-rw-r--r-- | include/hubbub/functypes.h | 5 | ||||
-rw-r--r-- | include/hubbub/tree.h | 1 |
3 files changed, 7 insertions, 0 deletions
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; |