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