aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/radix.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 14:03:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 14:03:46 +0100
commit2d94c35b631d5d74bba56037a406bb125181e623 (patch)
treea60dbcc989b7b3bcab0a35fc5d899a109963ef48 /src/libutil/radix.h
parent3c7ecaaa01f7a49f7ffcaa0c533fbc97e9470700 (diff)
downloadrspamd-2d94c35b631d5d74bba56037a406bb125181e623.tar.gz
rspamd-2d94c35b631d5d74bba56037a406bb125181e623.zip
Add routine to check radix trie size.
Diffstat (limited to 'src/libutil/radix.h')
-rw-r--r--src/libutil/radix.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/radix.h b/src/libutil/radix.h
index 84d617305..a7ea7f868 100644
--- a/src/libutil/radix.h
+++ b/src/libutil/radix.h
@@ -97,4 +97,11 @@ gint rspamd_radix_add_iplist (const gchar *list, const gchar *separators,
gboolean radix_add_generic_iplist (const gchar *ip_list,
radix_compressed_t **tree);
+/**
+ * Returns number of elements in the tree
+ * @param tree
+ * @return
+ */
+gsize radix_get_size (radix_compressed_t *tree);
+
#endif