aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-31 21:23:23 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-31 21:23:23 +0000
commita78990b412db2c0ead2da8061c4f454f068991d1 (patch)
tree2e87adae62fd1ca3cd5a9f4c69248986f78bb106 /src/fs/gnunet-service-fs.h
parent406c7d2d2d126c994a1fff13470b1f96439c6f9d (diff)
downloadgnunet-a78990b412db2c0ead2da8061c4f454f068991d1.tar.gz
gnunet-a78990b412db2c0ead2da8061c4f454f068991d1.zip
converting FS to new MQ-based core API
Diffstat (limited to 'src/fs/gnunet-service-fs.h')
-rw-r--r--src/fs/gnunet-service-fs.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/fs/gnunet-service-fs.h b/src/fs/gnunet-service-fs.h
index 92cb4088e..2a0f7ba29 100644
--- a/src/fs/gnunet-service-fs.h
+++ b/src/fs/gnunet-service-fs.h
@@ -223,6 +223,10 @@ extern struct GNUNET_TIME_Relative GSF_avg_latency;
223 */ 223 */
224extern struct GNUNET_ATS_PerformanceHandle *GSF_ats; 224extern struct GNUNET_ATS_PerformanceHandle *GSF_ats;
225 225
226/**
227 * Identity of this peer.
228 */
229extern struct GNUNET_PeerIdentity GSF_my_id;
226 230
227/** 231/**
228 * Typical priorities we're seeing from other peers right now. Since 232 * Typical priorities we're seeing from other peers right now. Since
@@ -265,13 +269,29 @@ extern unsigned int GSF_datastore_queue_size;
265 269
266 270
267/** 271/**
272 * Function to be called after we're done processing
273 * replies from the local lookup. If the result status
274 * code indicates that there may be more replies, plan
275 * forwarding the request.
276 *
277 * @param cls closure (NULL)
278 * @param pr the pending request we were processing
279 * @param result final datastore lookup result
280 */
281void
282GSF_consider_forwarding (void *cls,
283 struct GSF_PendingRequest *pr,
284 enum GNUNET_BLOCK_EvaluationResult result);
285
286
287/**
268 * Test if the DATABASE (GET) load on this peer is too high 288 * Test if the DATABASE (GET) load on this peer is too high
269 * to even consider processing the query at 289 * to even consider processing the query at
270 * all. 290 * all.
271 * 291 *
272 * @return GNUNET_YES if the load is too high to do anything (load high) 292 * @return #GNUNET_YES if the load is too high to do anything (load high)
273 * GNUNET_NO to process normally (load normal) 293 * #GNUNET_NO to process normally (load normal)
274 * GNUNET_SYSERR to process for free (load low) 294 * #GNUNET_SYSERR to process for free (load low)
275 */ 295 */
276int 296int
277GSF_test_get_load_too_high_ (uint32_t priority); 297GSF_test_get_load_too_high_ (uint32_t priority);