summaryrefslogtreecommitdiffstats
path: root/sm.h
diff options
context:
space:
mode:
authorErik K <erikk@previousplan.org>2022-05-13 17:24:26 +0000
committerErik K <erikk@previousplan.org>2022-05-13 17:24:26 +0000
commitb2fada1dd19211d71e04557653d08e697134a6ce (patch)
tree063b6d1280193046321db1e53506be5b72d2220f /sm.h
initial commit
Diffstat (limited to 'sm.h')
-rw-r--r--sm.h22
1 files changed, 22 insertions, 0 deletions
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 <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 *);