aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/radix.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-01 15:15:11 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-01 15:15:11 +0100
commita8c9abd046add08c8ac8f91c3c12d5c823fb44e3 (patch)
tree6ed54d8c8226d15d2c314818f9fa008f8d0fb2c6 /src/libutil/radix.h
parent9ae0493f954ac0186541aa567b55adbb436b33db (diff)
downloadrspamd-a8c9abd046add08c8ac8f91c3c12d5c823fb44e3.tar.gz
rspamd-a8c9abd046add08c8ac8f91c3c12d5c823fb44e3.zip
Rework fuzzy storage radix.
Diffstat (limited to 'src/libutil/radix.h')
-rw-r--r--src/libutil/radix.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/libutil/radix.h b/src/libutil/radix.h
index f89d30103..38af00b51 100644
--- a/src/libutil/radix.h
+++ b/src/libutil/radix.h
@@ -81,14 +81,7 @@ uintptr_t radix32tree_find (radix_tree_t *tree, guint32 key);
*/
uintptr_t radix32_tree_find_addr (radix_tree_t *tree, rspamd_inet_addr_t *addr);
-/**
- * Find specified address in tree (works for any address)
- * @param tree
- * @param addr
- * @return
- */
-uintptr_t radix_find_compressed_addr (radix_compressed_t *tree,
- rspamd_inet_addr_t *addr);
+
/**
* Traverse via the whole tree calling specified callback
@@ -111,8 +104,17 @@ radix_insert_compressed (radix_compressed_t * tree,
uintptr_t radix_find_compressed (radix_compressed_t * tree, guint8 *key,
gsize keylen);
-void radix_tree_destroy_compressed (radix_compressed_t *tree);
+/**
+ * Find specified address in tree (works for any address)
+ * @param tree
+ * @param addr
+ * @return
+ */
+uintptr_t radix_find_compressed_addr (radix_compressed_t *tree,
+ rspamd_inet_addr_t *addr);
+
+void radix_destroy_compressed (radix_compressed_t *tree);
-radix_compressed_t *radix_tree_create_compressed (void);
+radix_compressed_t *radix_create_compressed (void);
#endif