gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r16977 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r16977 - gnunet/src/include
Date: Wed, 21 Sep 2011 07:51:49 +0200

Author: grothoff
Date: 2011-09-21 07:51:49 +0200 (Wed, 21 Sep 2011)
New Revision: 16977

Modified:
   gnunet/src/include/gnunet_block_lib.h
   gnunet/src/include/gnunet_protocols.h
Log:
extend

Modified: gnunet/src/include/gnunet_block_lib.h
===================================================================
--- gnunet/src/include/gnunet_block_lib.h       2011-09-21 05:51:38 UTC (rev 
16976)
+++ gnunet/src/include/gnunet_block_lib.h       2011-09-21 05:51:49 UTC (rev 
16977)
@@ -232,6 +232,23 @@
                       size_t block_size, GNUNET_HashCode * key);
 
 
+
+/**
+ * Construct a bloom filter that would filter out the given
+ * results.
+ *
+ * @param bf_mutator mutation value to use
+ * @param seen_results results already seen
+ * @param seen_results_count number of entries in 'seen_results'
+ * @return NULL if seen_results_count is 0, otherwise a BF
+ *         that would match the given results.
+ */
+struct GNUNET_CONTAINER_BloomFilter *
+GNUNET_BLOCK_construct_bloomfilter (int32_t bf_mutator,
+                                   const GNUNET_HashCode *seen_results,
+                                   unsigned int seen_results_count);
+
+
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
 #endif

Modified: gnunet/src/include/gnunet_protocols.h
===================================================================
--- gnunet/src/include/gnunet_protocols.h       2011-09-21 05:51:38 UTC (rev 
16976)
+++ gnunet/src/include/gnunet_protocols.h       2011-09-21 05:51:49 UTC (rev 
16977)
@@ -628,11 +628,13 @@
  * Local DHT route request type
  */
 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE 142
+#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET 142
 
 /**
  * Local generic DHT route result type
  */
 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_RESULT 143
+#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT 142
 
 /**
  * P2P DHT route request type
@@ -648,12 +650,14 @@
  * Local generic DHT message stop type
  */
 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP 146
+#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP 146
 
 /**
  * Local and P2P DHT PUT message
  * (encapsulated in DHT_ROUTE message)
  */
 #define GNUNET_MESSAGE_TYPE_DHT_PUT 147
+#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT 147
 
 /**
  * Local and P2P DHT GET message




reply via email to

[Prev in Thread] Current Thread [Next in Thread]