Restructure how we look for Read files slightly.
[fvwm.git] / libs / Ficonv.h
blobee6394bd578ace1b2a92f9f7674319717f95d638
1 /* -*-c-*- */
2 /* Copyright (C) 2002 Olivier Chapuis */
4 #ifndef FICONV_H
5 #define FICONV_H
7 /* ---------------------------- included header files ---------------------- */
9 #include "config.h"
11 /* ---------------------------- global definitions ------------------------- */
13 #ifdef HAVE_ICONV
14 #define FiconvSupport 1
15 #else
16 #define FiconvSupport 0
17 #endif
19 #if FiconvSupport
21 #define Ficonv_open(a,b) iconv_open(a,b)
22 #define Ficonv_close(a) iconv_close(a)
23 #define Ficonv(a,b,c,d,e) iconv(a,b,c,d,e)
25 #else
27 #define Ficonv_open(a,b) (Ficonv_t)-1
28 #define Ficonv_close(a) -1
29 #define Ficonv(a,b,c,d,e) -1
31 #endif
33 /* ---------------------------- global macros ------------------------------ */
35 #define FICONV_CONVERSION_MAX_NUMBER_OF_WARNING 10
37 /* ---------------------------- type definitions --------------------------- */
39 typedef void* Ficonv_t;
41 /* ---------------------------- interface functions ------------------------ */
42 void FiconvSetTransliterateUtf8(int toggle);
43 char *FiconvUtf8ToCharset(
44 Display *dpy, FlocaleCharset *fc, const char *in,
45 unsigned int in_size);
46 char *FiconvCharsetToUtf8(
47 Display *dpy, FlocaleCharset *fc, const char *in,
48 unsigned int in_size);
49 char *FiconvCharsetToCharset(
50 Display *dpy, FlocaleCharset *in_fc, FlocaleCharset *out_fc,
51 const char *in, unsigned int in_size);
52 #endif /* FICONV_H */