aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_bandwidth_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-02-02 17:51:46 +0000
committerChristian Grothoff <christian@grothoff.org>2014-02-02 17:51:46 +0000
commitfe56554d28b2e277cde55f6146a54ce158340405 (patch)
treec0d1adcb3bf3487c1aaa18591864524011dfaaef /src/include/gnunet_bandwidth_lib.h
parent769c3e9561ea577ca167c74286a5cd092510a5cb (diff)
downloadgnunet-fe56554d28b2e277cde55f6146a54ce158340405.tar.gz
gnunet-fe56554d28b2e277cde55f6146a54ce158340405.zip
add API for #3296
Diffstat (limited to 'src/include/gnunet_bandwidth_lib.h')
-rw-r--r--src/include/gnunet_bandwidth_lib.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/include/gnunet_bandwidth_lib.h b/src/include/gnunet_bandwidth_lib.h
index a8ebaae3e..a97a318c7 100644
--- a/src/include/gnunet_bandwidth_lib.h
+++ b/src/include/gnunet_bandwidth_lib.h
@@ -59,8 +59,8 @@ GNUNET_NETWORK_STRUCT_END
59 * 59 *
60 * @param cls a closure to pass 60 * @param cls a closure to pass
61 */ 61 */
62void 62typedef void
63typedef (*GNUNET_BANDWIDTH_tracker_update_cb) (void *cls); 63(*GNUNET_BANDWIDTH_tracker_update_cb) (void *cls);
64 64
65 65
66/** 66/**
@@ -72,8 +72,15 @@ typedef (*GNUNET_BANDWIDTH_tracker_update_cb) (void *cls);
72 */ 72 */
73struct GNUNET_BANDWIDTH_Tracker 73struct GNUNET_BANDWIDTH_Tracker
74{ 74{
75 /**
76 * Closure for @e update_cb.
77 */
75 void *update_cb_cls; 78 void *update_cb_cls;
76 79
80 /**
81 * Function we call if the tracker's bandwidth is increased and a
82 * previously returned timeout might now expire earlier.
83 */
77 GNUNET_BANDWIDTH_tracker_update_cb update_cb; 84 GNUNET_BANDWIDTH_tracker_update_cb update_cb;
78 85
79 /** 86 /**