From cc1094f0ac62db0d736b6e41e219fe628d22a69e Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 20 Feb 2009 11:39:25 +0000 Subject: Utilise hubbub's form association callback. Please can we dispense with the libxml binding? It's causing much #ifdef mess. Fix encoding of 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 --- render/parser_binding.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'render/parser_binding.h') 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 +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 -- cgit v1.2.3