diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-08 13:04:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-08 13:04:27 +0000 |
commit | b644458a5800a53f3b0196fe559d51a21dca70b9 (patch) | |
tree | fa7f8b8a497d5306b68f9f2fe41e565365f8c5c9 /src/include/gnunet_ats_plugin.h | |
parent | 6115a1150c65bd4a33ed61c6e96594c4a73d86ac (diff) | |
download | gnunet-b644458a5800a53f3b0196fe559d51a21dca70b9.tar.gz gnunet-b644458a5800a53f3b0196fe559d51a21dca70b9.zip |
simplify normalization logic, also have clients access norm array of address directly
Diffstat (limited to 'src/include/gnunet_ats_plugin.h')
-rw-r--r-- | src/include/gnunet_ats_plugin.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/include/gnunet_ats_plugin.h b/src/include/gnunet_ats_plugin.h index e57b95a0f..5fdc33f71 100644 --- a/src/include/gnunet_ats_plugin.h +++ b/src/include/gnunet_ats_plugin.h | |||
@@ -134,7 +134,7 @@ typedef void | |||
134 | typedef void | 134 | typedef void |
135 | (*GAS_solver_address_property_changed) (void *solver, | 135 | (*GAS_solver_address_property_changed) (void *solver, |
136 | struct ATS_Address *address, | 136 | struct ATS_Address *address, |
137 | uint32_t type, | 137 | enum GNUNET_ATS_Property type, |
138 | uint32_t abs_value, | 138 | uint32_t abs_value, |
139 | double rel_value); | 139 | double rel_value); |
140 | 140 | ||
@@ -402,20 +402,6 @@ typedef const double * | |||
402 | 402 | ||
403 | 403 | ||
404 | /** | 404 | /** |
405 | * Callback to call from solver to obtain transport properties for an | ||
406 | * address | ||
407 | * | ||
408 | * @param cls the cls | ||
409 | * @param address the address | ||
410 | * @return carry of double values containing the preferences with | ||
411 | * GNUNET_ATS_PreferenceCount elements | ||
412 | */ | ||
413 | typedef const double * | ||
414 | (*GAS_get_properties) (void *cls, | ||
415 | const struct ATS_Address *address); | ||
416 | |||
417 | |||
418 | /** | ||
419 | * The ATS plugin will pass a pointer to a struct | 405 | * The ATS plugin will pass a pointer to a struct |
420 | * of this type as to the initialization function | 406 | * of this type as to the initialization function |
421 | * of the ATS plugins. | 407 | * of the ATS plugins. |
@@ -453,11 +439,6 @@ struct GNUNET_ATS_PluginEnvironment | |||
453 | GAS_get_preferences get_preferences; | 439 | GAS_get_preferences get_preferences; |
454 | 440 | ||
455 | /** | 441 | /** |
456 | * ATS addresses function to obtain property values | ||
457 | */ | ||
458 | GAS_get_properties get_property; | ||
459 | |||
460 | /** | ||
461 | * Callback for solver to call with status information, | 442 | * Callback for solver to call with status information, |
462 | * can be NULL | 443 | * can be NULL |
463 | */ | 444 | */ |