aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_pr.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-10 09:36:50 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-10 09:36:50 +0000
commitfaecd2a496b5d356509b0b6b0157db34e8b3188e (patch)
treee5d54c0cb196a05e4a54031f8498e5ffe82bc3a9 /src/fs/gnunet-service-fs_pr.h
parent073c4a9ae448041fdc9a0683fed49d55ae61803e (diff)
downloadgnunet-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.h49
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 */
316void 306void
317GSF_handle_dht_reply_ (void *cls, 307GSF_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 */
318typedef 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 */
330void
331GSF_local_lookup_ (struct GSF_PendingRequest *pr,
332 GSF_LocalLookupContinuation cont,
333 void *cont_cls);
325 334
326 335
327/** 336/**