blob: 78fffe7958d320e7d7c47571244d4aa061804e4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef _REFERENCES_H_
#define _REFERENCES_H_
#define REFMAP_SIZE 16
struct reference {
struct reference *next;
unsigned char *label;
unsigned char *url;
unsigned char *title;
unsigned int hash;
};
typedef struct reference reference;
struct reference_map {
reference *table[REFMAP_SIZE];
};
typedef struct reference_map reference_map;
reference_map *reference_map_new(void);
void reference_map_free(reference_map *map);
reference* reference_lookup(reference_map *map, chunk *label);
extern reference *reference_create(reference_map *map, chunk *label, chunk *url, chunk *title);
#endif
|