aboutsummaryrefslogtreecommitdiff
path: root/src/iterator.h
blob: 027b10bd9a5eea46f4c68f9c5831fcf93b46fcd1 (plain)
  1. #ifndef CMARK_ITERATOR_H
  2. #define CMARK_ITERATOR_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "cmark.h"
  7. typedef struct {
  8. cmark_event_type ev_type;
  9. cmark_node *node;
  10. } cmark_iter_state;
  11. struct cmark_iter {
  12. cmark_node *root;
  13. cmark_iter_state cur;
  14. cmark_iter_state next;
  15. };
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif