1 /* $Id: tradindexed.h 5324 2002-03-15 21:09:33Z rra $
3 ** Public interface for the tradindexed overview method.
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
11 #define TRADINDEXED_H 1
14 #include <sys/types.h>
21 bool tradindexed_open(int mode);
22 bool tradindexed_groupstats(char *group, int *low, int *high, int *count,
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);
40 #endif /* TRADINDEXED_H */