diff options
author | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
commit | d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch) | |
tree | 9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/ats/gnunet-service-ats_addresses.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.h')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.h | 73 |
1 files changed, 35 insertions, 38 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h index c9ad9a45d..f7dd98b1e 100644 --- a/src/ats/gnunet-service-ats_addresses.h +++ b/src/ats/gnunet-service-ats_addresses.h | |||
@@ -1,19 +1,19 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2011-2014 GNUnet e.V. | 3 | Copyright (C) 2011-2014 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
7 | by the Free Software Foundation, either version 3 of the License, | 7 | by the Free Software Foundation, either version 3 of the License, |
8 | or (at your option) any later version. | 8 | or (at your option) any later version. |
9 | 9 | ||
10 | GNUnet is distributed in the hope that it will be useful, but | 10 | GNUnet is distributed in the hope that it will be useful, but |
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 | */ |
@@ -226,8 +226,7 @@ | |||
226 | /** | 226 | /** |
227 | * Information provided by ATS normalization | 227 | * Information provided by ATS normalization |
228 | */ | 228 | */ |
229 | struct GAS_NormalizationInfo | 229 | struct GAS_NormalizationInfo { |
230 | { | ||
231 | /** | 230 | /** |
232 | * Next index to use in averaging queue | 231 | * Next index to use in averaging queue |
233 | */ | 232 | */ |
@@ -253,8 +252,7 @@ struct GAS_NormalizationInfo | |||
253 | /** | 252 | /** |
254 | * Address with additional information | 253 | * Address with additional information |
255 | */ | 254 | */ |
256 | struct ATS_Address | 255 | struct ATS_Address { |
257 | { | ||
258 | /** | 256 | /** |
259 | * Peer ID this address is for. | 257 | * Peer ID this address is for. |
260 | */ | 258 | */ |
@@ -350,11 +348,10 @@ struct ATS_Address | |||
350 | */ | 348 | */ |
351 | struct GAS_NormalizationInfo norm_utilization_in; | 349 | struct GAS_NormalizationInfo norm_utilization_in; |
352 | 350 | ||
353 | /** | 351 | /** |
354 | * Normalized utilization outbound for this address. | 352 | * Normalized utilization outbound for this address. |
355 | */ | 353 | */ |
356 | struct GAS_NormalizationInfo norm_utilization_out; | 354 | struct GAS_NormalizationInfo norm_utilization_out; |
357 | |||
358 | }; | 355 | }; |
359 | 356 | ||
360 | 357 | ||
@@ -369,14 +366,14 @@ extern struct GNUNET_CONTAINER_MultiPeerMap *GSA_addresses; | |||
369 | * known and current performance information. | 366 | * known and current performance information. |
370 | */ | 367 | */ |
371 | void | 368 | void |
372 | GAS_addresses_init (void); | 369 | GAS_addresses_init(void); |
373 | 370 | ||
374 | 371 | ||
375 | /** | 372 | /** |
376 | * Shutdown address subsystem. | 373 | * Shutdown address subsystem. |
377 | */ | 374 | */ |
378 | void | 375 | void |
379 | GAS_addresses_done (void); | 376 | GAS_addresses_done(void); |
380 | 377 | ||
381 | 378 | ||
382 | /** | 379 | /** |
@@ -391,13 +388,13 @@ GAS_addresses_done (void); | |||
391 | * @param prop performance information for this address | 388 | * @param prop performance information for this address |
392 | */ | 389 | */ |
393 | void | 390 | void |
394 | GAS_addresses_add (const struct GNUNET_PeerIdentity *peer, | 391 | GAS_addresses_add(const struct GNUNET_PeerIdentity *peer, |
395 | const char *plugin_name, | 392 | const char *plugin_name, |
396 | const void *plugin_addr, | 393 | const void *plugin_addr, |
397 | size_t plugin_addr_len, | 394 | size_t plugin_addr_len, |
398 | uint32_t local_address_info, | 395 | uint32_t local_address_info, |
399 | uint32_t session_id, | 396 | uint32_t session_id, |
400 | const struct GNUNET_ATS_Properties *prop); | 397 | const struct GNUNET_ATS_Properties *prop); |
401 | 398 | ||
402 | 399 | ||
403 | /** | 400 | /** |
@@ -408,9 +405,9 @@ GAS_addresses_add (const struct GNUNET_PeerIdentity *peer, | |||
408 | * @param prop performance information for this address | 405 | * @param prop performance information for this address |
409 | */ | 406 | */ |
410 | void | 407 | void |
411 | GAS_addresses_update (const struct GNUNET_PeerIdentity *peer, | 408 | GAS_addresses_update(const struct GNUNET_PeerIdentity *peer, |
412 | uint32_t session_id, | 409 | uint32_t session_id, |
413 | const struct GNUNET_ATS_Properties *prop); | 410 | const struct GNUNET_ATS_Properties *prop); |
414 | 411 | ||
415 | 412 | ||
416 | /** | 413 | /** |
@@ -420,15 +417,15 @@ GAS_addresses_update (const struct GNUNET_PeerIdentity *peer, | |||
420 | * @param session_id session id, can never be 0 | 417 | * @param session_id session id, can never be 0 |
421 | */ | 418 | */ |
422 | void | 419 | void |
423 | GAS_addresses_destroy (const struct GNUNET_PeerIdentity *peer, | 420 | GAS_addresses_destroy(const struct GNUNET_PeerIdentity *peer, |
424 | uint32_t session_id); | 421 | uint32_t session_id); |
425 | 422 | ||
426 | 423 | ||
427 | /** | 424 | /** |
428 | * Remove all addresses. | 425 | * Remove all addresses. |
429 | */ | 426 | */ |
430 | void | 427 | void |
431 | GAS_addresses_destroy_all (void); | 428 | GAS_addresses_destroy_all(void); |
432 | 429 | ||
433 | 430 | ||
434 | /** | 431 | /** |
@@ -466,9 +463,9 @@ typedef void | |||
466 | * @param pi_it_cls the closure for @a pi_it | 463 | * @param pi_it_cls the closure for @a pi_it |
467 | */ | 464 | */ |
468 | void | 465 | void |
469 | GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, | 466 | GAS_addresses_get_peer_info(const struct GNUNET_PeerIdentity *peer, |
470 | GNUNET_ATS_PeerInfo_Iterator pi_it, | 467 | GNUNET_ATS_PeerInfo_Iterator pi_it, |
471 | void *pi_it_cls); | 468 | void *pi_it_cls); |
472 | 469 | ||
473 | 470 | ||
474 | /** | 471 | /** |
@@ -478,8 +475,8 @@ GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, | |||
478 | * @param alrm the request message | 475 | * @param alrm the request message |
479 | */ | 476 | */ |
480 | void | 477 | void |
481 | GAS_handle_request_address_list (struct GNUNET_SERVICE_Client *client, | 478 | GAS_handle_request_address_list(struct GNUNET_SERVICE_Client *client, |
482 | const struct AddressListRequestMessage *alrm); | 479 | const struct AddressListRequestMessage *alrm); |
483 | 480 | ||
484 | 481 | ||
485 | #endif | 482 | #endif |