aboutsummaryrefslogtreecommitdiffstats
path: root/src/bloom.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:03:57 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:03:57 +0400
commit6b306ab8752befc28d259be55495f8249cc2df24 (patch)
tree0fa3d471aef61925563709e0f8ee5667b57c7a9d /src/bloom.h
parent8d0053734fb5a4ccd8c3bda731e6b7c8261c6f67 (diff)
downloadrspamd-6b306ab8752befc28d259be55495f8249cc2df24.tar.gz
rspamd-6b306ab8752befc28d259be55495f8249cc2df24.zip
Fixes types (use glib ones) no functional change.
Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
Diffstat (limited to 'src/bloom.h')
-rw-r--r--src/bloom.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/bloom.h b/src/bloom.h
index e97b0aaee..bd53613a9 100644
--- a/src/bloom.h
+++ b/src/bloom.h
@@ -3,31 +3,31 @@
#include "config.h"
-typedef unsigned int (*hashfunc_t) (const char *);
+typedef guint (*hashfunc_t) (const gchar *);
typedef struct bloom_filter_s {
size_t asize;
- unsigned char *a;
+ gchar *a;
size_t nfuncs;
hashfunc_t *funcs;
} bloom_filter_t;
/* Hash functions */
-unsigned int bloom_sax_hash (const char *key);
-unsigned int bloom_sdbm_hash (const char *key);
-unsigned int bloom_fnv_hash (const char *key);
-unsigned int bloom_rs_hash (const char *key);
-unsigned int bloom_js_hash (const char *key);
-unsigned int bloom_elf_hash (const char *key);
-unsigned int bloom_bkdr_hash (const char *key);
-unsigned int bloom_ap_hash (const char *key);
+guint bloom_sax_hash (const gchar *key);
+guint bloom_sdbm_hash (const gchar *key);
+guint bloom_fnv_hash (const gchar *key);
+guint bloom_rs_hash (const gchar *key);
+guint bloom_js_hash (const gchar *key);
+guint bloom_elf_hash (const gchar *key);
+guint bloom_bkdr_hash (const gchar *key);
+guint bloom_ap_hash (const gchar *key);
#define DEFAULT_BLOOM_HASHES 8, bloom_sax_hash, bloom_sdbm_hash, bloom_fnv_hash, bloom_rs_hash, bloom_js_hash, bloom_elf_hash, bloom_bkdr_hash, bloom_ap_hash
bloom_filter_t* bloom_create (size_t size, size_t nfuncs, ...);
void bloom_destroy (bloom_filter_t * bloom);
-gboolean bloom_add (bloom_filter_t * bloom, const char *s);
-gboolean bloom_del (bloom_filter_t * bloom, const char *s);
-gboolean bloom_check (bloom_filter_t * bloom, const char *s);
+gboolean bloom_add (bloom_filter_t * bloom, const gchar *s);
+gboolean bloom_del (bloom_filter_t * bloom, const gchar *s);
+gboolean bloom_check (bloom_filter_t * bloom, const gchar *s);
#endif