diff options
author | wrmr | 2024-11-03 12:49:38 -0500 |
---|---|---|
committer | wrmr | 2024-11-03 12:49:38 -0500 |
commit | 9faead33740e7b5b847478518fd3a270a2aa5c2a (patch) | |
tree | dcf3b0e397bcec261341c598a20621c52b13ef87 /doc.h | |
parent | ce088cbf9c3a73e9f9ed3012d31dd6e989d86052 (diff) |
some refactoring to disconnect doc_type from networking
Diffstat (limited to 'doc.h')
-rw-r--r-- | doc.h | 8 |
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; |