From 35a201cc8ef0c3f5b2df88d2e528aabee1048348 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 30 Apr 2021 18:47:09 +0200 Subject: Initial/Final commit --- libxml2-2.9.10/os400/iconv/iconv.h | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 libxml2-2.9.10/os400/iconv/iconv.h (limited to 'libxml2-2.9.10/os400/iconv/iconv.h') diff --git a/libxml2-2.9.10/os400/iconv/iconv.h b/libxml2-2.9.10/os400/iconv/iconv.h new file mode 100644 index 0000000..87a8bbc --- /dev/null +++ b/libxml2-2.9.10/os400/iconv/iconv.h @@ -0,0 +1,40 @@ +/** +*** Declarations for the iconv wrappers. +*** +*** See Copyright for the status of this software. +*** +*** Author: Patrick Monnerat , DATASPHERE S.A. +**/ + +#ifndef __ICONV_H_ +#define __ICONV_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include /* 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 -- cgit v1.2.3