diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-26 16:27:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-26 16:27:05 +0000 |
commit | bf4a9d8364675b34ac18d505e508006e2b773670 (patch) | |
tree | a3bf1d6965c9f7fa4215d2377949f950b71ba087 /src/fs/gnunet-service-fs_pr.h | |
parent | 661869cea600301846e9d78475c8c3b4dbde225a (diff) | |
download | gnunet-bf4a9d8364675b34ac18d505e508006e2b773670.tar.gz gnunet-bf4a9d8364675b34ac18d505e508006e2b773670.zip |
fixing fs
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.h')
-rw-r--r-- | src/fs/gnunet-service-fs_pr.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/fs/gnunet-service-fs_pr.h b/src/fs/gnunet-service-fs_pr.h index 2f828e281..1e71aa7ee 100644 --- a/src/fs/gnunet-service-fs_pr.h +++ b/src/fs/gnunet-service-fs_pr.h | |||
@@ -94,12 +94,12 @@ struct GSF_PendingRequestData | |||
94 | /** | 94 | /** |
95 | * Fields for the plan module to track a DLL with the request. | 95 | * Fields for the plan module to track a DLL with the request. |
96 | */ | 96 | */ |
97 | struct GSF_RequestPlan *rp_head; | 97 | struct GSF_RequestPlanReference *rpr_head; |
98 | 98 | ||
99 | /** | 99 | /** |
100 | * Fields for the plan module to track a DLL with the request. | 100 | * Fields for the plan module to track a DLL with the request. |
101 | */ | 101 | */ |
102 | struct GSF_RequestPlan *rp_tail; | 102 | struct GSF_RequestPlanReference *rpr_tail; |
103 | 103 | ||
104 | /** | 104 | /** |
105 | * Current TTL for the request. | 105 | * Current TTL for the request. |
@@ -242,6 +242,20 @@ GSF_pending_request_get_data_ (struct GSF_PendingRequest *pr); | |||
242 | 242 | ||
243 | 243 | ||
244 | /** | 244 | /** |
245 | * Test if two pending requests are compatible (would generate | ||
246 | * the same query modulo filters and should thus be processed | ||
247 | * jointly). | ||
248 | * | ||
249 | * @param pra a pending request | ||
250 | * @param pra another pending request | ||
251 | * @return GNUNET_OK if the requests are compatible | ||
252 | */ | ||
253 | int | ||
254 | GSF_pending_request_is_compatible_ (struct GSF_PendingRequest *pra, | ||
255 | struct GSF_PendingRequest *prb); | ||
256 | |||
257 | |||
258 | /** | ||
245 | * Generate the message corresponding to the given pending request for | 259 | * Generate the message corresponding to the given pending request for |
246 | * transmission to other peers (or at least determine its size). | 260 | * transmission to other peers (or at least determine its size). |
247 | * | 261 | * |
@@ -260,9 +274,11 @@ GSF_pending_request_get_message_ (struct GSF_PendingRequest *pr, | |||
260 | * Explicitly cancel a pending request. | 274 | * Explicitly cancel a pending request. |
261 | * | 275 | * |
262 | * @param pr request to cancel | 276 | * @param pr request to cancel |
277 | * @param full_cleanup fully purge the request | ||
263 | */ | 278 | */ |
264 | void | 279 | void |
265 | GSF_pending_request_cancel_ (struct GSF_PendingRequest *pr); | 280 | GSF_pending_request_cancel_ (struct GSF_PendingRequest *pr, |
281 | int full_cleanup); | ||
266 | 282 | ||
267 | 283 | ||
268 | /** | 284 | /** |