]> git.tuebingen.mpg.de Git - adu.git/blobdiff - bloom.h
Use ?:= as the assignement operator for PREFIX.
[adu.git] / bloom.h
diff --git a/bloom.h b/bloom.h
index e7f3cd33dc2018d03f410064731c0a8be97b6e59..9e71c6c370b9239ba4e890b1c811d61d2e0e7e2c 100644 (file)
--- a/bloom.h
+++ b/bloom.h
@@ -20,7 +20,6 @@ struct bloom {
        uint8_t *filter;
 };
 
-int bloom_init(unsigned bloom_filter_order, unsigned num_hash_functions,
-               struct bloom **result);
+struct bloom *bloom_new(unsigned order, unsigned num_hash_functions);
 void bloom_free(struct bloom *b);
-int bloom_test_and_insert(const uint8_t *data, size_t len, struct bloom *b);
+int bloom_insert(const uint8_t *data, size_t len, struct bloom *b);