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