diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/ats/gnunet-service-ats_addresses.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.h')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.h | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h index f7dd98b1e..a18cce2c7 100644 --- a/src/ats/gnunet-service-ats_addresses.h +++ b/src/ats/gnunet-service-ats_addresses.h | |||
@@ -221,12 +221,14 @@ | |||
221 | /* | 221 | /* |
222 | * How long will address suggestions blocked after a suggestion | 222 | * How long will address suggestions blocked after a suggestion |
223 | */ | 223 | */ |
224 | #define ATS_BLOCKING_DELTA GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 100) | 224 | #define ATS_BLOCKING_DELTA GNUNET_TIME_relative_multiply ( \ |
225 | GNUNET_TIME_UNIT_MILLISECONDS, 100) | ||
225 | 226 | ||
226 | /** | 227 | /** |
227 | * Information provided by ATS normalization | 228 | * Information provided by ATS normalization |
228 | */ | 229 | */ |
229 | struct GAS_NormalizationInfo { | 230 | struct GAS_NormalizationInfo |
231 | { | ||
230 | /** | 232 | /** |
231 | * Next index to use in averaging queue | 233 | * Next index to use in averaging queue |
232 | */ | 234 | */ |
@@ -252,7 +254,8 @@ struct GAS_NormalizationInfo { | |||
252 | /** | 254 | /** |
253 | * Address with additional information | 255 | * Address with additional information |
254 | */ | 256 | */ |
255 | struct ATS_Address { | 257 | struct ATS_Address |
258 | { | ||
256 | /** | 259 | /** |
257 | * Peer ID this address is for. | 260 | * Peer ID this address is for. |
258 | */ | 261 | */ |
@@ -366,14 +369,14 @@ extern struct GNUNET_CONTAINER_MultiPeerMap *GSA_addresses; | |||
366 | * known and current performance information. | 369 | * known and current performance information. |
367 | */ | 370 | */ |
368 | void | 371 | void |
369 | GAS_addresses_init(void); | 372 | GAS_addresses_init (void); |
370 | 373 | ||
371 | 374 | ||
372 | /** | 375 | /** |
373 | * Shutdown address subsystem. | 376 | * Shutdown address subsystem. |
374 | */ | 377 | */ |
375 | void | 378 | void |
376 | GAS_addresses_done(void); | 379 | GAS_addresses_done (void); |
377 | 380 | ||
378 | 381 | ||
379 | /** | 382 | /** |
@@ -388,13 +391,13 @@ GAS_addresses_done(void); | |||
388 | * @param prop performance information for this address | 391 | * @param prop performance information for this address |
389 | */ | 392 | */ |
390 | void | 393 | void |
391 | GAS_addresses_add(const struct GNUNET_PeerIdentity *peer, | 394 | GAS_addresses_add (const struct GNUNET_PeerIdentity *peer, |
392 | const char *plugin_name, | 395 | const char *plugin_name, |
393 | const void *plugin_addr, | 396 | const void *plugin_addr, |
394 | size_t plugin_addr_len, | 397 | size_t plugin_addr_len, |
395 | uint32_t local_address_info, | 398 | uint32_t local_address_info, |
396 | uint32_t session_id, | 399 | uint32_t session_id, |
397 | const struct GNUNET_ATS_Properties *prop); | 400 | const struct GNUNET_ATS_Properties *prop); |
398 | 401 | ||
399 | 402 | ||
400 | /** | 403 | /** |
@@ -405,9 +408,9 @@ GAS_addresses_add(const struct GNUNET_PeerIdentity *peer, | |||
405 | * @param prop performance information for this address | 408 | * @param prop performance information for this address |
406 | */ | 409 | */ |
407 | void | 410 | void |
408 | GAS_addresses_update(const struct GNUNET_PeerIdentity *peer, | 411 | GAS_addresses_update (const struct GNUNET_PeerIdentity *peer, |
409 | uint32_t session_id, | 412 | uint32_t session_id, |
410 | const struct GNUNET_ATS_Properties *prop); | 413 | const struct GNUNET_ATS_Properties *prop); |
411 | 414 | ||
412 | 415 | ||
413 | /** | 416 | /** |
@@ -417,15 +420,15 @@ GAS_addresses_update(const struct GNUNET_PeerIdentity *peer, | |||
417 | * @param session_id session id, can never be 0 | 420 | * @param session_id session id, can never be 0 |
418 | */ | 421 | */ |
419 | void | 422 | void |
420 | GAS_addresses_destroy(const struct GNUNET_PeerIdentity *peer, | 423 | GAS_addresses_destroy (const struct GNUNET_PeerIdentity *peer, |
421 | uint32_t session_id); | 424 | uint32_t session_id); |
422 | 425 | ||
423 | 426 | ||
424 | /** | 427 | /** |
425 | * Remove all addresses. | 428 | * Remove all addresses. |
426 | */ | 429 | */ |
427 | void | 430 | void |
428 | GAS_addresses_destroy_all(void); | 431 | GAS_addresses_destroy_all (void); |
429 | 432 | ||
430 | 433 | ||
431 | /** | 434 | /** |
@@ -450,9 +453,12 @@ typedef void | |||
450 | size_t plugin_addr_len, | 453 | size_t plugin_addr_len, |
451 | const int address_active, | 454 | const int address_active, |
452 | const struct GNUNET_ATS_Properties *prop, | 455 | const struct GNUNET_ATS_Properties *prop, |
453 | enum GNUNET_HELLO_AddressInfo local_address_info, | 456 | enum GNUNET_HELLO_AddressInfo |
454 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 457 | local_address_info, |
455 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in); | 458 | struct GNUNET_BANDWIDTH_Value32NBO |
459 | bandwidth_out, | ||
460 | struct GNUNET_BANDWIDTH_Value32NBO | ||
461 | bandwidth_in); | ||
456 | 462 | ||
457 | 463 | ||
458 | /** | 464 | /** |
@@ -463,9 +469,9 @@ typedef void | |||
463 | * @param pi_it_cls the closure for @a pi_it | 469 | * @param pi_it_cls the closure for @a pi_it |
464 | */ | 470 | */ |
465 | void | 471 | void |
466 | GAS_addresses_get_peer_info(const struct GNUNET_PeerIdentity *peer, | 472 | GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, |
467 | GNUNET_ATS_PeerInfo_Iterator pi_it, | 473 | GNUNET_ATS_PeerInfo_Iterator pi_it, |
468 | void *pi_it_cls); | 474 | void *pi_it_cls); |
469 | 475 | ||
470 | 476 | ||
471 | /** | 477 | /** |
@@ -475,8 +481,8 @@ GAS_addresses_get_peer_info(const struct GNUNET_PeerIdentity *peer, | |||
475 | * @param alrm the request message | 481 | * @param alrm the request message |
476 | */ | 482 | */ |
477 | void | 483 | void |
478 | GAS_handle_request_address_list(struct GNUNET_SERVICE_Client *client, | 484 | GAS_handle_request_address_list (struct GNUNET_SERVICE_Client *client, |
479 | const struct AddressListRequestMessage *alrm); | 485 | const struct AddressListRequestMessage *alrm); |
480 | 486 | ||
481 | 487 | ||
482 | #endif | 488 | #endif |