summaryrefslogtreecommitdiff
path: root/render/parser_binding.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-20 11:39:25 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-20 11:39:25 +0000
commitcc1094f0ac62db0d736b6e41e219fe628d22a69e (patch)
treeaaa69ff9929767133acc02c299c1a25c9540cddb /render/parser_binding.h
parent0619131f20ad86fe640ea9a1a45d3ae7bf73c1d8 (diff)
downloadnetsurf-cc1094f0ac62db0d736b6e41e219fe628d22a69e.tar.gz
netsurf-cc1094f0ac62db0d736b6e41e219fe628d22a69e.tar.bz2
Utilise hubbub's form association callback.
Please can we dispense with the libxml binding? It's causing much #ifdef mess. Fix encoding of <input type=image> names -- previously were output as raw utf-8, rather than in the submission charset. Actually bother to destroy forms in a document, and the controls associated with them. We still leak non form-associated controls, but that's too much effort to fix right now. svn path=/trunk/netsurf/; revision=6573
Diffstat (limited to 'render/parser_binding.h')
-rw-r--r--render/parser_binding.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/render/parser_binding.h b/render/parser_binding.h
index 10c0ad334..d23b79359 100644
--- a/render/parser_binding.h
+++ b/render/parser_binding.h
@@ -23,6 +23,9 @@
#include <libxml/tree.h>
+struct form;
+struct form_control;
+
typedef enum binding_error {
BINDING_OK,
BINDING_NOMEM,
@@ -45,5 +48,10 @@ binding_error binding_parse_completed(void *ctx);
const char *binding_get_encoding(void *ctx, binding_encoding_source *source);
xmlDocPtr binding_get_document(void *ctx);
+#ifdef WITH_HUBBUB
+struct form *binding_get_forms(void *ctx);
+struct form_control *binding_get_control_for_node(void *ctx, xmlNodePtr node);
+#endif
+
#endif