tor  0.4.2.0-alpha-dev
digestset.h
Go to the documentation of this file.
1 /* Copyright (c) 2018-2019, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
9 #ifndef TOR_DIGESTSET_H
10 #define TOR_DIGESTSET_H
11 
12 #include "orconfig.h"
13 #include "lib/cc/torint.h"
15 
21 typedef struct bloomfilt_t digestset_t;
22 
23 digestset_t *digestset_new(int max_addresses_guess);
24 #define digestset_free(set) bloomfilt_free(set)
25 void digestset_add(digestset_t *set, const char *addr);
27  const char *addr);
28 
29 #endif /* !defined(TOR_DIGESTSET_H) */
Integer definitions used throughout Tor.
int digestset_probably_contains(const digestset_t *set, const char *addr)
Definition: digestset.c:54
digestset_t * digestset_new(int max_addresses_guess)
Definition: digestset.c:30
Header for bloomfilt.c.
void digestset_add(digestset_t *set, const char *addr)
Definition: digestset.c:44