Minor changes to zebramap data structures. Changed query
[idzebra-moved-to-github.git] / include / zebramap.h
1 /*
2  * Copyright (C) 1994-1998, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: zebramap.h,v $
7  * Revision 1.5  1998-03-05 08:39:26  adam
8  * Minor changes to zebramap data structures. Changed query
9  * mapping rules.
10  *
11  * Revision 1.4  1998/02/10 12:03:05  adam
12  * Implemented Sort.
13  *
14  * Revision 1.3  1997/11/18 10:05:08  adam
15  * Changed character map facility so that admin can specify character
16  * mapping files for each register type, w, p, etc.
17  *
18  * Revision 1.2  1997/10/29 12:02:47  adam
19  * Added missing prototype.
20  *
21  * Revision 1.1  1997/10/27 14:33:04  adam
22  * Moved towards generic character mapping depending on "structure"
23  * field in abstract syntax file. Fixed a few memory leaks. Fixed
24  * bug with negative integers when doing searches with relational
25  * operators.
26  *
27  */
28
29 #ifndef ZEBRAMAP_H
30 #define ZEBRAMAP_H
31
32 #include <proto.h>
33 #include <res.h>
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 typedef struct zebra_maps *ZebraMaps;
40 ZebraMaps zebra_maps_open (Res res);
41
42 void zebra_maps_close (ZebraMaps zm);
43
44 const char **zebra_maps_input (ZebraMaps zms, unsigned reg_id,
45                                const char **from, int len);
46 const char *zebra_maps_output(ZebraMaps, unsigned reg_id, const char **from);
47
48 int zebra_maps_attr (ZebraMaps zms, Z_AttributesPlusTerm *zapt,
49                      unsigned *reg_id, char **search_type, char **rank_type,
50                      int *complete_flag);
51
52 int zebra_maps_sort (ZebraMaps zms, Z_SortAttributes *sortAttributes);
53
54 int zebra_maps_is_complete (ZebraMaps zms, unsigned reg_id);
55 int zebra_maps_is_sort (ZebraMaps zms, unsigned reg_id);
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif