ad2ace16548e3414bbd38ed68b21f5f3a10b463d
[idzebra-moved-to-github.git] / include / idzebra / recgrs.h
1 /* This file is part of the Zebra server.
2    Copyright (C) 1994-2009 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 RECGRS_H
21 #define RECGRS_H
22
23 #include <idzebra/recctrl.h>
24
25 YAZ_BEGIN_CDECL
26
27 struct grs_read_info {
28     struct ZebraRecStream *stream;
29     void *clientData;
30     NMEM mem;
31     data1_handle dh;
32 };
33
34 YAZ_EXPORT
35 int zebra_grs_extract(void *clientData, struct recExtractCtrl *p,
36                       data1_node *(*grs_read)(struct grs_read_info *));
37
38 YAZ_EXPORT
39 int zebra_grs_retrieve(void *clientData, struct recRetrieveCtrl *p,
40                        data1_node *(*grs_read)(struct grs_read_info *));
41
42
43 YAZ_EXPORT
44 int grs_extract_tree(struct recExtractCtrl *p, data1_node *n);
45
46 YAZ_END_CDECL
47
48 #endif
49 /*
50  * Local variables:
51  * c-basic-offset: 4
52  * indent-tabs-mode: nil
53  * End:
54  * vim: shiftwidth=4 tabstop=8 expandtab
55  */
56