From 4cc37256fdc47faeefe6296cdcce022ec6a60719 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 11 Dec 2014 13:55:21 -0800 Subject: Added cmark_node_handler and cmark_walk to header. --- src/cmark.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/cmark.h') 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. -- cgit v1.2.3