2 * Copyright (C) 1994-1995, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.3 1995-09-08 14:52:42 adam
8 * Work on relevance feedback.
10 * Revision 1.2 1995/09/07 13:58:43 adam
11 * New parameter: result-set file descriptor (RSFD) to support multiple
12 * positions within the same result-set.
13 * Boolean operators: and, or, not implemented.
15 * Revision 1.1 1995/09/06 10:35:44 adam
16 * Null set implemented.
24 static rset_control *r_create(const struct rset_control *sel, void *parms);
25 static RSFD r_open (rset_control *ct, int wflag);
26 static void r_close (RSFD rfd);
27 static void r_delete (rset_control *ct);
28 static void r_rewind (RSFD rfd);
29 static int r_count (rset_control *ct);
30 static int r_read (RSFD rfd, void *buf);
31 static int r_write (RSFD rfd, const void *buf);
33 static const rset_control control =
47 const rset_control *rset_kind_null = &control;
49 static rset_control *r_create(const struct rset_control *sel, void *parms)
53 newct = xmalloc(sizeof(*newct));
54 memcpy(newct, sel, sizeof(*sel));
58 static RSFD r_open (rset_control *ct, int wflag)
62 logf (LOG_FATAL, "NULL set type is read-only");
68 static void r_close (RSFD rfd)
72 static void r_delete (rset_control *ct)
77 static void r_rewind (RSFD rfd)
79 logf (LOG_DEBUG, "rsnull_rewind");
82 static int r_count (rset_control *ct)
87 static int r_read (RSFD rfd, void *buf)
92 static int r_write (RSFD rfd, const void *buf)
94 logf (LOG_FATAL, "NULL set type is read-only");