summaryrefslogtreecommitdiff
path: root/os400/iconv/iconv.h
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-19 15:37:26 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-19 15:37:26 +0300
commit6c6e567eb34ad0f5a3bd90f6585c521543106401 (patch)
tree7f8dc62f12dd2b720ffdc738d393cd1a8f82921c /os400/iconv/iconv.h
parent7421ae696c1ef2fb48adc73ba8564ef2f276d618 (diff)
parent218d404f34d79a8837f9c0230dd9d9f1180b4068 (diff)
downloadlibxml2-pristine-tar.tar.gz
Merge branch 'pristine-tar' of git://anonscm.debian.org/debian-xml-sgml/libxml2 into pristine-tarpristine-tar
Diffstat (limited to 'os400/iconv/iconv.h')
-rw-r--r--os400/iconv/iconv.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/os400/iconv/iconv.h b/os400/iconv/iconv.h
new file mode 100644
index 0000000..87a8bbc
--- /dev/null
+++ b/os400/iconv/iconv.h
@@ -0,0 +1,40 @@
+/**
+*** Declarations for the iconv wrappers.
+***
+*** See Copyright for the status of this software.
+***
+*** Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
+**/
+
+#ifndef __ICONV_H_
+#define __ICONV_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stddef.h> /* For size_t. */
+
+
+typedef void * Iconv_t;
+
+
+Iconv_t IconvOpen(const char * tocode, const char * fromcode);
+size_t Iconv(Iconv_t cd, char * * inbuf, size_t * inbytesleft,
+ char * * outbuf, size_t * outbytesleft);
+int IconvClose(Iconv_t cd);
+
+
+#ifndef USE_SYSTEM_ICONV
+#define iconv_t Iconv_t
+#define iconv_open IconvOpen
+#define iconv Iconv
+#define iconv_close IconvClose
+#endif
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif