aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libiconv/src/include/iconv.h
blob: 8767be42eec300c7ab7e8bb5e55f335d7d72832c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _LIBICONV_H
#define _LIBICONV_H 1

#define _LIBICONV_VERSION 0x010B    /* version number: (major<<8) + minor */

#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif

extern int _libiconv_version; /* Likewise */

typedef long iconv_t;

#define iconv_open libiconv_open
#define iconv libiconv
#define iconv_close libiconv_close

extern iconv_t
iconv_open(const char *tocode, const char *fromcode);

extern size_t
iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,
                  char **outbuf, size_t *outbytesleft);

extern int
iconv_close(iconv_t cd);

#define libiconv_set_relocation_prefix(...) do {} while(0)

#ifdef __cplusplus
}
#endif

#endif /* _LIBICONV_H */