summaryrefslogtreecommitdiff
path: root/render/parser_binding.h
diff options
context:
space:
mode:
Diffstat (limited to 'render/parser_binding.h')
-rw-r--r--render/parser_binding.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/render/parser_binding.h b/render/parser_binding.h
index 1641058bd..afab250eb 100644
--- a/render/parser_binding.h
+++ b/render/parser_binding.h
@@ -23,9 +23,17 @@
#include <libxml/tree.h>
+struct box;
struct form;
struct form_control;
+/**
+ * Private data attached to each DOM node
+ */
+typedef struct binding_private {
+ struct box *box; /**< Root box if ELEMENT node, or NULL */
+} binding_private;
+
typedef enum binding_error {
BINDING_OK,
BINDING_NOMEM,
@@ -57,5 +65,7 @@ xmlDocPtr binding_get_document(void *ctx, binding_quirks_mode *quirks);
struct form *binding_get_forms(void *ctx);
struct form_control *binding_get_control_for_node(void *ctx, xmlNodePtr node);
+void binding_destroy_document(xmlDocPtr doc);
+
#endif