expose xmlTextReaderSetup function
svn path=/trunk/; revision=3571
diff --git a/ChangeLog b/ChangeLog
index e09172c..75d7c84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jan 3 16:05:21 PST 2007 Aleksey Sanin <aleksey@aleksey.com>
+ * xmlreader.c include/libxml/xmlreader.h win32/libxml2.def.src:
+ expose xmlTextReaderSetup() function
+
Wed Jan 3 16:14:13 CET 2007 Daniel Veillard <daniel@veillard.com>
* configure.in: adapt the extra versioning code to SVN
diff --git a/include/libxml/xmlreader.h b/include/libxml/xmlreader.h
index 1d12988..dfe51a3 100644
--- a/include/libxml/xmlreader.h
+++ b/include/libxml/xmlreader.h
@@ -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 --git a/win32/libxml2.def.src b/win32/libxml2.def.src
index 367f248..24adaf7 100644
--- a/win32/libxml2.def.src
+++ b/win32/libxml2.def.src
@@ -1949,6 +1949,7 @@
xmlTextReaderSetParserProp
xmlTextReaderSetSchema
xmlTextReaderSetStructuredErrorHandler
+xmlTextReaderSetup
xmlTextReaderStandalone
xmlTextReaderValue
xmlTextReaderXmlLang
diff --git a/xmlreader.c b/xmlreader.c
index c8bcf7b..cd32cc3 100644
--- a/xmlreader.c
+++ b/xmlreader.c
@@ -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)