2 * Copyright (C) 1994-1995, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.4 1995-10-06 14:38:06 adam
8 * New result set method: r_score.
9 * Local no (sysno) and score is transferred to retrieveCtrl.
11 * Revision 1.3 1995/09/08 14:52:42 adam
12 * Work on relevance feedback.
14 * Revision 1.2 1995/09/07 13:58:43 adam
15 * New parameter: result-set file descriptor (RSFD) to support multiple
16 * positions within the same result-set.
17 * Boolean operators: and, or, not implemented.
19 * Revision 1.1 1995/09/06 10:35:44 adam
20 * Null set implemented.
28 static rset_control *r_create(const struct rset_control *sel, void *parms);
29 static RSFD r_open (rset_control *ct, int wflag);
30 static void r_close (RSFD rfd);
31 static void r_delete (rset_control *ct);
32 static void r_rewind (RSFD rfd);
33 static int r_count (rset_control *ct);
34 static int r_read (RSFD rfd, void *buf);
35 static int r_write (RSFD rfd, const void *buf);
36 static int r_score (RSFD rfd, int *score);
38 static const rset_control control =
53 const rset_control *rset_kind_null = &control;
55 static rset_control *r_create(const struct rset_control *sel, void *parms)
59 newct = xmalloc(sizeof(*newct));
60 memcpy(newct, sel, sizeof(*sel));
64 static RSFD r_open (rset_control *ct, int wflag)
68 logf (LOG_FATAL, "NULL set type is read-only");
74 static void r_close (RSFD rfd)
78 static void r_delete (rset_control *ct)
83 static void r_rewind (RSFD rfd)
85 logf (LOG_DEBUG, "rsnull_rewind");
88 static int r_count (rset_control *ct)
93 static int r_read (RSFD rfd, void *buf)
98 static int r_write (RSFD rfd, const void *buf)
100 logf (LOG_FATAL, "NULL set type is read-only");
104 static int r_score (RSFD rfd, int *score)