Record control management.
[idzebra-moved-to-github.git] / include / recctrl.h
1 /*
2  * Copyright (C) 1994-1995, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: recctrl.h,v $
7  * Revision 1.1  1995-09-14 07:48:13  adam
8  * Record control management.
9  *
10  */
11
12 #ifndef RECCTRL_H
13 #define RECCTRL_H
14
15 typedef struct {
16     int  attrSet;
17     int  attrUse;
18     enum {
19         Word_String,
20         Word_Numeric
21     } which;
22     union {
23         char *string;
24         int  numeric;
25     } u;
26     int seqno;
27 } RecWord;
28
29 struct recExtractCtrl {
30     FILE *inf;
31     char *subType;
32     void (*init)(RecWord *p);
33     void (*add)(const RecWord *p);
34 };
35
36 typedef struct recType
37 {
38     char *name;
39     void (*init)(void);
40     int  (*extract)(struct recExtractCtrl *ctrl);
41 } *RecType;
42
43 #endif