aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_pr.c
diff options
context:
space:
mode:
authorWillow Liquorice <willow@howhill.com>2022-08-26 20:32:06 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-08-30 09:41:53 +0200
commite5f227e7c3335d41ebfd844e3b50468cac66f5ed (patch)
tree1b174c6b711aa406a90fbfdd66c4ca2679ced3f7 /src/fs/gnunet-service-fs_pr.c
parent7da03a5304bdfcbb794e6e2e9f41d4a8f13fc821 (diff)
downloadgnunet-e5f227e7c3335d41ebfd844e3b50468cac66f5ed.tar.gz
gnunet-e5f227e7c3335d41ebfd844e3b50468cac66f5ed.zip
-First pass through FS subsystem
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.c')
-rw-r--r--src/fs/gnunet-service-fs_pr.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c
index ee2dbca32..b938e3593 100644
--- a/src/fs/gnunet-service-fs_pr.c
+++ b/src/fs/gnunet-service-fs_pr.c
@@ -274,26 +274,6 @@ refresh_bloomfilter (enum GNUNET_BLOCK_Type type,
274} 274}
275 275
276 276
277/**
278 * Create a new pending request.
279 *
280 * @param options request options
281 * @param type type of the block that is being requested
282 * @param query key for the lookup
283 * @param target preferred target for the request, NULL for none
284 * @param bf_data raw data for bloom filter for known replies, can be NULL
285 * @param bf_size number of bytes in @a bf_data
286 * @param anonymity_level desired anonymity level
287 * @param priority maximum outgoing cumulative request priority to use
288 * @param ttl current time-to-live for the request
289 * @param sender_pid peer ID to use for the sender when forwarding, 0 for none
290 * @param origin_pid peer ID of origin of query (do not loop back)
291 * @param replies_seen hash codes of known local replies
292 * @param replies_seen_count size of the @a replies_seen array
293 * @param rh handle to call when we get a reply
294 * @param rh_cls closure for @a rh
295 * @return handle for the new pending request
296 */
297struct GSF_PendingRequest * 277struct GSF_PendingRequest *
298GSF_pending_request_create_ (enum GSF_PendingRequestOptions options, 278GSF_pending_request_create_ (enum GSF_PendingRequestOptions options,
299 enum GNUNET_BLOCK_Type type, 279 enum GNUNET_BLOCK_Type type,
@@ -455,14 +435,6 @@ GSF_pending_request_is_compatible_ (struct GSF_PendingRequest *pra,
455} 435}
456 436
457 437
458/**
459 * Update a given pending request with additional replies
460 * that have been seen.
461 *
462 * @param pr request to update
463 * @param replies_seen hash codes of replies that we've seen
464 * @param replies_seen_count size of the replies_seen array
465 */
466void 438void
467GSF_pending_request_update_ (struct GSF_PendingRequest *pr, 439GSF_pending_request_update_ (struct GSF_PendingRequest *pr,
468 const struct GNUNET_HashCode *replies_seen, 440 const struct GNUNET_HashCode *replies_seen,
@@ -714,12 +686,6 @@ GSF_pending_request_cancel_ (struct GSF_PendingRequest *pr, int full_cleanup)
714} 686}
715 687
716 688
717/**
718 * Iterate over all pending requests.
719 *
720 * @param it function to call for each request
721 * @param cls closure for @a it
722 */
723void 689void
724GSF_iterate_pending_requests_ (GSF_PendingRequestIterator it, void *cls) 690GSF_iterate_pending_requests_ (GSF_PendingRequestIterator it, void *cls)
725{ 691{