diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-10 09:36:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-10 09:36:50 +0000 |
commit | faecd2a496b5d356509b0b6b0157db34e8b3188e (patch) | |
tree | e5d54c0cb196a05e4a54031f8498e5ffe82bc3a9 /src/fs/gnunet-service-fs_pr.h | |
parent | 073c4a9ae448041fdc9a0683fed49d55ae61803e (diff) | |
download | gnunet-faecd2a496b5d356509b0b6b0157db34e8b3188e.tar.gz gnunet-faecd2a496b5d356509b0b6b0157db34e8b3188e.zip |
stuff
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.h')
-rw-r--r-- | src/fs/gnunet-service-fs_pr.h | 49 |
1 files changed, 29 insertions, 20 deletions
diff --git a/src/fs/gnunet-service-fs_pr.h b/src/fs/gnunet-service-fs_pr.h index b59cbc541..39a5fc77f 100644 --- a/src/fs/gnunet-service-fs_pr.h +++ b/src/fs/gnunet-service-fs_pr.h | |||
@@ -299,29 +299,38 @@ GSF_handle_p2p_content_ (struct GSF_ConnectedPeer *cp, | |||
299 | 299 | ||
300 | 300 | ||
301 | /** | 301 | /** |
302 | * Iterator called on each result obtained for a DHT | 302 | * Consider looking up the data in the DHT (anonymity-level permitting). |
303 | * operation that expects a reply | ||
304 | * | 303 | * |
305 | * @param cls closure, the 'struct GSF_PendingRequest *'. | 304 | * @param pr the pending request to process |
306 | * @param exp when will this value expire | ||
307 | * @param key key of the result | ||
308 | * @param get_path NULL-terminated array of pointers | ||
309 | * to the peers on reverse GET path (or NULL if not recorded) | ||
310 | * @param put_path NULL-terminated array of pointers | ||
311 | * to the peers on the PUT path (or NULL if not recorded) | ||
312 | * @param type type of the result | ||
313 | * @param size number of bytes in data | ||
314 | * @param data pointer to the result data | ||
315 | */ | 305 | */ |
316 | void | 306 | void |
317 | GSF_handle_dht_reply_ (void *cls, | 307 | GSF_dht_lookup_ (struct GSF_PendingRequest *pr); |
318 | struct GNUNET_TIME_Absolute exp, | 308 | |
319 | const GNUNET_HashCode * key, | 309 | |
320 | const struct GNUNET_PeerIdentity * const *get_path, | 310 | /** |
321 | const struct GNUNET_PeerIdentity * const *put_path, | 311 | * Function to be called after we're done processing |
322 | enum GNUNET_BLOCK_Type type, | 312 | * replies from the local lookup. |
323 | size_t size, | 313 | * |
324 | const void *data); | 314 | * @param cls closure |
315 | * @param pr the pending request we were processing | ||
316 | * @param result final datastore lookup result | ||
317 | */ | ||
318 | typedef void (GSF_LocalLookupContinuation)(void *cls, | ||
319 | struct GSF_PendingRequest *pr, | ||
320 | enum GNUNET_BLOCK_EvaluationResult result); | ||
321 | |||
322 | |||
323 | /** | ||
324 | * Look up the request in the local datastore. | ||
325 | * | ||
326 | * @param pr the pending request to process | ||
327 | * @param cont function to call at the end | ||
328 | * @param cont_cls closure for cont | ||
329 | */ | ||
330 | void | ||
331 | GSF_local_lookup_ (struct GSF_PendingRequest *pr, | ||
332 | GSF_LocalLookupContinuation cont, | ||
333 | void *cont_cls); | ||
325 | 334 | ||
326 | 335 | ||
327 | /** | 336 | /** |