=================================================================== RCS file: /cvs/mandoc/mdoc.h,v retrieving revision 1.26 retrieving revision 1.28 diff -u -p -r1.26 -r1.28 --- mandoc/mdoc.h 2009/01/19 17:02:58 1.26 +++ mandoc/mdoc.h 2009/01/20 13:44:05 1.28 @@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.26 2009/01/19 17:02:58 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.28 2009/01/20 13:44:05 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -390,6 +390,7 @@ struct mdoc_node { #define MDOC_ACTED (1 << 1) enum mdoc_type type; union mdoc_data data; + /* FIXME: have an enum mdoc_sec. */ }; /* Call-backs for parse messages. */ @@ -416,8 +417,11 @@ struct mdoc *mdoc_alloc(void *data, const struct mdoc /* Parse a single line (boolean retval). */ int mdoc_parseln(struct mdoc *, int, char *buf); -/* Get parse result or NULL. */ -const struct mdoc_node *mdoc_result(struct mdoc *); +/* Get result first node. */ +const struct mdoc_node *mdoc_node(struct mdoc *); + +/* Get result meta-information. */ +const struct mdoc_meta *mdoc_meta(struct mdoc *); /* Signal end of parse sequence (boolean retval). */ int mdoc_endparse(struct mdoc *);