summaryrefslogtreecommitdiff
path: root/doc.h
diff options
context:
space:
mode:
authorwrmr2024-11-03 12:49:38 -0500
committerwrmr2024-11-03 12:49:38 -0500
commit9faead33740e7b5b847478518fd3a270a2aa5c2a (patch)
treedcf3b0e397bcec261341c598a20621c52b13ef87 /doc.h
parentce088cbf9c3a73e9f9ed3012d31dd6e989d86052 (diff)
some refactoring to disconnect doc_type from networking
Diffstat (limited to 'doc.h')
-rw-r--r--doc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc.h b/doc.h
index fccd676..496b631 100644
--- a/doc.h
+++ b/doc.h
@@ -2,7 +2,6 @@
#define DOC_H
#include "buf.h"
-#include "net.h"
#define DOC_LINK_NONE 0xffff
@@ -11,6 +10,13 @@ struct doc_line {
char txt[];
};
+enum doc_type {
+ DOC_UNKNOWN,
+ DOC_GOPHERDOC,
+ DOC_GEMTEXT,
+ DOC_PLAIN,
+};
+
struct doc {
buf_t txt, lnk;
size_t latest;