diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-11 13:55:21 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-12 15:24:05 -0800 |
commit | 4cc37256fdc47faeefe6296cdcce022ec6a60719 (patch) | |
tree | 48828269a62913d9725a35d1d39e4963cb4b8915 /src/cmark.h | |
parent | 550230aa5575b120782ef307a17317c6827f032e (diff) |
Added cmark_node_handler and cmark_walk to header.
Diffstat (limited to 'src/cmark.h')
-rw-r--r-- | src/cmark.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmark.h b/src/cmark.h index f96cea9..d77749c 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -86,6 +86,8 @@ typedef enum { typedef struct cmark_node cmark_node; typedef struct cmark_parser cmark_parser; +typedef int (*cmark_node_handler)(cmark_node*, int, void*); + /** * .SH CREATING AND DESTROYING NODES */ @@ -307,6 +309,11 @@ char *cmark_render_ast(cmark_node *root); CMARK_EXPORT char *cmark_render_html(cmark_node *root); +/** + */ +CMARK_EXPORT +int cmark_walk(cmark_node *root, cmark_node_handler handler, void *state); + /** .SH AUTHORS * * John MacFarlane, Vicent Marti, Kārlis Gaņģis, Nick Wellnhofer. |