chiark / gitweb /
rm some todos
[inn-innduct.git] / storage / tradindexed / tradindexed.h
1 /*  $Id: tradindexed.h 5324 2002-03-15 21:09:33Z rra $
2 **
3 **  Public interface for the tradindexed overview method.
4 **
5 **  The exact API specified here must match the expectations of the overview
6 **  API.  Any changes here have to be made to all the overview methods at the
7 **  same time.
8 */
9
10 #ifndef TRADINDEXED_H
11 #define TRADINDEXED_H 1
12
13 #include "config.h"
14 #include <sys/types.h>
15
16 #include "ov.h"
17 #include "storage.h"
18
19 BEGIN_DECLS
20
21 bool tradindexed_open(int mode);
22 bool tradindexed_groupstats(char *group, int *low, int *high, int *count,
23                             int *flag);
24 bool tradindexed_groupadd(char *group, ARTNUM low, ARTNUM high, char *flag);
25 bool tradindexed_groupdel(char *group);
26 bool tradindexed_add(char *group, ARTNUM artnum, TOKEN token, char *data,
27                      int length, time_t arrived, time_t expires);
28 bool tradindexed_cancel(TOKEN token);
29 void *tradindexed_opensearch(char *group, int low, int high);
30 bool tradindexed_search(void *handle, ARTNUM *artnum, char **data,
31                         int *length, TOKEN *token, time_t *arrived);
32 void tradindexed_closesearch(void *handle);
33 bool tradindexed_getartinfo(char *group, ARTNUM artnum, TOKEN *token);
34 bool tradindexed_expiregroup(char *group, int *low, struct history *);
35 bool tradindexed_ctl(OVCTLTYPE type, void *val);
36 void tradindexed_close(void);
37
38 END_DECLS
39
40 #endif /* TRADINDEXED_H */