diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.h')
-rw-r--r-- | src/transport/gnunet-service-transport_ats.h | 54 |
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 | */ |
452 | struct ATS_Handle *ats_init (double D, double U, double R, int v_b_min, | 452 | struct ATS_Handle * |
453 | int v_n_min, int max_iterations, | 453 | ats_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 | ||
459 | void ats_shutdown (struct ATS_Handle *ats); | 458 | void |
459 | ats_shutdown (struct ATS_Handle *ats); | ||
460 | 460 | ||
461 | void ats_delete_problem (struct ATS_Handle *ats); | 461 | void |
462 | ats_delete_problem (struct ATS_Handle *ats); | ||
462 | 463 | ||
463 | int ats_create_problem (struct ATS_Handle *ats, struct ATS_internals *stat, | 464 | int |
464 | struct ATS_peer *peers, int c_p, | 465 | ats_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 | ||
467 | void ats_modify_problem_state (struct ATS_Handle *ats, | 469 | void |
468 | enum ATS_problem_state s); | 470 | ats_modify_problem_state (struct ATS_Handle *ats, enum ATS_problem_state s); |
469 | 471 | ||
470 | void ats_calculate_bandwidth_distribution (struct ATS_Handle *ats); | 472 | void |
473 | ats_calculate_bandwidth_distribution (struct ATS_Handle *ats); | ||
471 | 474 | ||
472 | void ats_solve_problem (struct ATS_Handle *ats, unsigned int max_it, | 475 | void |
473 | unsigned int max_dur, unsigned int c_peers, | 476 | ats_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 | ||
476 | int ats_evaluate_results (int result, int solution, char *problem); | 480 | int |
481 | ats_evaluate_results (int result, int solution, char *problem); | ||
477 | 482 | ||
478 | void ats_update_problem_qm (struct ATS_Handle *ats); | 483 | void |
484 | ats_update_problem_qm (struct ATS_Handle *ats); | ||
479 | 485 | ||
480 | void ats_update_problem_cr (struct ATS_Handle *ats); | 486 | void |
487 | ats_update_problem_cr (struct ATS_Handle *ats); | ||
481 | 488 | ||
482 | 489 | ||
483 | void ats_set_logging_options (struct ATS_Handle *ats, | 490 | void |
484 | struct GNUNET_STATISTICS_Handle *stats, | 491 | ats_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 */ |