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)
downloadgnunet-4596a20eb4c61cf84e3a88a881597ba05114d482.tar.gz
gnunet-4596a20eb4c61cf84e3a88a881597ba05114d482.zip
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 20ce9700b..68e765ca9 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)
221} 221}
222 222
223void ats_perf_cb (void *cls, 223void ats_perf_cb (void *cls,
224 const struct 224 const struct GNUNET_HELLO_Address *address,
225 GNUNET_HELLO_Address * 225 unsigned int active,
226 address, 226 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
227 struct 227 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
228 GNUNET_BANDWIDTH_Value32NBO 228 const struct GNUNET_ATS_Information *ats,
229 bandwidth_out, 229 uint32_t ats_count)
230 struct
231 GNUNET_BANDWIDTH_Value32NBO
232 bandwidth_in,
233 const struct
234 GNUNET_ATS_Information *
235 ats, uint32_t ats_count)
236{ 230{
237 struct PendingResolutions * pr; 231 struct PendingResolutions * pr;
238 232
@@ -373,7 +367,7 @@ void testservice_ats (void *cls,
373 } 367 }
374 if (op_list_all) 368 if (op_list_all)
375 { 369 {
376 ph = GNUNET_ATS_performance_init (cfg, NULL, NULL); 370 ph = GNUNET_ATS_performance_init (cfg, NULL, NULL, NULL, NULL);
377 if (NULL == ph) 371 if (NULL == ph)
378 { 372 {
379 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n")); 373 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n"));
@@ -393,7 +387,7 @@ void testservice_ats (void *cls,
393 } 387 }
394 else if (op_list_used) 388 else if (op_list_used)
395 { 389 {
396 ph = GNUNET_ATS_performance_init (cfg, NULL, NULL); 390 ph = GNUNET_ATS_performance_init (cfg, NULL, NULL, NULL, NULL);
397 if (NULL == ph) 391 if (NULL == ph)
398 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n")); 392 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n"));
399 393
@@ -410,7 +404,7 @@ void testservice_ats (void *cls,
410 } 404 }
411 else if (op_monitor) 405 else if (op_monitor)
412 { 406 {
413 ph = GNUNET_ATS_performance_init (cfg, ats_perf_cb, NULL); 407 ph = GNUNET_ATS_performance_init (cfg, NULL, NULL, ats_perf_cb, NULL);
414 if (NULL == ph) 408 if (NULL == ph)
415 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n")); 409 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n"));
416 end_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &end, NULL); 410 end_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &end, NULL);
@@ -435,7 +429,7 @@ void testservice_ats (void *cls,
435 } 429 }
436 430
437 /* set */ 431 /* set */
438 ph = GNUNET_ATS_performance_init (cfg, NULL, NULL); 432 ph = GNUNET_ATS_performance_init (cfg, NULL, NULL, NULL, NULL);
439 if (NULL == ph) 433 if (NULL == ph)
440 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n")); 434 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n"));
441 435