diff options
Diffstat (limited to 'src/ats/gnunet-service-ats-solver_mlp.h')
-rw-r--r-- | src/ats/gnunet-service-ats-solver_mlp.h | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/src/ats/gnunet-service-ats-solver_mlp.h b/src/ats/gnunet-service-ats-solver_mlp.h index 3771bd2ce..9a8b8efdf 100644 --- a/src/ats/gnunet-service-ats-solver_mlp.h +++ b/src/ats/gnunet-service-ats-solver_mlp.h | |||
@@ -415,34 +415,31 @@ GAS_mlp_address_add (void *solver, | |||
415 | struct ATS_Address *address, | 415 | struct ATS_Address *address, |
416 | uint32_t network); | 416 | uint32_t network); |
417 | 417 | ||
418 | /** | ||
419 | * Updates a single address in the MLP problem | ||
420 | * | ||
421 | * If the address did not exist before in the problem: | ||
422 | * The MLP problem has to be recreated and the problem has to be resolved | ||
423 | * | ||
424 | * ATS performance information in address are already updated, delta + previous | ||
425 | * values are included in atsi_prev (value GNUNET_ATS_VALUE_UNDEFINED if not existing before) | ||
426 | * | ||
427 | * Otherwise the addresses' values can be updated and the existing base can | ||
428 | * be reused | ||
429 | * | ||
430 | * @param solver the solver Handle | ||
431 | * @param addresses the address hashmap containing all addresses | ||
432 | * @param address the update address | ||
433 | * @param prev_session the new session (if changed otherwise current) | ||
434 | * @param prev_in_use the new address in use state (if changed otherwise current) | ||
435 | * @param prev_atsi ATS information updated + previous values, GNUNET_ATS_VALUE_UNDEFINED if not existing before | ||
436 | * @param prev_atsi_count number of atsi values updated | ||
437 | */ | ||
438 | void | 418 | void |
439 | GAS_mlp_address_update (void *solver, | 419 | GAS_mlp_address_property_changed (void *solver, |
440 | struct ATS_Address *address, | 420 | struct ATS_Address *address, |
441 | uint32_t prev_session, | 421 | uint32_t type, |
442 | int prev_in_use, | 422 | uint32_t abs_value, |
443 | const struct GNUNET_ATS_Information *prev_atsi, | 423 | double rel_value); |
444 | uint32_t prev_atsi_count); | 424 | |
425 | |||
426 | void | ||
427 | GAS_mlp_address_session_changed (void *solver, | ||
428 | struct ATS_Address *address, | ||
429 | uint32_t cur_session, | ||
430 | uint32_t new_session); | ||
431 | |||
432 | void | ||
433 | GAS_mlp_address_inuse_changed (void *solver, | ||
434 | struct ATS_Address *address, | ||
435 | uint32_t session, | ||
436 | int in_use); | ||
445 | 437 | ||
438 | void | ||
439 | GAS_proportional_address_change_network (void *solver, | ||
440 | struct ATS_Address *address, | ||
441 | uint32_t current_network, | ||
442 | uint32_t new_network); | ||
446 | 443 | ||
447 | /** | 444 | /** |
448 | * Deletes a single address in the MLP problem | 445 | * Deletes a single address in the MLP problem |