1 #ifndef XML_IO_H_PRIVATE__ 2 #define XML_IO_H_PRIVATE__ 3 4 #include <libxml/encoding.h> 5 #include <libxml/tree.h> 6 #include <libxml/xmlversion.h> 7 8 /* 9 * Initial buffer size should include 10 * 11 * - MINLEN = 4000 (I/O chunk size) 12 * - INPUT_CHUNK = 250 (parser prefetch) 13 * - LINE_LEN = 80 (shrink limit for error messages) 14 * - some amount for unshrunken content. 15 */ 16 #define XML_IO_BUFFER_SIZE 6000 17 18 XML_HIDDEN void 19 xmlInitIOCallbacks(void); 20 21 XML_HIDDEN int 22 xmlNoNetExists(const char *filename); 23 24 XML_HIDDEN int 25 xmlParserInputBufferCreateUrl(const char *URI, xmlCharEncoding enc, 26 int flags, xmlParserInputBufferPtr *out); 27 28 XML_HIDDEN xmlParserInputBufferPtr 29 xmlNewInputBufferString(const char *str, int flags); 30 XML_HIDDEN xmlParserInputBufferPtr 31 xmlNewInputBufferMemory(const void *mem, size_t size, int flags, 32 xmlCharEncoding enc); 33 34 #ifdef LIBXML_OUTPUT_ENABLED 35 XML_HIDDEN void 36 xmlOutputBufferWriteQuotedString(xmlOutputBufferPtr buf, 37 const xmlChar *string); 38 #endif 39 40 #endif /* XML_IO_H_PRIVATE__ */ 41