diff options
-rw-r--r-- | src/include/gnunet_ats_service.h | 8 | ||||
-rw-r--r-- | src/include/gnunet_bandwidth_lib.h | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index 88d08fb72..88df7d0da 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -439,12 +439,14 @@ struct Session; | |||
439 | * and address preferences as determined by ATS. | 439 | * and address preferences as determined by ATS. |
440 | * | 440 | * |
441 | * @param cls closure | 441 | * @param cls closure |
442 | * @param address suggested address (including peer identity of the peer) | 442 | * @param peer for which we suggest an address, NULL if ATS connection died |
443 | * @param address suggested address (including peer identity of the peer), | ||
444 | * may be NULL to signal disconnect from peer | ||
443 | * @param session session to use, NULL to establish a new outgoing session | 445 | * @param session session to use, NULL to establish a new outgoing session |
444 | * @param bandwidth_out assigned outbound bandwidth for the connection, | 446 | * @param bandwidth_out assigned outbound bandwidth for the connection, |
445 | * 0 to disconnect | 447 | * 0 to signal disconnect |
446 | * @param bandwidth_in assigned inbound bandwidth for the connection, | 448 | * @param bandwidth_in assigned inbound bandwidth for the connection, |
447 | * 0 to disconnect | 449 | * 0 to signal disconnect |
448 | */ | 450 | */ |
449 | typedef void | 451 | typedef void |
450 | (*GNUNET_ATS_AddressSuggestionCallback) (void *cls, | 452 | (*GNUNET_ATS_AddressSuggestionCallback) (void *cls, |
diff --git a/src/include/gnunet_bandwidth_lib.h b/src/include/gnunet_bandwidth_lib.h index ad8f3a2b9..bbad562dc 100644 --- a/src/include/gnunet_bandwidth_lib.h +++ b/src/include/gnunet_bandwidth_lib.h | |||
@@ -135,6 +135,12 @@ struct GNUNET_BANDWIDTH_Tracker | |||
135 | 135 | ||
136 | 136 | ||
137 | /** | 137 | /** |
138 | * Convenience definition to use for 0-bandwidth. | ||
139 | */ | ||
140 | #define GNUNET_BANDWIDTH_ZERO GNUNET_BANDWIDTH_value_init (0) | ||
141 | |||
142 | |||
143 | /** | ||
138 | * Create a new bandwidth value. | 144 | * Create a new bandwidth value. |
139 | * | 145 | * |
140 | * @param bytes_per_second value to create | 146 | * @param bytes_per_second value to create |