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