summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-07-05 20:02:53 +0100
committerVincent Sanders <vince@netsurf-browser.org>2012-07-05 20:02:53 +0100
commit24cadf35148075ab5300ac406a2c87c8496dc0d5 (patch)
treecdbb2a2ea23d5e458b9a714d9f2c096a8a5d6dd3 /include
parentc65586bb921f0b7dbad818a057507609d59d4821 (diff)
downloadlibhubbub-24cadf35148075ab5300ac406a2c87c8496dc0d5.tar.gz
libhubbub-24cadf35148075ab5300ac406a2c87c8496dc0d5.tar.bz2
Add Script complete callback
Diffstat (limited to 'include')
-rw-r--r--include/hubbub/tree.h10
1 files changed, 10 insertions, 0 deletions
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
@@ -259,6 +259,15 @@ 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
*/
typedef struct 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;