X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/921b12ca0c361b9c543368edf057712afa02ca14..c99ce5c9a3ff397497892a741079be2edf385de2:/src/src/dbstuff.h diff --git a/src/src/dbstuff.h b/src/src/dbstuff.h index 94c9b97ad..819e46609 100644 --- a/src/src/dbstuff.h +++ b/src/src/dbstuff.h @@ -654,5 +654,14 @@ typedef struct { double rate; /* Smoothed sending rate at that time */ } dbdata_ratelimit; +/* Same as above, plus a Bloom filter for uniquifying events. */ + +typedef struct { + dbdata_ratelimit dbd; + time_t bloom_epoch; /* When the Bloom filter was last reset */ + unsigned bloom_size; /* Number of bytes in the Bloom filter */ + uschar bloom[40]; /* Bloom filter which may be larger than this */ +} dbdata_ratelimit_unique; + /* End of dbstuff.h */