summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-30 17:41:15 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-30 17:41:15 +0000
commit40826ec2467ee0e6e4b89c0d073aebf5af99099c (patch)
tree91b16194ec06f5116b2536079a004bf2e1253103 /src/transport/transport-testing.c
parent93d4605e1b03c80e66892e49f83ce61dddd48fd0 (diff)
converting transport tests to hello_get API
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r--src/transport/transport-testing.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index defafbbc6..c0775a135 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -508,10 +508,11 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct GNUNET_TRANSPORT_TESTING_Handle *tth
GNUNET_TRANSPORT_TESTING_stop_peer (p);
return NULL;
}
- p->ghh = GNUNET_TRANSPORT_get_hello (p->cfg,
- &get_hello,
+ p->ghh = GNUNET_TRANSPORT_hello_get (p->cfg,
+ GNUNET_TRANSPORT_AC_ANY,
+ &get_hello,
p);
- GNUNET_assert (p->ghh != NULL);
+ GNUNET_assert (NULL != p->ghh);
return p;
}
@@ -539,7 +540,7 @@ GNUNET_TRANSPORT_TESTING_restart_peer (struct GNUNET_TRANSPORT_TESTING_PeerConte
GNUNET_i2s (&p->id));
if (NULL != p->ghh)
{
- GNUNET_TRANSPORT_get_hello_cancel (p->ghh);
+ GNUNET_TRANSPORT_hello_get_cancel (p->ghh);
p->ghh = NULL;
}
if (NULL != p->th)
@@ -603,7 +604,8 @@ GNUNET_TRANSPORT_TESTING_restart_peer (struct GNUNET_TRANSPORT_TESTING_PeerConte
NULL);
GNUNET_assert (NULL != p->th);
p->ats = GNUNET_ATS_connectivity_init (p->cfg);
- p->ghh = GNUNET_TRANSPORT_get_hello (p->cfg,
+ p->ghh = GNUNET_TRANSPORT_hello_get (p->cfg,
+ GNUNET_TRANSPORT_AC_ANY,
&get_hello,
p);
GNUNET_assert (NULL != p->ghh);
@@ -632,7 +634,7 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_PeerContext
}
if (NULL != p->ghh)
{
- GNUNET_TRANSPORT_get_hello_cancel (p->ghh);
+ GNUNET_TRANSPORT_hello_get_cancel (p->ghh);
p->ghh = NULL;
}
if (NULL != p->tmh)