Report 'too many characters in search..'
[idzebra-moved-to-github.git] / include / attrfind.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 ATTRFIND_H
21 #define ATTRFIND_H
22
23 #include <yaz/yconfig.h>
24 #include <yaz/z-core.h>
25
26 YAZ_BEGIN_CDECL
27
28 typedef struct {
29     int type;
30     int major;
31     int minor;
32     Z_AttributeElement **attributeList;
33     int num_attributes;
34 } AttrType;
35
36 void attr_init_APT(AttrType *src, Z_AttributesPlusTerm *zapt, int type);
37
38 void attr_init_AttrList(AttrType *src, Z_AttributeList *list, int type);
39
40 int attr_find_ex(AttrType *src, const Odr_oid **attribute_set_oid,
41                  const char **string_value);
42 int attr_find(AttrType *src, const Odr_oid **attribute_set_oid);
43
44 YAZ_END_CDECL
45
46 #endif
47 /*
48  * Local variables:
49  * c-basic-offset: 4
50  * c-file-style: "Stroustrup"
51  * indent-tabs-mode: nil
52  * End:
53  * vim: shiftwidth=4 tabstop=8 expandtab
54  */
55