aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_bandwidth_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-03-04 11:25:27 +0000
committerChristian Grothoff <christian@grothoff.org>2014-03-04 11:25:27 +0000
commit6927a8b2ec77eb4403dab98ae7df8d9e882ba6ae (patch)
treee9696ed208a8ede853eef2ff32666f8ada177820 /src/include/gnunet_bandwidth_lib.h
parentaaa926133b701674bec880b813281fa197be7284 (diff)
downloadgnunet-6927a8b2ec77eb4403dab98ae7df8d9e882ba6ae.tar.gz
gnunet-6927a8b2ec77eb4403dab98ae7df8d9e882ba6ae.zip
-mmissing prototype
Diffstat (limited to 'src/include/gnunet_bandwidth_lib.h')
-rw-r--r--src/include/gnunet_bandwidth_lib.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/include/gnunet_bandwidth_lib.h b/src/include/gnunet_bandwidth_lib.h
index 2dde8b226..9bd037dfa 100644
--- a/src/include/gnunet_bandwidth_lib.h
+++ b/src/include/gnunet_bandwidth_lib.h
@@ -241,15 +241,24 @@ GNUNET_BANDWIDTH_tracker_init2 (struct GNUNET_BANDWIDTH_Tracker *av,
241 241
242 242
243/** 243/**
244 * Stop notifying about tracker updates and excess notifications
245 *
246 * @param av the respective trackers
247 */
248void
249GNUNET_BANDWIDTH_tracker_notification_stop (struct GNUNET_BANDWIDTH_Tracker *av);
250
251
252/**
244 * Notify the tracker that a certain number of bytes of bandwidth have 253 * Notify the tracker that a certain number of bytes of bandwidth have
245 * been consumed. Note that it is legal to consume bytes even if not 254 * been consumed. Note that it is legal to consume bytes even if not
246 * enough bandwidth is available (in that case, 255 * enough bandwidth is available (in that case,
247 * GNUNET_BANDWIDTH_tracker_get_delay may return non-zero delay values 256 * #GNUNET_BANDWIDTH_tracker_get_delay() may return non-zero delay values
248 * even for a size of zero for a while). 257 * even for a size of zero for a while).
249 * 258 *
250 * @param av tracker to update 259 * @param av tracker to update
251 * @param size number of bytes consumed 260 * @param size number of bytes consumed
252 * @return GNUNET_YES if this consumption is above the limit 261 * @return #GNUNET_YES if this consumption is above the limit
253 */ 262 */
254int 263int
255GNUNET_BANDWIDTH_tracker_consume (struct GNUNET_BANDWIDTH_Tracker *av, 264GNUNET_BANDWIDTH_tracker_consume (struct GNUNET_BANDWIDTH_Tracker *av,