summaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 19:08:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 19:08:42 +0000
commit074d28ebc2c4b5ab952e74b9a815e0a55c26110a (patch)
tree452b73366ec4ba53eab3ebd7e054946ef28068b2 /src/libutil/addr.h
parent548833c06eb83565a79166a0921e428bd88af2bd (diff)
downloadrspamd-074d28ebc2c4b5ab952e74b9a815e0a55c26110a.tar.gz
rspamd-074d28ebc2c4b5ab952e74b9a815e0a55c26110a.zip
Fix sorting order and unit test for upstreams.
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r--src/libutil/addr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h
index dd5b6adb6..1ea0ab8b5 100644
--- a/src/libutil/addr.h
+++ b/src/libutil/addr.h
@@ -197,6 +197,14 @@ gint rspamd_inet_address_compare (const rspamd_inet_addr_t *a1,
const rspamd_inet_addr_t *a2);
/**
+ * Utility function to compare addresses by in g_ptr_array
+ * @param a1
+ * @param a2
+ * @return
+ */
+gint rspamd_inet_address_compare_ptr (const gpointer a1,
+ const gpointer a2);
+/**
* Performs deep copy of rspamd inet addr
* @param addr
* @return