Clean log
[yaz-moved-to-github.git] / include / yaz / yaz-util.h
1 /*
2  * Copyright (c) 1995-2002, Index Data.
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Id: yaz-util.h,v 1.5 2002-10-04 19:06:36 adam Exp $
7  */
8
9 #ifndef YAZ_UTIL_H
10 #define YAZ_UTIL_H
11
12 #include <yaz/yconfig.h>
13 #include <yaz/xmalloc.h>
14 #include <yaz/log.h>
15 #include <yaz/tpath.h>
16 #include <yaz/options.h>
17 #include <yaz/wrbuf.h>
18 #include <yaz/nmem.h>
19 #include <yaz/readconf.h>
20 #include <yaz/marcdisp.h>
21
22 YAZ_BEGIN_CDECL
23
24 typedef struct yaz_iconv_struct *yaz_iconv_t;
25 #define YAZ_ICONV_UNKNOWN 1
26 #define YAZ_ICONV_E2BIG 2
27 #define YAZ_ICONV_EILSEQ 3
28 #define YAZ_ICONV_EINVAL 4
29
30 YAZ_EXPORT yaz_iconv_t yaz_iconv_open (const char *tocode,
31                                        const char *fromcode);
32 YAZ_EXPORT size_t yaz_iconv (yaz_iconv_t cd, char **inbuf, size_t *inbytesleft,
33                              char **outbuf, size_t *outbytesleft);
34 YAZ_EXPORT int yaz_iconv_error (yaz_iconv_t cd);
35
36 YAZ_EXPORT int yaz_iconv_close (yaz_iconv_t cd);
37
38 YAZ_EXPORT int yaz_matchstr(const char *s1, const char *s2);
39
40 YAZ_END_CDECL
41
42 #endif