1 /* $Id: trash.c 6124 2003-01-14 06:03:29Z rra $
3 ** Trashing articles method
13 trash_init(SMATTRIBUTE *attr)
16 SMseterror(SMERR_INTERNAL, "attr is NULL");
19 attr->selfexpire = true;
20 attr->expensivestat = false;
25 trash_store(const ARTHANDLE article, const STORAGECLASS class)
29 if (article.token == (TOKEN *)NULL)
30 memset(&token, '\0', sizeof(token));
32 memcpy(&token, article.token, sizeof(token));
33 memset(&token.token, '\0', STORAGE_TOKEN_LENGTH);
35 token.type = TOKEN_TRASH;
41 trash_retrieve(const TOKEN token, const RETRTYPE amount UNUSED)
43 if (token.type != TOKEN_TRASH) {
44 SMseterror(SMERR_INTERNAL, NULL);
45 return (ARTHANDLE *)NULL;
47 SMseterror(SMERR_NOENT, NULL);
48 return (ARTHANDLE *)NULL;
52 trash_freearticle(ARTHANDLE *article UNUSED)
57 trash_cancel(TOKEN token UNUSED)
59 SMseterror(SMERR_NOENT, NULL);
64 trash_ctl(PROBETYPE type, TOKEN *token UNUSED, void *value UNUSED)
74 trash_flushcacheddata(FLUSHTYPE type UNUSED)
80 trash_printfiles(FILE *file UNUSED, TOKEN token UNUSED, char **xref UNUSED,
86 trash_next(const ARTHANDLE *article UNUSED, const RETRTYPE amount UNUSED)