summaryrefslogtreecommitdiff
path: root/enc.h
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2012-07-13 19:51:15 +0800
committerDaniel Veillard <veillard@redhat.com>2012-07-23 14:24:26 +0800
commit18d0db25037978a6a274f55a2c058ad82331965a (patch)
treec5ea37f8c3dac5677bde55cc174223d741c6b618 /enc.h
parentade10f2c57b4bd5c3812b96bce1144d8fa1d189e (diff)
downloadlibxml2-18d0db25037978a6a274f55a2c058ad82331965a.tar.gz
Adding new encoding function to deal with the new structures
* encoding.c: adds xmlCharEncFirstLineInput, xmlCharEncInput and xmlCharEncOutput * enc.h: the functions are not made public but added to this new header
Diffstat (limited to 'enc.h')
-rw-r--r--enc.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/enc.h b/enc.h
new file mode 100644
index 00000000..8b4fcd06
--- /dev/null
+++ b/enc.h
@@ -0,0 +1,29 @@
+/*
+ * enc.h: Internal Interfaces for encoding in libxml2
+ *
+ * See Copyright for the status of this software.
+ *
+ * daniel@veillard.com
+ */
+
+#ifndef __XML_ENC_H__
+#define __XML_ENC_H__
+
+#include <libxml/tree.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int xmlCharEncFirstLineInt(xmlCharEncodingHandler *handler, xmlBufferPtr out,
+ xmlBufferPtr in, int len);
+int xmlCharEncFirstLineInput(xmlParserInputBufferPtr input, int len);
+int xmlCharEncInput(xmlParserInputBufferPtr input);
+int xmlCharEncOutput(xmlOutputBufferPtr output, int init);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __XML_ENC_H__ */
+
+