diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-10 21:21:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-10 21:21:01 +0000 |
commit | 3b2b7374d2d31f7b2638c82711f40f7113e9f7f0 (patch) | |
tree | 9dbdac6a4cabe0367bffd864c69c0ac8358a2c45 /src/include/gnunet_dht_service.h | |
parent | 5e756a09598021c6bb22cdbe1b0ac1011679ec0a (diff) | |
download | gnunet-3b2b7374d2d31f7b2638c82711f40f7113e9f7f0.tar.gz gnunet-3b2b7374d2d31f7b2638c82711f40f7113e9f7f0.zip |
-implementing #2435
Diffstat (limited to 'src/include/gnunet_dht_service.h')
-rw-r--r-- | src/include/gnunet_dht_service.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h index 89f42acb4..0de7551a4 100644 --- a/src/include/gnunet_dht_service.h +++ b/src/include/gnunet_dht_service.h | |||
@@ -236,14 +236,30 @@ typedef void (*GNUNET_DHT_GetIterator) (void *cls, | |||
236 | */ | 236 | */ |
237 | struct GNUNET_DHT_GetHandle * | 237 | struct GNUNET_DHT_GetHandle * |
238 | GNUNET_DHT_get_start (struct GNUNET_DHT_Handle *handle, | 238 | GNUNET_DHT_get_start (struct GNUNET_DHT_Handle *handle, |
239 | enum GNUNET_BLOCK_Type type, const struct GNUNET_HashCode * key, | 239 | enum GNUNET_BLOCK_Type type, |
240 | const struct GNUNET_HashCode *key, | ||
240 | uint32_t desired_replication_level, | 241 | uint32_t desired_replication_level, |
241 | enum GNUNET_DHT_RouteOption options, const void *xquery, | 242 | enum GNUNET_DHT_RouteOption options, |
242 | size_t xquery_size, GNUNET_DHT_GetIterator iter, | 243 | const void *xquery, size_t xquery_size, |
243 | void *iter_cls); | 244 | GNUNET_DHT_GetIterator iter, void *iter_cls); |
244 | 245 | ||
245 | 246 | ||
246 | /** | 247 | /** |
248 | * Tell the DHT not to return any of the following known results | ||
249 | * to this client. | ||
250 | * | ||
251 | * @param get_handle get operation for which results should be filtered | ||
252 | * @param num_results number of results to be blocked that are | ||
253 | * provided in this call (size of the 'results' array) | ||
254 | * @param results array of hash codes over the 'data' of the results | ||
255 | * to be blocked | ||
256 | */ | ||
257 | void | ||
258 | GNUNET_DHT_get_filter_known_results (struct GNUNET_DHT_GetHandle *get_handle, | ||
259 | unsigned int num_results, | ||
260 | const struct GNUNET_HashCode *results); | ||
261 | |||
262 | /** | ||
247 | * Stop async DHT-get. Frees associated resources. | 263 | * Stop async DHT-get. Frees associated resources. |
248 | * | 264 | * |
249 | * @param get_handle GET operation to stop. | 265 | * @param get_handle GET operation to stop. |