diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-02-02 17:51:46 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-02-02 17:51:46 +0000 |
commit | fe56554d28b2e277cde55f6146a54ce158340405 (patch) | |
tree | c0d1adcb3bf3487c1aaa18591864524011dfaaef /src/include/gnunet_bandwidth_lib.h | |
parent | 769c3e9561ea577ca167c74286a5cd092510a5cb (diff) | |
download | gnunet-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.h | 11 |
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 | */ |
62 | void | 62 | typedef void |
63 | typedef (*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 | */ |
73 | struct GNUNET_BANDWIDTH_Tracker | 73 | struct 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 | /** |