chiark / gitweb /
debugging for thing that crashed
[inn-innduct.git] / storage / timecaf / timecaf.h
1 /*  $Id: timecaf.h 4266 2001-01-04 06:01:36Z rra $
2 **
3 **  timecaf -- like the timehash storage method (and heavily inspired
4 **  by it), but uses the CAF library to store multiple articles in a
5 **  single file. 
6 */
7
8 #ifndef __TIMECAF_H__
9 #define __TIMECAF_H__
10
11 #include "config.h"
12 #include "interface.h"
13
14 bool timecaf_init(SMATTRIBUTE *attr);
15 TOKEN timecaf_store(const ARTHANDLE article, const STORAGECLASS class);
16 ARTHANDLE *timecaf_retrieve(const TOKEN token, const RETRTYPE amount);
17 ARTHANDLE *timecaf_next(const ARTHANDLE *article, const RETRTYPE amount);
18 void timecaf_freearticle(ARTHANDLE *article);
19 bool timecaf_cancel(TOKEN token);
20 bool timecaf_ctl(PROBETYPE type, TOKEN *token, void *value);
21 bool timecaf_flushcacheddata(FLUSHTYPE type);
22 void timecaf_printfiles(FILE *file, TOKEN token, char **xref, int ngroups);
23 void timecaf_shutdown(void);
24
25 #endif