summaryrefslogtreecommitdiffstats
path: root/libmdocml.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmdocml.h')
-rw-r--r--libmdocml.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libmdocml.h b/libmdocml.h
index 934ae96a..85843ce6 100644
--- a/libmdocml.h
+++ b/libmdocml.h
@@ -19,8 +19,32 @@
#ifndef LIBMDOCML_H
#define LIBMDOCML_H
+#include <sys/types.h>
+
+struct md_rbuf {
+ int fd;
+ const char *name;
+ char *buf;
+ size_t bufsz;
+ size_t line;
+};
+
+struct md_mbuf {
+ int fd;
+ const char *name;
+ char *buf;
+ size_t bufsz;
+ size_t pos;
+};
+
+enum md_type {
+ MD_DUMMY
+};
+
__BEGIN_DECLS
+int md_run(enum md_type, struct md_mbuf *, struct md_rbuf *);
+
__END_DECLS
#endif /*!LIBMDOCML_H*/