diff options
author | Erik K <erikk@previousplan.org> | 2022-05-13 17:24:26 +0000 |
---|---|---|
committer | Erik K <erikk@previousplan.org> | 2022-05-13 17:24:26 +0000 |
commit | b2fada1dd19211d71e04557653d08e697134a6ce (patch) | |
tree | 063b6d1280193046321db1e53506be5b72d2220f /sm.h |
initial commit
Diffstat (limited to 'sm.h')
-rw-r--r-- | sm.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#include <stdio.h> +#include <time.h> + +#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 *); |