summaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-18 16:10:31 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-18 16:10:31 +0000
commit6cc556bed0898dcdb168248658574862920818da (patch)
tree1e4850a7756e0940142ff2009e0fabab1c7660bd /src/transport/test_plugin_transport.c
parent2bfa211933d6285ffbdc7d871e695838b5d08b9f (diff)
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.c15
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
env_receive (void *cls,
const struct GNUNET_PeerIdentity *peer,
const struct GNUNET_MessageHeader *message,
- const struct GNUNET_ATS_Information *ats,
- uint32_t ats_count,
struct Session * session,
const char *sender_address,
uint16_t sender_address_len)
@@ -485,6 +483,18 @@ env_session_end (void *cls,
static void
+env_update_metrics (void *cls,
+ const struct GNUNET_PeerIdentity *peer,
+ const char *address,
+ uint16_t address_len,
+ struct Session *session,
+ struct GNUNET_ATS_Information *ats,
+ uint32_t ats_count)
+{
+}
+
+
+static void
setup_plugin_environment ()
{
env.cfg = cfg;
@@ -496,6 +506,7 @@ setup_plugin_environment ()
env.receive = &env_receive;
env.notify_address = &env_notify_address;
env.get_address_type = &env_get_address_type;
+ env.update_address_metrics = &env_update_metrics;
env.get_our_hello = &env_get_our_hello;
env.session_end = &env_session_end;
}