X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=lib%2Fbloom.h;h=141ead9a68c3f3fef76655bd8b6b9f5735a9459f;hb=c71430182a39fdf358d161ac2d0e01eb4ac285ce;hp=b3cde950450762fb46ffad52b12270a31e4d9ef6;hpb=652ae149194f753b5f074b4c5984acc76ebb24f1;p=fio.git diff --git a/lib/bloom.h b/lib/bloom.h index b3cde950..141ead9a 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_string(struct bloom *b, const char *data, unsigned int len, bool); #endif