diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-11-22 18:34:06 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-11-22 18:34:06 +0000 |
commit | b6bd12c3f0303e71b580e5ff0eb8e9adf580d286 (patch) | |
tree | 4cf373cb08d1c35d3d50040c5ff2f5e7fd52b9f6 /libmdocml.h | |
parent | e2f3428b48d38e841c23392993a67bda84aa96ea (diff) | |
download | mandoc-b6bd12c3f0303e71b580e5ff0eb8e9adf580d286.tar.gz |
Putting md_run and friends into libmdocml (needs work to be useful).
Diffstat (limited to 'libmdocml.h')
-rw-r--r-- | libmdocml.h | 24 |
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*/ |