r8223 struggleyb - in /branches/struggleyb/libdom-remain/bindings/xml: xmlparser.c xmlparser.h

netsurf at semichrome.net netsurf at semichrome.net
Wed Jul 1 04:52:37 BST 2009


Author: struggleyb
Date: Tue Jun 30 22:52:37 2009
New Revision: 8223

URL: http://source.netsurf-browser.org?rev=8223&view=rev
Log:
Add a new param for xml parser to pass in the lwc_context.

Modified:
    branches/struggleyb/libdom-remain/bindings/xml/xmlparser.c
    branches/struggleyb/libdom-remain/bindings/xml/xmlparser.h

Modified: branches/struggleyb/libdom-remain/bindings/xml/xmlparser.c
URL: http://source.netsurf-browser.org/branches/struggleyb/libdom-remain/bindings/xml/xmlparser.c?rev=8223&r1=8222&r2=8223&view=diff
==============================================================================
--- branches/struggleyb/libdom-remain/bindings/xml/xmlparser.c (original)
+++ branches/struggleyb/libdom-remain/bindings/xml/xmlparser.c Tue Jun 30 22:52:37 2009
@@ -14,6 +14,8 @@
 
 #include <dom/bootstrap/implpriv.h>
 #include <dom/dom.h>
+
+#include <libwapcaplet/libwapcaplet.h>
 
 #include "xmlerror.h"
 #include "xmlparser.h"
@@ -155,7 +157,8 @@
  * parser encoding is not yet implemented
  */
 dom_xml_parser *dom_xml_parser_create(const char *enc, const char *int_enc,
-		dom_alloc alloc, void *pw, dom_msg msg, void *mctx)
+		dom_alloc alloc, void *pw, dom_msg msg, void *mctx,
+		lwc_context *ctx)
 {
 	dom_xml_parser *parser;
 	struct dom_string *features;
@@ -225,6 +228,8 @@
 
 	parser->msg = msg;
 	parser->mctx = mctx;
+
+	parser->ctx = ctx;
 
 	return parser;
 }

Modified: branches/struggleyb/libdom-remain/bindings/xml/xmlparser.h
URL: http://source.netsurf-browser.org/branches/struggleyb/libdom-remain/bindings/xml/xmlparser.h?rev=8223&r1=8222&r2=8223&view=diff
==============================================================================
--- branches/struggleyb/libdom-remain/bindings/xml/xmlparser.h (original)
+++ branches/struggleyb/libdom-remain/bindings/xml/xmlparser.h Tue Jun 30 22:52:37 2009
@@ -22,7 +22,8 @@
 
 /* Create an XML parser instance */
 dom_xml_parser *dom_xml_parser_create(const char *enc, const char *int_enc,
-		dom_alloc alloc, void *pw, dom_msg msg, void *mctx);
+		dom_alloc alloc, void *pw, dom_msg msg, void *mctx, 
+		struct lwc_context_s *ctx);
 
 /* Destroy an XML parser instance */
 void dom_xml_parser_destroy(dom_xml_parser *parser);




More information about the netsurf-commits mailing list