|
|
@@ -3,6 +3,7 @@ |
|
|
|
|
|
|
|
#include "config.h" |
|
|
|
#include "mem_pool.h" |
|
|
|
#include "util.h" |
|
|
|
|
|
|
|
#define RADIX_NO_VALUE (uintptr_t)-1 |
|
|
|
|
|
|
@@ -69,6 +70,14 @@ gint radix32tree_delete (radix_tree_t *tree, guint32 key, guint32 mask); |
|
|
|
*/ |
|
|
|
uintptr_t radix32tree_find (radix_tree_t *tree, guint32 key); |
|
|
|
|
|
|
|
/** |
|
|
|
* Find specified address in tree (works only for ipv4 addresses) |
|
|
|
* @param tree |
|
|
|
* @param addr |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
uintptr_t radix32_tree_find_addr (radix_tree_t *tree, rspamd_inet_addr_t *addr); |
|
|
|
|
|
|
|
/** |
|
|
|
* Traverse via the whole tree calling specified callback |
|
|
|
*/ |