libiconv: add external var _libiconv_version
[openwrt/svn-archive/archive.git] / libs / libiconv / src / include / iconv.h
1 /*
2 * Very simple iconv api stub.
3 */
4
5 #ifndef _ICONV_H
6 #define _ICONV_H 1
7
8 #define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
9 extern int _libiconv_version; /* Likewise */
10
11 #include <stddef.h>
12
13 typedef void *iconv_t;
14
15 extern iconv_t
16 iconv_open(const char *tocode, const char *fromcode);
17
18 extern size_t
19 iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,
20 char **outbuf, size_t *outbytesleft);
21
22 extern int
23 iconv_close(iconv_t cd);
24
25 #endif /* _ICONV_H */