From: Adam Dickmeiss Date: Fri, 15 Sep 1995 14:45:03 +0000 (+0000) Subject: Retrieve control. X-Git-Tag: ZEBRA.1.0~752 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=c69a676949b3c1f125a19d117d9fb1e586751746 Retrieve control. --- diff --git a/include/recctrl.h b/include/recctrl.h index ed6ace9..b8a980f 100644 --- a/include/recctrl.h +++ b/include/recctrl.h @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: recctrl.h,v $ - * Revision 1.1 1995-09-14 07:48:13 adam + * Revision 1.2 1995-09-15 14:45:03 adam + * Retrieve control. + * + * Revision 1.1 1995/09/14 07:48:13 adam * Record control management. * */ @@ -12,6 +15,9 @@ #ifndef RECCTRL_H #define RECCTRL_H +#include +#include + typedef struct { int attrSet; int attrUse; @@ -33,11 +39,24 @@ struct recExtractCtrl { void (*add)(const RecWord *p); }; +struct recRetrieveCtrl { + ODR odr; + int fd; + int (*readf)(int fd, char *buf, size_t count); + oid_value input_format; + + /* response */ + oid_value output_format; + void *rec_buf; + size_t rec_len; +}; + typedef struct recType { char *name; void (*init)(void); int (*extract)(struct recExtractCtrl *ctrl); + int (*retrieve)(struct recRetrieveCtrl *ctrl); } *RecType; #endif