diff options
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 *); |