aboutsummaryrefslogtreecommitdiff
path: root/src/ats-tool
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-25 16:06:07 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-25 16:06:07 +0000
commit4596a20eb4c61cf84e3a88a881597ba05114d482 (patch)
tree4659b0eac3f0d4ee862516e59372c0c568b98ffd /src/ats-tool
parentcc67bae38c54cbaf2122ee3aa0762e7f2cb04edf (diff)
ats api change
Diffstat (limited to 'src/ats-tool')
-rw-r--r--src/ats-tool/gnunet-ats.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/ats-tool/gnunet-ats.c b/src/ats-tool/gnunet-ats.c
index 20ce9700b7..68e765ca95 100644
--- a/src/ats-tool/gnunet-ats.c
+++ b/src/ats-tool/gnunet-ats.c
@@ -221,18 +221,12 @@ void transport_addr_to_str_cb (void *cls, const char *address)
}
void ats_perf_cb (void *cls,
- const struct
- GNUNET_HELLO_Address *
- address,
- struct
- GNUNET_BANDWIDTH_Value32NBO
- bandwidth_out,
- struct
- GNUNET_BANDWIDTH_Value32NBO
- bandwidth_in,
- const struct
- GNUNET_ATS_Information *
- ats, uint32_t ats_count)
+ const struct GNUNET_HELLO_Address *address,
+ unsigned int active,
+ struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
+ struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
+ const struct GNUNET_ATS_Information *ats,
+ uint32_t ats_count)
{
struct PendingResolutions * pr;
@@ -373,7 +367,7 @@ void testservice_ats (void *cls,
}
if (op_list_all)
{
- ph = GNUNET_ATS_performance_init (cfg, NULL, NULL);
+ ph = GNUNET_ATS_performance_init (cfg, NULL, NULL, NULL, NULL);
if (NULL == ph)
{
fprintf (stderr, _("Cannot connect to ATS service, exiting...\n"));
@@ -393,7 +387,7 @@ void testservice_ats (void *cls,
}
else if (op_list_used)
{
- ph = GNUNET_ATS_performance_init (cfg, NULL, NULL);
+ ph = GNUNET_ATS_performance_init (cfg, NULL, NULL, NULL, NULL);
if (NULL == ph)
fprintf (stderr, _("Cannot connect to ATS service, exiting...\n"));
@@ -410,7 +404,7 @@ void testservice_ats (void *cls,
}
else if (op_monitor)
{
- ph = GNUNET_ATS_performance_init (cfg, ats_perf_cb, NULL);
+ ph = GNUNET_ATS_performance_init (cfg, NULL, NULL, ats_perf_cb, NULL);
if (NULL == ph)
fprintf (stderr, _("Cannot connect to ATS service, exiting...\n"));
end_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &end, NULL);
@@ -435,7 +429,7 @@ void testservice_ats (void *cls,
}
/* set */
- ph = GNUNET_ATS_performance_init (cfg, NULL, NULL);
+ ph = GNUNET_ATS_performance_init (cfg, NULL, NULL, NULL, NULL);
if (NULL == ph)
fprintf (stderr, _("Cannot connect to ATS service, exiting...\n"));