aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_ats.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.h')
-rw-r--r--src/transport/gnunet-service-transport_ats.h54
1 files changed, 31 insertions, 23 deletions
diff --git a/src/transport/gnunet-service-transport_ats.h b/src/transport/gnunet-service-transport_ats.h
index 88e4b4bbf..550f218a9 100644
--- a/src/transport/gnunet-service-transport_ats.h
+++ b/src/transport/gnunet-service-transport_ats.h
@@ -449,40 +449,48 @@ static struct ATS_quality_metric qm[] = {
449/* 449/*
450 * ATS functions 450 * ATS functions
451 */ 451 */
452struct ATS_Handle *ats_init (double D, double U, double R, int v_b_min, 452struct ATS_Handle *
453 int v_n_min, int max_iterations, 453ats_init (double D, double U, double R, int v_b_min, int v_n_min,
454 struct GNUNET_TIME_Relative max_duration, 454 int max_iterations, struct GNUNET_TIME_Relative max_duration,
455 GNUNET_TRANSPORT_ATS_AddressNotification 455 GNUNET_TRANSPORT_ATS_AddressNotification address_not,
456 address_not, 456 GNUNET_TRANSPORT_ATS_ResultCallback res_cb);
457 GNUNET_TRANSPORT_ATS_ResultCallback res_cb);
458 457
459void ats_shutdown (struct ATS_Handle *ats); 458void
459ats_shutdown (struct ATS_Handle *ats);
460 460
461void ats_delete_problem (struct ATS_Handle *ats); 461void
462ats_delete_problem (struct ATS_Handle *ats);
462 463
463int ats_create_problem (struct ATS_Handle *ats, struct ATS_internals *stat, 464int
464 struct ATS_peer *peers, int c_p, 465ats_create_problem (struct ATS_Handle *ats, struct ATS_internals *stat,
465 struct ATS_mechanism *mechanisms, int c_m); 466 struct ATS_peer *peers, int c_p,
467 struct ATS_mechanism *mechanisms, int c_m);
466 468
467void ats_modify_problem_state (struct ATS_Handle *ats, 469void
468 enum ATS_problem_state s); 470ats_modify_problem_state (struct ATS_Handle *ats, enum ATS_problem_state s);
469 471
470void ats_calculate_bandwidth_distribution (struct ATS_Handle *ats); 472void
473ats_calculate_bandwidth_distribution (struct ATS_Handle *ats);
471 474
472void ats_solve_problem (struct ATS_Handle *ats, unsigned int max_it, 475void
473 unsigned int max_dur, unsigned int c_peers, 476ats_solve_problem (struct ATS_Handle *ats, unsigned int max_it,
474 unsigned int c_mechs, struct ATS_internals *stat); 477 unsigned int max_dur, unsigned int c_peers,
478 unsigned int c_mechs, struct ATS_internals *stat);
475 479
476int ats_evaluate_results (int result, int solution, char *problem); 480int
481ats_evaluate_results (int result, int solution, char *problem);
477 482
478void ats_update_problem_qm (struct ATS_Handle *ats); 483void
484ats_update_problem_qm (struct ATS_Handle *ats);
479 485
480void ats_update_problem_cr (struct ATS_Handle *ats); 486void
487ats_update_problem_cr (struct ATS_Handle *ats);
481 488
482 489
483void ats_set_logging_options (struct ATS_Handle *ats, 490void
484 struct GNUNET_STATISTICS_Handle *stats, 491ats_set_logging_options (struct ATS_Handle *ats,
485 const struct GNUNET_CONFIGURATION_Handle *cfg); 492 struct GNUNET_STATISTICS_Handle *stats,
493 const struct GNUNET_CONFIGURATION_Handle *cfg);
486 494
487#endif 495#endif
488/* end of file gnunet-service-transport_ats.h */ 496/* end of file gnunet-service-transport_ats.h */