1 /*  $Id: trash.h 8817 2009-11-17 18:57:19Z iulius $
2 **
3 **  Storage manager module header for trash method.
4 */
5 
6 #ifndef __TRASH_H__
7 #define __TRASH_H__
8 
9 #include "config.h"
10 #include "interface.h"
11 
12 bool trash_init(SMATTRIBUTE *attr);
13 TOKEN trash_store(const ARTHANDLE article, const STORAGECLASS class);
14 ARTHANDLE *trash_retrieve(const TOKEN token, const RETRTYPE amount);
15 ARTHANDLE *trash_next(ARTHANDLE *article, const RETRTYPE amount);
16 void trash_freearticle(ARTHANDLE *article);
17 bool trash_cancel(TOKEN token);
18 bool trash_ctl(PROBETYPE type, TOKEN *token, void *value);
19 bool trash_flushcacheddata(FLUSHTYPE type);
20 void trash_printfiles(FILE *file, TOKEN token, char **xref, int ngroups);
21 char *trash_explaintoken(const TOKEN token);
22 void trash_shutdown(void);
23 
24 #endif
25