chiark / gitweb /
Commit 2.4.5-5 as unpacked
[innduct.git] / storage / ovdb / ovdb.h
1 #ifndef _OVDB_H_
2 #define _OVDB_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif /* __cplusplus */
7
8 bool ovdb_open(int mode);
9 bool ovdb_groupstats(char *group, int *lo, int *hi, int *count, int *flag);
10 bool ovdb_groupadd(char *group, ARTNUM lo, ARTNUM hi, char *flag);
11 bool ovdb_groupdel(char *group);
12 bool ovdb_add(char *group, ARTNUM artnum, TOKEN token, char *data, int len, time_t arrived, time_t expires);
13 bool ovdb_cancel(TOKEN token);
14 void *ovdb_opensearch(char *group, int low, int high);
15 bool ovdb_search(void *handle, ARTNUM *artnum, char **data, int *len, TOKEN *token, time_t *arrived);
16 void ovdb_closesearch(void *handle);
17 bool ovdb_getartinfo(char *group, ARTNUM artnum, TOKEN *token);
18 bool ovdb_expiregroup(char *group, int *lo, struct history *h);
19 bool ovdb_ctl(OVCTLTYPE type, void *val);
20 void ovdb_close(void);
21
22 #ifdef __cplusplus
23 }
24 #endif /* __cplusplus */
25
26 #endif /* _OVDB_H_ */