IDZEBRA 2.2.8
attrfind.h
Go to the documentation of this file.
1/* This file is part of the Zebra server.
2 Copyright (C) Index Data
3
4Zebra is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 2, or (at your option) any later
7version.
8
9Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, 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
26YAZ_BEGIN_CDECL
27
28typedef struct {
29 int type;
30 int major;
31 int minor;
32 Z_AttributeElement **attributeList;
34} AttrType;
35
36void attr_init_APT(AttrType *src, Z_AttributesPlusTerm *zapt, int type);
37
38void attr_init_AttrList(AttrType *src, Z_AttributeList *list, int type);
39
40int attr_find_ex(AttrType *src, const Odr_oid **attribute_set_oid,
41 const char **string_value);
42int attr_find(AttrType *src, const Odr_oid **attribute_set_oid);
43
44YAZ_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
int attr_find(AttrType *src, const Odr_oid **attribute_set_oid)
Definition attrfind.c:99
void attr_init_APT(AttrType *src, Z_AttributesPlusTerm *zapt, int type)
Definition attrfind.c:27
void attr_init_AttrList(AttrType *src, Z_AttributeList *list, int type)
Definition attrfind.c:36
int attr_find_ex(AttrType *src, const Odr_oid **attribute_set_oid, const char **string_value)
Definition attrfind.c:45
Z_AttributeElement ** attributeList
Definition attrfind.h:32
int minor
Definition attrfind.h:31
int type
Definition attrfind.h:29
int major
Definition attrfind.h:30
int num_attributes
Definition attrfind.h:33