2 * Copyright (C) 1994-1995, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.9 1995-10-06 14:37:53 adam
8 * New result set method: r_score.
9 * Local no (sysno) and score is transferred to retrieveCtrl.
11 * Revision 1.8 1995/10/02 15:43:35 adam
12 * Extract uses file descriptors instead of FILE pointers.
14 * Revision 1.7 1995/10/02 15:18:09 adam
17 * Revision 1.6 1995/10/02 15:05:26 quinn
20 * Revision 1.5 1995/10/02 14:55:52 quinn
21 * *** empty log message ***
23 * Revision 1.4 1995/09/27 16:17:29 adam
24 * More work on retrieve.
26 * Revision 1.3 1995/09/27 12:21:25 adam
27 * New function: recType_byName.
29 * Revision 1.2 1995/09/15 14:45:03 adam
32 * Revision 1.1 1995/09/14 07:48:13 adam
33 * Record control management.
43 /* single word entity */
58 /* Extract record control */
59 struct recExtractCtrl {
60 int fd; /* File descriptor and read function */
61 int (*readf)(int fd, char *buf, size_t count);
63 void (*init)(RecWord *p);
64 void (*add)(const RecWord *p);
67 /* Retrieve record control */
68 struct recRetrieveCtrl {
69 /* Input parameters ... */
70 ODR odr; /* ODR used to create response */
71 int fd; /* File descriptor and read function */
72 int (*readf)(int fd, char *buf, size_t count);
73 oid_value input_format; /* Preferred record syntax */
74 int localno; /* local id of record */
75 int score; /* score 0-1000 or -1 if none */
78 oid_value output_format;
85 typedef struct recType
87 char *name; /* Name of record type */
88 void (*init)(void); /* Init function - called once */
89 int (*extract)(struct recExtractCtrl *ctrl); /* Extract proc */
90 int (*retrieve)(struct recRetrieveCtrl *ctrl); /* Retrieve proc */
93 RecType recType_byName (const char *name);