diff options
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r-- | src/include/gnunet_ats_service.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index 8c9be13d4..ecbdd2f70 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -448,7 +448,9 @@ struct Session; | |||
448 | * @param ats_count number of performance records in 'ats' | 448 | * @param ats_count number of performance records in 'ats' |
449 | */ | 449 | */ |
450 | typedef void (*GNUNET_ATS_AddressSuggestionCallback) (void *cls, | 450 | typedef void (*GNUNET_ATS_AddressSuggestionCallback) (void *cls, |
451 | const struct GNUNET_HELLO_Address *address, | 451 | const struct |
452 | GNUNET_HELLO_Address * | ||
453 | address, | ||
452 | struct Session * session, | 454 | struct Session * session, |
453 | struct | 455 | struct |
454 | GNUNET_BANDWIDTH_Value32NBO | 456 | GNUNET_BANDWIDTH_Value32NBO |
@@ -504,7 +506,7 @@ GNUNET_ATS_suggest_address (struct GNUNET_ATS_SchedulingHandle *sh, | |||
504 | */ | 506 | */ |
505 | void | 507 | void |
506 | GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh, | 508 | GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh, |
507 | const struct GNUNET_PeerIdentity *peer); | 509 | const struct GNUNET_PeerIdentity *peer); |
508 | 510 | ||
509 | /** | 511 | /** |
510 | * We have updated performance statistics for a given address. Note | 512 | * We have updated performance statistics for a given address. Note |
@@ -522,7 +524,7 @@ GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh, | |||
522 | */ | 524 | */ |
523 | void | 525 | void |
524 | GNUNET_ATS_address_update (struct GNUNET_ATS_SchedulingHandle *sh, | 526 | GNUNET_ATS_address_update (struct GNUNET_ATS_SchedulingHandle *sh, |
525 | const struct GNUNET_HELLO_Address *address, | 527 | const struct GNUNET_HELLO_Address *address, |
526 | struct Session *session, | 528 | struct Session *session, |
527 | const struct GNUNET_ATS_Information *ats, | 529 | const struct GNUNET_ATS_Information *ats, |
528 | uint32_t ats_count); | 530 | uint32_t ats_count); |
@@ -540,8 +542,7 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_SchedulingHandle *sh, | |||
540 | void | 542 | void |
541 | GNUNET_ATS_address_in_use (struct GNUNET_ATS_SchedulingHandle *sh, | 543 | GNUNET_ATS_address_in_use (struct GNUNET_ATS_SchedulingHandle *sh, |
542 | const struct GNUNET_HELLO_Address *address, | 544 | const struct GNUNET_HELLO_Address *address, |
543 | struct Session *session, | 545 | struct Session *session, int in_use); |
544 | int in_use); | ||
545 | 546 | ||
546 | /** | 547 | /** |
547 | * A session got destroyed, stop including it as a valid address. | 548 | * A session got destroyed, stop including it as a valid address. |
@@ -553,7 +554,7 @@ GNUNET_ATS_address_in_use (struct GNUNET_ATS_SchedulingHandle *sh, | |||
553 | void | 554 | void |
554 | GNUNET_ATS_address_destroyed (struct GNUNET_ATS_SchedulingHandle *sh, | 555 | GNUNET_ATS_address_destroyed (struct GNUNET_ATS_SchedulingHandle *sh, |
555 | const struct GNUNET_HELLO_Address *address, | 556 | const struct GNUNET_HELLO_Address *address, |
556 | struct Session *session); | 557 | struct Session *session); |
557 | 558 | ||
558 | 559 | ||
559 | /* ******************************** Performance API ***************************** */ | 560 | /* ******************************** Performance API ***************************** */ |
@@ -575,7 +576,9 @@ struct GNUNET_ATS_PerformanceHandle; | |||
575 | * @param ats_count number of performance records in 'ats' | 576 | * @param ats_count number of performance records in 'ats' |
576 | */ | 577 | */ |
577 | typedef void (*GNUNET_ATS_PeerInformationCallback) (void *cls, | 578 | typedef void (*GNUNET_ATS_PeerInformationCallback) (void *cls, |
578 | const struct GNUNET_HELLO_Address *address, | 579 | const struct |
580 | GNUNET_HELLO_Address * | ||
581 | address, | ||
579 | struct | 582 | struct |
580 | GNUNET_BANDWIDTH_Value32NBO | 583 | GNUNET_BANDWIDTH_Value32NBO |
581 | bandwidth_out, | 584 | bandwidth_out, |