summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/hubbub/errors.h1
-rw-r--r--include/hubbub/functypes.h5
-rw-r--r--include/hubbub/tree.h1
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;