projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More work on extract in record control.
[idzebra-moved-to-github.git]
/
include
/
recctrl.h
diff --git
a/include/recctrl.h
b/include/recctrl.h
index
ed6ace9
..
8c6f2ab
100644
(file)
--- a/
include/recctrl.h
+++ b/
include/recctrl.h
@@
-4,7
+4,13
@@
* 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.3 1995-09-27 12:21:25 adam
+ * New function: recType_byName.
+ *
+ * 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
+18,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
+42,26
@@
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;
} *RecType;
+RecType recType_byName (const char *name);
+
#endif
#endif