#ifndef MUPDF_FITZ_TREE_H1#define MUPDF_FITZ_TREE_H23#include "mupdf/fitz/system.h"4#include "mupdf/fitz/context.h"56/* AA-tree to look up things by strings. */78typedef struct fz_tree_s fz_tree;910void *fz_tree_lookup(fz_context *ctx, fz_tree *node, const char *key);1112/*13Insert a new key/value pair and rebalance the tree.14Return the new root of the tree after inserting and rebalancing.15May be called with a NULL root to create a new tree.16*/17fz_tree *fz_tree_insert(fz_context *ctx, fz_tree *root, const char *key, void *value);1819void fz_drop_tree(fz_context *ctx, fz_tree *node, void (*dropfunc)(fz_context *ctx, void *value));2021void fz_debug_tree(fz_context *ctx, fz_tree *root);2223#endif242526