diff options
-rw-r--r-- | src/include/gnunet_transport_service.h | 14 |
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! | ||
47 | enum 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 | |||
318 | void | 311 | void |
319 | GNUNET_TRANSPORT_set_traffic_metric (struct GNUNET_TRANSPORT_Handle *handle, | 312 | GNUNET_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 | ||