aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-21 05:51:49 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-21 05:51:49 +0000
commit3419a38c90bf6fb4a92990fad739b2c1c7b72041 (patch)
tree2c195601adb1cf344cee45aa2f94ce19795e2fed /src/include
parenta864897478e2ee94ab36648e7f1db6f0dd57ea43 (diff)
downloadgnunet-3419a38c90bf6fb4a92990fad739b2c1c7b72041.tar.gz
gnunet-3419a38c90bf6fb4a92990fad739b2c1c7b72041.zip
extend
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_block_lib.h17
-rw-r--r--src/include/gnunet_protocols.h4
2 files changed, 21 insertions, 0 deletions
diff --git a/src/include/gnunet_block_lib.h b/src/include/gnunet_block_lib.h
index 01a1ec2fc..a362e5b77 100644
--- a/src/include/gnunet_block_lib.h
+++ b/src/include/gnunet_block_lib.h
@@ -232,6 +232,23 @@ GNUNET_BLOCK_get_key (struct GNUNET_BLOCK_Context *ctx,
232 size_t block_size, GNUNET_HashCode * key); 232 size_t block_size, GNUNET_HashCode * key);
233 233
234 234
235
236/**
237 * Construct a bloom filter that would filter out the given
238 * results.
239 *
240 * @param bf_mutator mutation value to use
241 * @param seen_results results already seen
242 * @param seen_results_count number of entries in 'seen_results'
243 * @return NULL if seen_results_count is 0, otherwise a BF
244 * that would match the given results.
245 */
246struct GNUNET_CONTAINER_BloomFilter *
247GNUNET_BLOCK_construct_bloomfilter (int32_t bf_mutator,
248 const GNUNET_HashCode *seen_results,
249 unsigned int seen_results_count);
250
251
235#if 0 /* keep Emacsens' auto-indent happy */ 252#if 0 /* keep Emacsens' auto-indent happy */
236{ 253{
237#endif 254#endif
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 1b03835bf..a9a60dde6 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -628,11 +628,13 @@ extern "C"
628 * Local DHT route request type 628 * Local DHT route request type
629 */ 629 */
630#define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE 142 630#define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE 142
631#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET 142
631 632
632/** 633/**
633 * Local generic DHT route result type 634 * Local generic DHT route result type
634 */ 635 */
635#define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_RESULT 143 636#define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_RESULT 143
637#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT 142
636 638
637/** 639/**
638 * P2P DHT route request type 640 * P2P DHT route request type
@@ -648,12 +650,14 @@ extern "C"
648 * Local generic DHT message stop type 650 * Local generic DHT message stop type
649 */ 651 */
650#define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP 146 652#define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP 146
653#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP 146
651 654
652/** 655/**
653 * Local and P2P DHT PUT message 656 * Local and P2P DHT PUT message
654 * (encapsulated in DHT_ROUTE message) 657 * (encapsulated in DHT_ROUTE message)
655 */ 658 */
656#define GNUNET_MESSAGE_TYPE_DHT_PUT 147 659#define GNUNET_MESSAGE_TYPE_DHT_PUT 147
660#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT 147
657 661
658/** 662/**
659 * Local and P2P DHT GET message 663 * Local and P2P DHT GET message