1 /** 2 *** Declarations for the iconv wrappers. 3 *** 4 *** See Copyright for the status of this software. 5 *** 6 *** Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A. 7 **/ 8 9 #ifndef __ICONV_H_ 10 #define __ICONV_H_ 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #include <stddef.h> /* For size_t. */ 17 18 19 typedef void * Iconv_t; 20 21 22 Iconv_t IconvOpen(const char * tocode, const char * fromcode); 23 size_t Iconv(Iconv_t cd, char * * inbuf, size_t * inbytesleft, 24 char * * outbuf, size_t * outbytesleft); 25 int IconvClose(Iconv_t cd); 26 27 28 #ifndef USE_SYSTEM_ICONV 29 #define iconv_t Iconv_t 30 #define iconv_open IconvOpen 31 #define iconv Iconv 32 #define iconv_close IconvClose 33 #endif 34 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif 41