From 24cadf35148075ab5300ac406a2c87c8496dc0d5 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 5 Jul 2012 20:02:53 +0100 Subject: Add Script complete callback --- include/hubbub/tree.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/hubbub/tree.h b/include/hubbub/tree.h index 545f5b1..48f6b5a 100644 --- a/include/hubbub/tree.h +++ b/include/hubbub/tree.h @@ -258,6 +258,15 @@ typedef hubbub_error (*hubbub_tree_set_quirks_mode)(void *ctx, typedef hubbub_error (*hubbub_tree_encoding_change)(void *ctx, const char *encname); +/** + * Complete script processing + * + * \param ctx Client's context + * \param script The script + * \return HUBBUB_OK on success, appropriate error otherwise. + */ +typedef hubbub_error (*hubbub_tree_complete_script)(void *ctx, void *script); + /** * Hubbub tree handler */ @@ -279,6 +288,7 @@ typedef struct hubbub_tree_handler { hubbub_tree_add_attributes add_attributes; /**< Add attributes */ hubbub_tree_set_quirks_mode set_quirks_mode; /**< Set quirks mode */ hubbub_tree_encoding_change encoding_change; /**< Change encoding */ + hubbub_tree_complete_script complete_script; /**< Script Complete */ void *ctx; /**< Context pointer */ } hubbub_tree_handler; -- cgit v1.2.3