X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=history%2Fhisinterface.h;fp=history%2Fhisinterface.h;h=0000000000000000000000000000000000000000;hb=b7a32e2d73e3ab1add8208d3e157f7269a31ef4d;hp=8fa5390db3e20062d8d54d15f0b56f4f67227718;hpb=ac902a8299ff4469b356836f431ead31c3377377;p=innduct.git diff --git a/history/hisinterface.h b/history/hisinterface.h deleted file mode 100644 index 8fa5390..0000000 --- a/history/hisinterface.h +++ /dev/null @@ -1,47 +0,0 @@ -/* $Id: hisinterface.h 5745 2002-09-08 19:52:12Z rra $ -** -** Interface to history API modules -*/ - -#ifndef HISINTERFACE_H -#define HISINTERFACE_H - -#include "config.h" -#include - -struct token; -struct histopts; -struct history; - -typedef struct hismethod { - const char *name; - void *(*open)(const char *path, int flags, struct history *); - bool (*close)(void *); - bool (*sync)(void *); - bool (*lookup)(void *, const char *, time_t *, time_t *, time_t *, - struct token *); - bool (*check)(void *, const char *); - bool (*write)(void *, const char *, time_t, time_t, time_t, - const struct token *); - bool (*replace)(void *, const char *, time_t, time_t, time_t, - const struct token *); - bool (*expire)(void *, const char *, const char *, bool, void *, time_t, - bool (*)(void *, time_t, time_t, time_t, - struct token *)); - bool (*walk)(void *, const char *, void *, - bool (*)(void *, time_t, time_t, time_t, - const struct token *)); - bool (*remember)(void *, const char *, time_t); - bool (*ctl)(void *, int, void *); -} HIS_METHOD; - -/* subordinate history manager private methods */ -void his_seterror(struct history *, const char *); - -enum { S_HIScacheadd, S_HIScachelookup, S_HISsetup, S_HISsync, - S_HISlogstats, S_HISclose, S_HISfilesfor, S_HIShavearticle, - S_HISwrite, S_HISremember, S_HIS_MAX }; - -/* fine grained history logging */ -void his_logger(char *s, int code); -#endif