Changed prototype for chr_map_input - added const.
[idzebra-moved-to-github.git] / include / rsbool.h
1 /*
2  * Copyright (C) 1994-1997, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: rsbool.h,v $
7  * Revision 1.5  1997-09-05 15:30:02  adam
8  * Changed prototype for chr_map_input - added const.
9  * Added support for C++, headers uses extern "C" for public definitions.
10  *
11  * Revision 1.4  1995/12/11 09:07:53  adam
12  * New rset member 'flag', that holds various flags about a result set -
13  * currently 'volatile' (set is register dependent) and 'ranked' (set is
14  * ranked).
15  * New set types sand/sor/snot. They handle and/or/not for ranked and
16  * semi-ranked result sets.
17  *
18  * Revision 1.3  1995/09/07  13:58:08  adam
19  * New parameter: result-set file descriptor (RSFD) to support multiple
20  * positions within the same result-set.
21  * Boolean operators: and, or, not implemented.
22  *
23  * Revision 1.2  1995/09/06  16:10:57  adam
24  * More work on boolean sets.
25  *
26  * Revision 1.1  1995/09/06  13:27:37  adam
27  * New set type: bool. Not finished yet.
28  *
29  */
30
31 #ifndef RSET_BOOL_H
32 #define RSET_BOOL_H
33
34 #include <rset.h>
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 extern const rset_control *rset_kind_and;
41 extern const rset_control *rset_kind_or;
42 extern const rset_control *rset_kind_not;
43
44 extern const rset_control *rset_kind_sand;
45 extern const rset_control *rset_kind_sor;
46 extern const rset_control *rset_kind_snot;
47
48 typedef struct rset_bool_parms
49 {
50     int     key_size;
51     RSET    rset_l;
52     RSET    rset_r;
53     int (*cmp)(const void *p1, const void *p2);
54 } rset_bool_parms;
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif