aboutsummaryrefslogtreecommitdiff
path: root/src/references.h
blob: 9f423ab344dee43bc173fcc0b382f6a7fc550adb (plain)
  1. #ifndef CMARK_REFERENCES_H
  2. #define CMARK_REFERENCES_H
  3. #include "chunk.h"
  4. #include "ast.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. cmark_reference_map *cmark_reference_map_new(void);
  9. void cmark_reference_map_free(cmark_reference_map *map);
  10. cmark_reference* cmark_reference_lookup(cmark_reference_map *map, cmark_chunk *label);
  11. extern void cmark_reference_create(cmark_reference_map *map, cmark_chunk *label, cmark_chunk *url, cmark_chunk *title);
  12. #ifndef CMARK_NO_SHORT_NAMES
  13. #define reference cmark_reference
  14. #define reference_map cmark_reference_map
  15. #define reference_map_new cmark_reference_map_new
  16. #define reference_map_free cmark_reference_map_free
  17. #define reference_lookup cmark_reference_lookup
  18. #define reference_create cmark_reference_create
  19. #endif
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif