projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2406403
)
Retrieve control.
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 15 Sep 1995 14:45:03 +0000
(14:45 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 15 Sep 1995 14:45:03 +0000
(14:45 +0000)
include/recctrl.h
patch
|
blob
|
history
diff --git
a/include/recctrl.h
b/include/recctrl.h
index
ed6ace9
..
b8a980f
100644
(file)
--- a/
include/recctrl.h
+++ b/
include/recctrl.h
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: recctrl.h,v $
* 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.
*
*/
* Record control management.
*
*/
@@
-12,6
+15,9
@@
#ifndef RECCTRL_H
#define RECCTRL_H
#ifndef RECCTRL_H
#define RECCTRL_H
+#include <oid.h>
+#include <odr.h>
+
typedef struct {
int attrSet;
int attrUse;
typedef struct {
int attrSet;
int attrUse;
@@
-33,11
+39,24
@@
struct recExtractCtrl {
void (*add)(const RecWord *p);
};
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);
typedef struct recType
{
char *name;
void (*init)(void);
int (*extract)(struct recExtractCtrl *ctrl);
+ int (*retrieve)(struct recRetrieveCtrl *ctrl);
} *RecType;
#endif
} *RecType;
#endif