You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd2/include/lighttpd/radix.h

19 lines
828 B

#ifndef _LIGHTTPD_RADIX_H_
#define _LIGHTTPD_RADIX_H_
#include <lighttpd/settings.h>
typedef struct liRadixTree liRadixTree;
LI_API liRadixTree* li_radixtree_new();
LI_API void li_radixtree_free(liRadixTree *tree, GFunc free_func, gpointer free_userdata);
LI_API gpointer li_radixtree_insert(liRadixTree *tree, const void *key, guint32 bits, gpointer data); /* returns old data after overwrite */
LI_API gpointer li_radixtree_remove(liRadixTree *tree, const void *key, guint32 bits); /* returns data from removed node */
LI_API gpointer li_radixtree_lookup(liRadixTree *tree, const void *key, guint32 bits); /* longest matching prefix */
LI_API gpointer li_radixtree_lookup_exact(liRadixTree *tree, const void *key, guint32 bits);
LI_API void li_radixtree_foreach(liRadixTree *tree, GFunc func, gpointer userdata);
#endif