summaryrefslogtreecommitdiffstats
path: root/src/libutil/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-14 13:11:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-14 13:11:28 +0100
commitfa43e3bfc7a4ca93b3ffcae730b6705bc402a2b5 (patch)
tree9333e5182c927238eaca79c615cb36d7d08d1888 /src/libutil/util.h
parentc4572edbf6d6bec6bb031479a9bcd0a3f1cd1bbe (diff)
downloadrspamd-fa43e3bfc7a4ca93b3ffcae730b6705bc402a2b5.tar.gz
rspamd-fa43e3bfc7a4ca93b3ffcae730b6705bc402a2b5.zip
Use hash table instead of tree for urls.
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r--src/libutil/util.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h
index de28fe93b..65dbd4442 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -245,11 +245,13 @@ gsize rspamd_strlcpy_tolower (gchar *dst, const gchar *src, gsize siz);
#define ts_to_usec(ts) ((ts)->tv_sec * 1000000LLU + \
(ts)->tv_nsec / 1000LLU)
-/* Compare two emails for building emails tree */
-gint rspamd_emails_cmp (gconstpointer a, gconstpointer b);
+guint rspamd_url_hash (gconstpointer u);
-/* Compare two urls for building emails tree */
-gint rspamd_urls_cmp (gconstpointer a, gconstpointer b);
+/* Compare two emails for building emails hash */
+gboolean rspamd_emails_cmp (gconstpointer a, gconstpointer b);
+
+/* Compare two urls for building emails hash */
+gboolean rspamd_urls_cmp (gconstpointer a, gconstpointer b);
/*
* Find string find in string s ignoring case