aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-03 17:40:54 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-03 17:40:54 +0000
commite8ee3b10972c452c29acf1bc00d9b39765205aa3 (patch)
tree8ac24717818591c2e3164eb20eac416778ce768a /src
parent799030df01f2306a804c5389dd936106c0a6dd42 (diff)
downloadgnunet-e8ee3b10972c452c29acf1bc00d9b39765205aa3.tar.gz
gnunet-e8ee3b10972c452c29acf1bc00d9b39765205aa3.zip
doxygen, new define
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_ats_service.h8
-rw-r--r--src/include/gnunet_bandwidth_lib.h6
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 */
449typedef void 451typedef 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