aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-15 14:27:34 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-15 14:27:34 +0000
commitbb6236cd072ab898256ac29f58c84add47c13666 (patch)
tree86deaafc41beb38cb950db514d3c4ebfdcdb17a9 /src/include
parent7df1fa12d8761e9a08a2aecc1611c398a1663b6f (diff)
downloadgnunet-bb6236cd072ab898256ac29f58c84add47c13666.tar.gz
gnunet-bb6236cd072ab898256ac29f58c84add47c13666.zip
clean up
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_transport_service.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index 0885ac565..d3b5d34a4 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -43,14 +43,6 @@ extern "C"
43 */ 43 */
44#define GNUNET_TRANSPORT_VERSION 0x00000000 44#define GNUNET_TRANSPORT_VERSION 0x00000000
45 45
46// FIXME-mwachs; move this into some src/transport/-internal header!
47enum TRAFFIC_METRIC_DIRECTION
48{
49 TM_SEND = 0,
50 TM_RECEIVE = 1,
51 TM_BOTH = 2
52};
53
54 46
55/** 47/**
56 * Function called by the transport for each received message. 48 * Function called by the transport for each received message.
@@ -295,7 +287,8 @@ GNUNET_TRANSPORT_check_neighbour_connected (struct GNUNET_TRANSPORT_Handle *hand
295 * 287 *
296 * @param handle transport handle 288 * @param handle transport handle
297 * @param peer the peer to set the metric for 289 * @param peer the peer to set the metric for
298 * @param direction can be: TM_SEND, TM_RECV, TM_BOTH 290 * @param inbound set inbound direction (GNUNET_YES or GNUNET_NO)
291 * @param outbound set outbound direction (GNUNET_YES or GNUNET_NO)
299 * @param ats the metric as ATS information 292 * @param ats the metric as ATS information
300 * @param ats_count the number of metrics 293 * @param ats_count the number of metrics
301 * 294 *
@@ -318,7 +311,8 @@ GNUNET_TRANSPORT_check_neighbour_connected (struct GNUNET_TRANSPORT_Handle *hand
318void 311void
319GNUNET_TRANSPORT_set_traffic_metric (struct GNUNET_TRANSPORT_Handle *handle, 312GNUNET_TRANSPORT_set_traffic_metric (struct GNUNET_TRANSPORT_Handle *handle,
320 const struct GNUNET_PeerIdentity *peer, 313 const struct GNUNET_PeerIdentity *peer,
321 int direction, 314 int inbound,
315 int outbound,
322 const struct GNUNET_ATS_Information *ats, 316 const struct GNUNET_ATS_Information *ats,
323 size_t ats_count); 317 size_t ats_count);
324 318