summary refs log tree commit diff
path: root/doc.h
diff options
context:
space:
mode:
Diffstat (limited to 'doc.h')
-rw-r--r--doc.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc.h b/doc.h
new file mode 100644
index 0000000..3c5dfcc
--- /dev/null
+++ b/doc.h
@@ -0,0 +1,24 @@
+#ifndef DOC_H
+#define DOC_H
+
+enum doc_type {
+	TYPE_UNKNOWN,
+	TYPE_GOPHERDOC,
+	TYPE_GEMTEXT,
+	TYPE_PLAIN,
+};
+
+void doc_new(void);
+void doc_prev(void);
+void doc_next(void);
+
+void doc_add(const char *, size_t);
+void doc_adds(const char *);
+
+void doc_back_line(void);
+void doc_print_line(void);
+
+void doc_init(void);
+void doc_fini(void);
+
+#endif