[xml] export xmlTextReaderSetup() function
- From: Aleksey Sanin <aleksey aleksey com>
- To: xml gnome org
- Subject: [xml] export xmlTextReaderSetup() function
- Date: Tue, 02 Jan 2007 19:07:53 -0800
I have a tiny patch that exports xmlTextReaderSetup()
function. I need it for chaining xmlParserInputBuffers
(in-place compression + encryption + ...). W/o this
function, xmlNewTextReader() function is pretty much
useless ;)
Is it OK to check it in CVS?
Thanks,
Aleksey
diff -ur include/libxml/xmlreader.h include/libxml/xmlreader.h
--- include/libxml/xmlreader.h 2006-01-04 02:36:37.000000000 -0800
+++ include/libxml/xmlreader.h 2007-01-02 18:36:22.115928000 -0800
@@ -113,9 +113,15 @@
const char *URI);
XMLPUBFUN xmlTextReaderPtr XMLCALL
xmlNewTextReaderFilename(const char *URI);
+
XMLPUBFUN void XMLCALL
xmlFreeTextReader (xmlTextReaderPtr reader);
+XMLPUBFUN int XMLCALL
+ xmlTextReaderSetup(xmlTextReaderPtr reader,
+ xmlParserInputBufferPtr input, const char *URL,
+ const char *encoding, int options);
+
/*
* Iterators
*/
diff -ur win32/libxml2.def.src win32/libxml2.def.src
--- win32/libxml2.def.src 2006-02-23 14:04:52.000000000 -0800
+++ win32/libxml2.def.src 2007-01-02 18:33:33.463417600 -0800
@@ -1949,6 +1949,7 @@
xmlTextReaderSetParserProp
xmlTextReaderSetSchema
xmlTextReaderSetStructuredErrorHandler
+xmlTextReaderSetup
xmlTextReaderStandalone
xmlTextReaderValue
xmlTextReaderXmlLang
diff -ur xmlreader.c xmlreader.c
--- xmlreader.c 2007-01-02 14:41:43.190924800 -0800
+++ xmlreader.c 2007-01-02 18:31:01.995617600 -0800
@@ -4855,7 +4855,7 @@
*
* Returns 0 in case of success and -1 in case of error.
*/
-static int
+int
xmlTextReaderSetup(xmlTextReaderPtr reader,
xmlParserInputBufferPtr input, const char *URL,
const char *encoding, int options)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]