aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-25 15:17:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-25 15:17:49 +0000
commitaee6df6eb688c812a34d9a363dda978f06095003 (patch)
treed99bb9b2ce6d25b71e560347d01dc9525953ad4b /man.h
parente0c48e25273aab3cab4440442865955afff07b02 (diff)
downloadmandoc-aee6df6eb688c812a34d9a363dda978f06095003.tar.gz
mandoc-aee6df6eb688c812a34d9a363dda978f06095003.tar.zst
mandoc-aee6df6eb688c812a34d9a363dda978f06095003.zip
Added man validator, renamed mdoc validator.
Diffstat (limited to 'man.h')
-rw-r--r--man.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/man.h b/man.h
index 518f65d6..cc26bc5f 100644
--- a/man.h
+++ b/man.h
@@ -1,4 +1,4 @@
-/* $Id: man.h,v 1.2 2009/03/23 15:20:51 kristaps Exp $ */
+/* $Id: man.h,v 1.3 2009/03/25 15:17:49 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -74,15 +74,21 @@ struct man_node {
extern const char *const *man_macronames;
+struct man_cb {
+ int (*man_warn)(void *, int, int, const char *);
+ int (*man_err)(void *, int, int, const char *);
+};
+
__BEGIN_DECLS
struct man;
void man_free(struct man *);
-struct man *man_alloc(void);
+struct man *man_alloc(void *, const struct man_cb *);
void man_reset(struct man *);
int man_parseln(struct man *, int, char *buf);
int man_endparse(struct man *);
+int man_valid_post(struct man *);
const struct man_node *man_node(const struct man *);
const struct man_meta *man_meta(const struct man *);