* Fixed StickyAcrossPages style in the FvwmPager.
[fvwm.git] / libs / Ficonv.h
blob6ac4d94240d480bb9d9ba2e7629e2fa391f761d2
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 char *FiconvUtf8ToCharset(
43 Display *dpy, FlocaleCharset *fc, const char *in,
44 unsigned int in_size);
45 char *FiconvCharsetToUtf8(
46 Display *dpy, FlocaleCharset *fc, const char *in,
47 unsigned int in_size);
48 char *FiconvCharsetToCharset(
49 Display *dpy, FlocaleCharset *in_fc, FlocaleCharset *out_fc,
50 const char *in, unsigned int in_size);
51 #endif /* FICONV_H */