diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-05-03 15:29:42 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-05-03 15:29:42 (GMT) |
commit | 937cfaf1a06a4a9d0c8ba119d7ce820878ff9058 (patch) | |
tree | f7b0b1bcce9ae963a0a069eafa552350eb4ee391 /libxml2/os400/iconv/iconv.h | |
parent | 4b8453f0303492a1de2dcf854555f6429fac550e (diff) | |
download | blt-937cfaf1a06a4a9d0c8ba119d7ce820878ff9058.zip blt-937cfaf1a06a4a9d0c8ba119d7ce820878ff9058.tar.gz blt-937cfaf1a06a4a9d0c8ba119d7ce820878ff9058.tar.bz2 |
inital commit
Diffstat (limited to 'libxml2/os400/iconv/iconv.h')
-rw-r--r-- | libxml2/os400/iconv/iconv.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libxml2/os400/iconv/iconv.h b/libxml2/os400/iconv/iconv.h new file mode 100644 index 0000000..87a8bbc --- /dev/null +++ b/libxml2/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 |