X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=lib%2Fbloom.h;h=d40d9f6bacf3ad15bbbcd65fe4b8491d1ebdb1f7;hp=b3cde950450762fb46ffad52b12270a31e4d9ef6;hb=0a301e93062df3735f9bb87c445e18d98a4b6efb;hpb=652ae149194f753b5f074b4c5984acc76ebb24f1 diff --git a/lib/bloom.h b/lib/bloom.h index b3cde950..d40d9f6b 100644 --- a/lib/bloom.h +++ b/lib/bloom.h @@ -2,12 +2,13 @@ #define FIO_BLOOM_H #include +#include "../lib/types.h" struct bloom; struct bloom *bloom_new(uint64_t entries); void bloom_free(struct bloom *b); -int bloom_check(struct bloom *b, uint32_t *data, unsigned int nwords); -int bloom_set(struct bloom *b, uint32_t *data, unsigned int nwords); +bool bloom_set(struct bloom *b, uint32_t *data, unsigned int nwords); +bool bloom_set_string(struct bloom *b, const char *data, unsigned int len); #endif