aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs.h')
-rw-r--r--src/fs/gnunet-service-fs.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/fs/gnunet-service-fs.h b/src/fs/gnunet-service-fs.h
index 661126f08..21a822c6d 100644
--- a/src/fs/gnunet-service-fs.h
+++ b/src/fs/gnunet-service-fs.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @file fs/gnunet-service-fs.h 22 * @file fs/gnunet-service-fs.h
@@ -48,7 +48,7 @@
48 * automatically (since if we don't use it, clearly the 48 * automatically (since if we don't use it, clearly the
49 * load must be going down). 49 * load must be going down).
50 */ 50 */
51#define DATASTORE_LOAD_AUTODECLINE GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 250) 51#define DATASTORE_LOAD_AUTODECLINE GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 250)
52 52
53/** 53/**
54 * Only the (mandatory) query is included. 54 * Only the (mandatory) query is included.
@@ -79,9 +79,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
79/** 79/**
80 * Message sent between peers asking for FS-content. 80 * Message sent between peers asking for FS-content.
81 */ 81 */
82struct GetMessage 82struct GetMessage {
83{
84
85 /** 83 /**
86 * Message type will be #GNUNET_MESSAGE_TYPE_FS_GET. 84 * Message type will be #GNUNET_MESSAGE_TYPE_FS_GET.
87 */ 85 */
@@ -136,8 +134,7 @@ struct GetMessage
136 * Message send by a peer that wants to be excluded 134 * Message send by a peer that wants to be excluded
137 * from migration for a while. 135 * from migration for a while.
138 */ 136 */
139struct MigrationStopMessage 137struct MigrationStopMessage {
140{
141 /** 138 /**
142 * Message type will be 139 * Message type will be
143 * GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP. 140 * GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP.
@@ -153,7 +150,6 @@ struct MigrationStopMessage
153 * How long should the block last? 150 * How long should the block last?
154 */ 151 */
155 struct GNUNET_TIME_RelativeNBO duration; 152 struct GNUNET_TIME_RelativeNBO duration;
156
157}; 153};
158GNUNET_NETWORK_STRUCT_END 154GNUNET_NETWORK_STRUCT_END
159 155
@@ -279,9 +275,9 @@ extern unsigned int GSF_datastore_queue_size;
279 * @param result final datastore lookup result 275 * @param result final datastore lookup result
280 */ 276 */
281void 277void
282GSF_consider_forwarding (void *cls, 278GSF_consider_forwarding(void *cls,
283 struct GSF_PendingRequest *pr, 279 struct GSF_PendingRequest *pr,
284 enum GNUNET_BLOCK_EvaluationResult result); 280 enum GNUNET_BLOCK_EvaluationResult result);
285 281
286 282
287/** 283/**
@@ -294,7 +290,7 @@ GSF_consider_forwarding (void *cls,
294 * #GNUNET_SYSERR to process for free (load low) 290 * #GNUNET_SYSERR to process for free (load low)
295 */ 291 */
296int 292int
297GSF_test_get_load_too_high_ (uint32_t priority); 293GSF_test_get_load_too_high_(uint32_t priority);
298 294
299 295
300/** 296/**
@@ -304,7 +300,7 @@ GSF_test_get_load_too_high_ (uint32_t priority);
304 * @param start time when the datastore request was issued 300 * @param start time when the datastore request was issued
305 */ 301 */
306void 302void
307GSF_update_datastore_delay_ (struct GNUNET_TIME_Absolute start); 303GSF_update_datastore_delay_(struct GNUNET_TIME_Absolute start);
308 304
309 305
310#endif 306#endif