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
11typedef struct fz_tree_s fz_tree;
12
13void *fz_tree_lookup(fz_context *ctx, fz_tree *node, const char *key);
14
15fz_tree *fz_tree_insert(fz_context *ctx, fz_tree *root, const char *key, void *value);
16
17void fz_drop_tree(fz_context *ctx, fz_tree *node, void (*dropfunc)(fz_context *ctx, void *value));
18
19#endif
20