aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-07-06 13:24:20 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-07-06 13:24:20 +0000
commit56389a7d277b05c9c2968b7ebd529a12f8be15eb (patch)
tree693ef3440c9db0a2c0662d321f91fcea166176fc /src/transport/gnunet-service-transport_neighbours.h
parent88d047688f2aa11526316fdeaedb4c607bba3cf1 (diff)
downloadgnunet-56389a7d277b05c9c2968b7ebd529a12f8be15eb.tar.gz
gnunet-56389a7d277b05c9c2968b7ebd529a12f8be15eb.zip
- implementation for mantis 0002485
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h
index 18afcafc5..d137c311d 100644
--- a/src/transport/gnunet-service-transport_neighbours.h
+++ b/src/transport/gnunet-service-transport_neighbours.h
@@ -29,6 +29,7 @@
29#include "gnunet_statistics_service.h" 29#include "gnunet_statistics_service.h"
30#include "gnunet_transport_service.h" 30#include "gnunet_transport_service.h"
31#include "gnunet_transport_plugin.h" 31#include "gnunet_transport_plugin.h"
32#include "transport.h"
32#include "gnunet_util_lib.h" 33#include "gnunet_util_lib.h"
33 34
34// TODO: 35// TODO:
@@ -46,7 +47,7 @@
46 */ 47 */
47void 48void
48GST_neighbours_start (void *cls, 49GST_neighbours_start (void *cls,
49 GNUNET_TRANSPORT_NotifyConnect connect_cb, 50 NotifyConnect connect_cb,
50 GNUNET_TRANSPORT_NotifyDisconnect disconnect_cb, 51 GNUNET_TRANSPORT_NotifyDisconnect disconnect_cb,
51 GNUNET_TRANSPORT_PeerIterateCallback peer_address_cb); 52 GNUNET_TRANSPORT_PeerIterateCallback peer_address_cb);
52 53
@@ -170,6 +171,8 @@ GST_neighbours_force_disconnect (const struct GNUNET_PeerIdentity *target);
170 * @param ats performance data 171 * @param ats performance data
171 * @param ats_count number of entries in ats (including 0-termination) 172 * @param ats_count number of entries in ats (including 0-termination)
172 * @param address the address (or NULL) 173 * @param address the address (or NULL)
174 * @param bandwidth_in inbound quota in NBO
175 * @param bandwidth_out outbound quota in NBO
173 */ 176 */
174typedef void (*GST_NeighbourIterator) (void *cls, 177typedef void (*GST_NeighbourIterator) (void *cls,
175 const struct GNUNET_PeerIdentity * 178 const struct GNUNET_PeerIdentity *
@@ -177,7 +180,9 @@ typedef void (*GST_NeighbourIterator) (void *cls,
177 const struct GNUNET_ATS_Information * 180 const struct GNUNET_ATS_Information *
178 ats, uint32_t ats_count, 181 ats, uint32_t ats_count,
179 const struct GNUNET_HELLO_Address * 182 const struct GNUNET_HELLO_Address *
180 address); 183 address,
184 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
185 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out);
181 186
182 187
183/** 188/**