Update for YAZ 3s new OID system
[idzebra-moved-to-github.git] / include / attrfind.h
1 /* $Id: attrfind.h,v 1.4 2007-04-16 08:44:31 adam Exp $
2    Copyright (C) 2005-2007
3    Index Data ApS
4
5 This file is part of the Zebra server.
6
7 Zebra is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
11
12 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
21 */
22
23 #ifndef ATTRFIND_H
24 #define ATTRFIND_H
25
26 #include <yaz/yconfig.h>
27 #include <yaz/z-core.h>
28
29 YAZ_BEGIN_CDECL
30
31 typedef struct {
32     int type;
33     int major;
34     int minor;
35     Z_AttributeElement **attributeList;
36     int num_attributes;
37 } AttrType;
38
39 void attr_init_APT(AttrType *src, Z_AttributesPlusTerm *zapt, int type);
40
41 void attr_init_AttrList(AttrType *src, Z_AttributeList *list, int type);
42
43 int attr_find_ex(AttrType *src, const int **attribute_set_oid,
44                  const char **string_value);
45 int attr_find(AttrType *src, const int **attribute_set_oid);
46
47 YAZ_END_CDECL
48
49 #endif
50 /*
51  * Local variables:
52  * c-basic-offset: 4
53  * indent-tabs-mode: nil
54  * End:
55  * vim: shiftwidth=4 tabstop=8 expandtab
56  */
57