summaryrefslogtreecommitdiffstats
path: root/ml.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-03 19:21:58 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-03 19:21:58 +0000
commitc67723cb5220a19191e6836e53b8d0a489c86797 (patch)
treee75720ca8fbbb4d7f4a0ed25af3ab2b2ecf392b3 /ml.h
parentac4bc07079be4963163734d67749697140f23b4b (diff)
downloadmandoc-c67723cb5220a19191e6836e53b8d0a489c86797.tar.gz
Major update.
Diffstat (limited to 'ml.h')
-rw-r--r--ml.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ml.h b/ml.h
index 806a6e27..95a4712b 100644
--- a/ml.h
+++ b/ml.h
@@ -23,10 +23,16 @@ struct md_mlg;
enum md_ns {
MD_NS_BLOCK,
+ MD_NS_HEAD,
+ MD_NS_BODY,
MD_NS_INLINE,
MD_NS_DEFAULT,
};
+typedef int (*ml_begin)(struct md_mbuf *,
+ const struct md_args *);
+typedef int (*ml_end)(struct md_mbuf *,
+ const struct md_args *);
typedef ssize_t (*ml_endtag)(struct md_mbuf *,
const struct md_args *, enum md_ns, int);
typedef ssize_t (*ml_begintag)(struct md_mbuf *,
@@ -40,12 +46,13 @@ int ml_nputstring(struct md_mbuf *,
const char *, size_t, size_t *);
int ml_nputs(struct md_mbuf *,
const char *, size_t, size_t *);
+int ml_puts(struct md_mbuf *, const char *, size_t *);
int ml_putchars(struct md_mbuf *,
char, size_t, size_t *);
struct md_mlg *mlg_alloc(const struct md_args *,
const struct md_rbuf *, struct md_mbuf *,
- ml_begintag, ml_endtag);
+ ml_begintag, ml_endtag, ml_begin, ml_end);
int mlg_exit(struct md_mlg *, int);
int mlg_line(struct md_mlg *, char *);