chiark / gitweb /
Commit 2.4.5-5 as unpacked
[innduct.git] / storage / buffindexed / buffindexed.h
1 #ifndef _BUFFINDEXED_H_
2 #define _BUFFINDEXED_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif /* __cplusplus */
7
8 bool buffindexed_open(int mode);
9 bool buffindexed_groupstats(char *group, int *lo, int *hi, int *count, int *flag);
10 bool buffindexed_groupadd(char *group, ARTNUM lo, ARTNUM hi, char *flag);
11 bool buffindexed_groupdel(char *group);
12 bool buffindexed_add(char *group, ARTNUM artnum, TOKEN token, char *data, int len, time_t arrived, time_t expires);
13 bool buffindexed_cancel(TOKEN token);
14 void *buffindexed_opensearch(char *group, int low, int high);
15 bool buffindexed_search(void *handle, ARTNUM *artnum, char **data, int *len, TOKEN *token, time_t *arrived);
16 void buffindexed_closesearch(void *handle);
17 bool buffindexed_getartinfo(char *group, ARTNUM artnum, TOKEN *token);
18 bool buffindexed_expiregroup(char *group, int *lo, struct history *h);
19 bool buffindexed_ctl(OVCTLTYPE type, void *val);
20 void buffindexed_close(void);
21
22 #ifdef __cplusplus
23 }
24 #endif /* __cplusplus */
25
26 #endif /* _BUFFINDEXED_H_ */