Result set manipulation
[idzebra-moved-to-github.git] / include / rset.h
1 /*
2  * Copyright (C) 1994, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: rset.h,v $
7  * Revision 1.1  1994-11-03 14:13:22  quinn
8  * Result set manipulation
9  *
10  */
11
12 #ifndef RSET_H
13 #define RSET_H
14
15 typedef struct rset_control
16 {
17     char *buf;  /* state data stored by subsystem */
18     int (*f_open)(rset_control *ct, int wflag);
19     void (*f_close)(rset_control *ct *data);
20     void (*f_delete)(rset_control *ct);
21     void (*f_rewind)(rset_control *ct);
22     int (*f_count)(rset_control *ct);
23     int (*f_read)(...);
24     int (*f_write)(...);
25 } rset_control;
26
27 typedef struct rset
28 {
29     rset_control *control;
30 } rset *RSET;
31
32 RSET rset_create();       /* parameters? */
33 int rset_open(RSET rs, int wflag);
34 void rset_close(RSET rs);
35 void rset_delete(RSET rs);
36 void rset_rewind(RSET rs);
37 int rset_count(RSET rs);   /* more parameters? */
38 int rset_read(RSET rs, void *buf);   /* change parameters */
39 int rset_write(RSET rs, void *buf);  /* change parameters */
40
41 #endif