X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=storage%2Ftrash%2Ftrash.c;fp=storage%2Ftrash%2Ftrash.c;h=0000000000000000000000000000000000000000;hb=b7a32e2d73e3ab1add8208d3e157f7269a31ef4d;hp=7dfe1bf337fbb57020cc913047f3a80e7eb333da;hpb=ac902a8299ff4469b356836f431ead31c3377377;p=innduct.git diff --git a/storage/trash/trash.c b/storage/trash/trash.c deleted file mode 100644 index 7dfe1bf..0000000 --- a/storage/trash/trash.c +++ /dev/null @@ -1,94 +0,0 @@ -/* $Id: trash.c 6124 2003-01-14 06:03:29Z rra $ -** -** Trashing articles method -*/ -#include "config.h" -#include "clibrary.h" -#include "libinn.h" -#include "methods.h" - -#include "trash.h" - -bool -trash_init(SMATTRIBUTE *attr) -{ - if (attr == NULL) { - SMseterror(SMERR_INTERNAL, "attr is NULL"); - return false; - } - attr->selfexpire = true; - attr->expensivestat = false; - return true; -} - -TOKEN -trash_store(const ARTHANDLE article, const STORAGECLASS class) -{ - TOKEN token; - - if (article.token == (TOKEN *)NULL) - memset(&token, '\0', sizeof(token)); - else { - memcpy(&token, article.token, sizeof(token)); - memset(&token.token, '\0', STORAGE_TOKEN_LENGTH); - } - token.type = TOKEN_TRASH; - token.class = class; - return token; -} - -ARTHANDLE * -trash_retrieve(const TOKEN token, const RETRTYPE amount UNUSED) -{ - if (token.type != TOKEN_TRASH) { - SMseterror(SMERR_INTERNAL, NULL); - return (ARTHANDLE *)NULL; - } - SMseterror(SMERR_NOENT, NULL); - return (ARTHANDLE *)NULL; -} - -void -trash_freearticle(ARTHANDLE *article UNUSED) -{ -} - -bool -trash_cancel(TOKEN token UNUSED) -{ - SMseterror(SMERR_NOENT, NULL); - return false; -} - -bool -trash_ctl(PROBETYPE type, TOKEN *token UNUSED, void *value UNUSED) -{ - switch (type) { - case SMARTNGNUM: - default: - return false; - } -} - -bool -trash_flushcacheddata(FLUSHTYPE type UNUSED) -{ - return true; -} - -void -trash_printfiles(FILE *file UNUSED, TOKEN token UNUSED, char **xref UNUSED, - int ngroups UNUSED) -{ -} - -ARTHANDLE * -trash_next(const ARTHANDLE *article UNUSED, const RETRTYPE amount UNUSED) -{ - return NULL; -} - -void -trash_shutdown(void) -{ -}