aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_addresses.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
commitc4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch)
treecac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/ats/gnunet-service-ats_addresses.h
parentfbb71d527c7d6babf269a8fefce1db291b9f7068 (diff)
downloadgnunet-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.h58
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 */
229struct GAS_NormalizationInfo { 230struct 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 */
255struct ATS_Address { 257struct 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 */
368void 371void
369GAS_addresses_init(void); 372GAS_addresses_init (void);
370 373
371 374
372/** 375/**
373 * Shutdown address subsystem. 376 * Shutdown address subsystem.
374 */ 377 */
375void 378void
376GAS_addresses_done(void); 379GAS_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 */
390void 393void
391GAS_addresses_add(const struct GNUNET_PeerIdentity *peer, 394GAS_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 */
407void 410void
408GAS_addresses_update(const struct GNUNET_PeerIdentity *peer, 411GAS_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 */
419void 422void
420GAS_addresses_destroy(const struct GNUNET_PeerIdentity *peer, 423GAS_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 */
427void 430void
428GAS_addresses_destroy_all(void); 431GAS_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 */
465void 471void
466GAS_addresses_get_peer_info(const struct GNUNET_PeerIdentity *peer, 472GAS_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 */
477void 483void
478GAS_handle_request_address_list(struct GNUNET_SERVICE_Client *client, 484GAS_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