aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-10 17:34:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-10 17:34:42 +0000
commite87e273ce5f864e20fcca02c34bef72de4fc00bd (patch)
tree14125cc08e325f9133d4a7a8b43b7de5f7fece94 /src/fs/gnunet-service-fs.h
parente253ed6e7e5ac2a113b6dbc762258f358c9ca5ae (diff)
downloadgnunet-e87e273ce5f864e20fcca02c34bef72de4fc00bd.tar.gz
gnunet-e87e273ce5f864e20fcca02c34bef72de4fc00bd.zip
load
Diffstat (limited to 'src/fs/gnunet-service-fs.h')
-rw-r--r--src/fs/gnunet-service-fs.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs.h b/src/fs/gnunet-service-fs.h
index db9de3cb8..a82206e9c 100644
--- a/src/fs/gnunet-service-fs.h
+++ b/src/fs/gnunet-service-fs.h
@@ -126,13 +126,34 @@ extern unsigned int GSF_cover_query_count;
126 */ 126 */
127extern unsigned int GSF_cover_content_count; 127extern unsigned int GSF_cover_content_count;
128 128
129
130/** 129/**
131 * Our block context. 130 * Our block context.
132 */ 131 */
133extern struct GNUNET_BLOCK_Context *GSF_block_ctx; 132extern struct GNUNET_BLOCK_Context *GSF_block_ctx;
134 133
135 134
135/**
136 * Test if the DATABASE (GET) load on this peer is too high
137 * to even consider processing the query at
138 * all.
139 *
140 * @return GNUNET_YES if the load is too high to do anything (load high)
141 * GNUNET_NO to process normally (load normal)
142 * GNUNET_SYSERR to process for free (load low)
143 */
144int
145GSF_test_get_load_too_high_ (uint32_t priority);
146
147
148/**
149 * We've just now completed a datastore request. Update our
150 * datastore load calculations.
151 *
152 * @param start time when the datastore request was issued
153 */
154void
155GSF_update_datastore_delay_ (struct GNUNET_TIME_Absolute start);
156
136 157
137 158
138#endif 159#endif