diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-10-19 15:37:26 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-10-19 15:37:26 +0300 |
commit | 6c6e567eb34ad0f5a3bd90f6585c521543106401 (patch) | |
tree | 7f8dc62f12dd2b720ffdc738d393cd1a8f82921c /os400/iconv/iconv.h | |
parent | 7421ae696c1ef2fb48adc73ba8564ef2f276d618 (diff) | |
parent | 218d404f34d79a8837f9c0230dd9d9f1180b4068 (diff) | |
download | libxml2-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.h | 40 |
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 |