2022-08-26 01:22:33 +02:00
|
|
|
#ifndef XML_IO_H_PRIVATE__
|
|
|
|
#define XML_IO_H_PRIVATE__
|
|
|
|
|
|
|
|
#include <libxml/encoding.h>
|
|
|
|
#include <libxml/tree.h>
|
|
|
|
#include <libxml/xmlversion.h>
|
|
|
|
|
2024-07-07 18:52:17 +02:00
|
|
|
/*
|
|
|
|
* Initial buffer size should include
|
|
|
|
*
|
|
|
|
* - MINLEN = 4000 (I/O chunk size)
|
|
|
|
* - INPUT_CHUNK = 250 (parser prefetch)
|
|
|
|
* - LINE_LEN = 80 (shrink limit for error messages)
|
|
|
|
* - some amount for unshrunken content.
|
|
|
|
*/
|
|
|
|
#define XML_IO_BUFFER_SIZE 6000
|
|
|
|
|
2023-12-20 20:11:09 +01:00
|
|
|
XML_HIDDEN void
|
|
|
|
xmlInitIOCallbacks(void);
|
|
|
|
|
2023-12-23 00:35:30 +01:00
|
|
|
XML_HIDDEN int
|
|
|
|
xmlNoNetExists(const char *filename);
|
|
|
|
|
2025-03-14 00:01:11 +01:00
|
|
|
XML_HIDDEN xmlParserErrors
|
2024-06-10 23:57:52 +02:00
|
|
|
xmlParserInputBufferCreateUrl(const char *URI, xmlCharEncoding enc,
|
2025-03-13 23:20:16 +01:00
|
|
|
xmlParserInputFlags flags,
|
|
|
|
xmlParserInputBufferPtr *out);
|
2023-12-27 18:33:30 +01:00
|
|
|
|
|
|
|
XML_HIDDEN xmlParserInputBufferPtr
|
2025-03-13 23:20:16 +01:00
|
|
|
xmlNewInputBufferString(const char *str, xmlParserInputFlags flags);
|
2023-12-19 15:41:37 +01:00
|
|
|
XML_HIDDEN xmlParserInputBufferPtr
|
2025-03-13 23:20:16 +01:00
|
|
|
xmlNewInputBufferMemory(const void *mem, size_t size,
|
|
|
|
xmlParserInputFlags flags, xmlCharEncoding enc);
|
2023-08-08 15:21:28 +02:00
|
|
|
|
2025-03-14 00:01:11 +01:00
|
|
|
XML_HIDDEN xmlParserErrors
|
2025-03-13 23:20:16 +01:00
|
|
|
xmlInputFromFd(xmlParserInputBufferPtr buf, int fd, xmlParserInputFlags flags);
|
2025-01-28 20:13:58 +01:00
|
|
|
|
2022-08-26 01:22:33 +02:00
|
|
|
#ifdef LIBXML_OUTPUT_ENABLED
|
2024-02-16 15:42:38 +01:00
|
|
|
XML_HIDDEN void
|
|
|
|
xmlOutputBufferWriteQuotedString(xmlOutputBufferPtr buf,
|
|
|
|
const xmlChar *string);
|
2022-08-26 01:22:33 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* XML_IO_H_PRIVATE__ */
|