Do not build for Debian lenny anymore
[idzebra-moved-to-github.git] / index / orddict.h
1 /* This file is part of the Zebra server.
2    Copyright (C) 1994-2011 Index Data
3
4 Zebra is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
7 version.
8
9 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
18 */
19
20 #ifndef ORDDICT_H
21 #define ORDDICT_H
22
23 #include <yaz/yconfig.h>
24 #include <idzebra/dict.h>
25 #include <yaz/wrbuf.h>
26
27 YAZ_BEGIN_CDECL
28
29 WRBUF zebra_mk_ord_str(int ord, const char *str);
30 char *dict_lookup_ord(Dict d, int ord, const char *str);
31 int dict_insert_ord(Dict dict, int ord, const char *p,
32                     int userlen, void *userinfo);
33 int dict_delete_ord(Dict dict, int ord, const char *p);
34 int dict_delete_subtree_ord(Dict d, int ord, void *client,
35                             int (*f)(const char *info, void *client));
36
37 YAZ_END_CDECL
38 #endif
39 /*
40  * Local variables:
41  * c-basic-offset: 4
42  * c-file-style: "Stroustrup"
43  * indent-tabs-mode: nil
44  * End:
45  * vim: shiftwidth=4 tabstop=8 expandtab
46  */
47