From b2fada1dd19211d71e04557653d08e697134a6ce Mon Sep 17 00:00:00 2001 From: Erik K Date: Fri, 13 May 2022 17:24:26 +0000 Subject: initial commit --- sm.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sm.h (limited to 'sm.h') diff --git a/sm.h b/sm.h new file mode 100644 index 0000000..085b92f --- /dev/null +++ b/sm.h @@ -0,0 +1,22 @@ +#include +#include + +#include "config.h" + +#define LEN(X) (sizeof(X)/sizeof(*X)) + +typedef struct { + char filename[64]; + char title[128]; + time_t creat, mod; + char link[CLEN]; +} Document; + +typedef struct { + const char name[16]; + void (*export)(Document **, int); + Document **usedby; + int nusedby; +} Plugin; + +int cat(const char *, FILE *); -- cgit v1.2.3