1 | #ifndef MUPDF_FITZ_TREE_H |
---|---|
2 | #define MUPDF_FITZ_TREE_H |
3 | |
4 | #include "mupdf/fitz/system.h" |
5 | #include "mupdf/fitz/context.h" |
6 | |
7 | /* |
8 | AA-tree to look up things by strings. |
9 | */ |
10 | |
11 | typedef struct fz_tree_s fz_tree; |
12 | |
13 | void *fz_tree_lookup(fz_context *ctx, fz_tree *node, const char *key); |
14 | |
15 | fz_tree *fz_tree_insert(fz_context *ctx, fz_tree *root, const char *key, void *value); |
16 | |
17 | void fz_drop_tree(fz_context *ctx, fz_tree *node, void (*dropfunc)(fz_context *ctx, void *value)); |
18 | |
19 | #endif |
20 |