summaryrefslogtreecommitdiff
path: root/src/references.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/references.h')
-rw-r--r--src/references.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/references.h b/src/references.h
index 9f423ab..e3824e7 100644
--- a/src/references.h
+++ b/src/references.h
@@ -8,6 +8,24 @@
extern "C" {
#endif
+#define REFMAP_SIZE 16
+
+struct cmark_reference {
+ struct cmark_reference *next;
+ unsigned char *label;
+ unsigned char *url;
+ unsigned char *title;
+ unsigned int hash;
+};
+
+typedef struct cmark_reference cmark_reference;
+
+struct cmark_reference_map {
+ cmark_reference *table[REFMAP_SIZE];
+};
+
+typedef struct cmark_reference_map cmark_reference_map;
+
cmark_reference_map *cmark_reference_map_new(void);
void cmark_reference_map_free(cmark_reference_map *map);
cmark_reference* cmark_reference_lookup(cmark_reference_map *map, cmark_chunk *label);