summaryrefslogtreecommitdiffstats
path: root/sm.h
diff options
context:
space:
mode:
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 *);