summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2012-02-16 20:51:31 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2012-02-16 20:51:31 +0000
commit752172f6f0d6720937996a5ef0e29990327e56fb (patch)
tree91ef5e785a18c96ebec030ce7e59a1c00a9e783a /mandoc.h
parent8872acfd3bb11e0bdbd221a6616c7c74b549b313 (diff)
downloadmandoc-752172f6f0d6720937996a5ef0e29990327e56fb.tar.gz
Add mparse_readmem, which allows application to run the parser directly
from memory, e.g. after de-compressing a document.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mandoc.h b/mandoc.h
index 85724bed..219972c0 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -418,6 +418,8 @@ struct mparse *mparse_alloc(enum mparset,
void mparse_free(struct mparse *);
void mparse_keep(struct mparse *);
enum mandoclevel mparse_readfd(struct mparse *, int, const char *);
+enum mandoclevel mparse_readmem(struct mparse *, const void *, size_t,
+ const char *);
void mparse_reset(struct mparse *);
void mparse_result(struct mparse *,
struct mdoc **, struct man **);