X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=bloom.h;h=806dde49977b96ecd3f666766a5a8baa00ded6f4;hp=e7f3cd33dc2018d03f410064731c0a8be97b6e59;hb=560d397a66ba141f18e13557feae78ca94a25f98;hpb=fa21c55adb75551452241369424a146c7acb71a4;ds=sidebyside diff --git a/bloom.h b/bloom.h index e7f3cd3..806dde4 100644 --- a/bloom.h +++ b/bloom.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Andre Noll + * Copyright (C) 2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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);