diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-18 16:10:31 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-18 16:10:31 +0000 |
commit | 6cc556bed0898dcdb168248658574862920818da (patch) | |
tree | 1e4850a7756e0940142ff2009e0fabab1c7660bd /src/transport/test_plugin_transport.c | |
parent | 2bfa211933d6285ffbdc7d871e695838b5d08b9f (diff) | |
download | gnunet-6cc556bed0898dcdb168248658574862920818da.tar.gz gnunet-6cc556bed0898dcdb168248658574862920818da.zip |
transport plugin api change: split of address receive and ats updates
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r-- | src/transport/test_plugin_transport.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 7fcbe9d63..3c4c6f624 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -292,8 +292,6 @@ static struct GNUNET_TIME_Relative | |||
292 | env_receive (void *cls, | 292 | env_receive (void *cls, |
293 | const struct GNUNET_PeerIdentity *peer, | 293 | const struct GNUNET_PeerIdentity *peer, |
294 | const struct GNUNET_MessageHeader *message, | 294 | const struct GNUNET_MessageHeader *message, |
295 | const struct GNUNET_ATS_Information *ats, | ||
296 | uint32_t ats_count, | ||
297 | struct Session * session, | 295 | struct Session * session, |
298 | const char *sender_address, | 296 | const char *sender_address, |
299 | uint16_t sender_address_len) | 297 | uint16_t sender_address_len) |
@@ -485,6 +483,18 @@ env_session_end (void *cls, | |||
485 | 483 | ||
486 | 484 | ||
487 | static void | 485 | static void |
486 | env_update_metrics (void *cls, | ||
487 | const struct GNUNET_PeerIdentity *peer, | ||
488 | const char *address, | ||
489 | uint16_t address_len, | ||
490 | struct Session *session, | ||
491 | struct GNUNET_ATS_Information *ats, | ||
492 | uint32_t ats_count) | ||
493 | { | ||
494 | } | ||
495 | |||
496 | |||
497 | static void | ||
488 | setup_plugin_environment () | 498 | setup_plugin_environment () |
489 | { | 499 | { |
490 | env.cfg = cfg; | 500 | env.cfg = cfg; |
@@ -496,6 +506,7 @@ setup_plugin_environment () | |||
496 | env.receive = &env_receive; | 506 | env.receive = &env_receive; |
497 | env.notify_address = &env_notify_address; | 507 | env.notify_address = &env_notify_address; |
498 | env.get_address_type = &env_get_address_type; | 508 | env.get_address_type = &env_get_address_type; |
509 | env.update_address_metrics = &env_update_metrics; | ||
499 | env.get_our_hello = &env_get_our_hello; | 510 | env.get_our_hello = &env_get_our_hello; |
500 | env.session_end = &env_session_end; | 511 | env.session_end = &env_session_end; |
501 | } | 512 | } |