From 9faead33740e7b5b847478518fd3a270a2aa5c2a Mon Sep 17 00:00:00 2001 From: wrmr Date: Sun, 3 Nov 2024 12:49:38 -0500 Subject: some refactoring to disconnect doc_type from networking --- doc.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc.h') 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; -- cgit 1.4.1-2-gfad0