aboutsummaryrefslogtreecommitdiff
path: root/lib/cmark/src/iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cmark/src/iterator.h')
-rw-r--r--lib/cmark/src/iterator.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/cmark/src/iterator.h b/lib/cmark/src/iterator.h
new file mode 100644
index 0000000..30ce76f
--- /dev/null
+++ b/lib/cmark/src/iterator.h
@@ -0,0 +1,26 @@
+#ifndef CMARK_ITERATOR_H
+#define CMARK_ITERATOR_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "cmark.h"
+
+typedef struct {
+ cmark_event_type ev_type;
+ cmark_node *node;
+} cmark_iter_state;
+
+struct cmark_iter {
+ cmark_mem *mem;
+ cmark_node *root;
+ cmark_iter_state cur;
+ cmark_iter_state next;
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif