diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-30 11:41:26 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-30 11:41:26 +0000 |
commit | 3df2832fdf4bd38c1c766fe1b3f2a97c9fe1fe4d (patch) | |
tree | b34ba8ceabb3b0b709148daf634eb94e8123db4f /src/ats/gnunet-service-ats_addresses.h | |
parent | 75bb2cabda18a4105f518fcebf7fe95dde3132d6 (diff) | |
download | gnunet-3df2832fdf4bd38c1c766fe1b3f2a97c9fe1fe4d.tar.gz gnunet-3df2832fdf4bd38c1c766fe1b3f2a97c9fe1fe4d.zip |
updated experimentation tests
added scope time for feedback api
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.h')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h index a50234361..5fa8a4906 100644 --- a/src/ats/gnunet-service-ats_addresses.h +++ b/src/ats/gnunet-service-ats_addresses.h | |||
@@ -455,6 +455,7 @@ typedef void | |||
455 | * @param handle the solver handle | 455 | * @param handle the solver handle |
456 | * @param application the application sending this request | 456 | * @param application the application sending this request |
457 | * @param peer the peer id | 457 | * @param peer the peer id |
458 | * @param scope the time interval for this feedback: [now - scope .. now] | ||
458 | * @param kind the preference kind for this feedback | 459 | * @param kind the preference kind for this feedback |
459 | * @param score the feedback score | 460 | * @param score the feedback score |
460 | */ | 461 | */ |
@@ -462,6 +463,7 @@ typedef void | |||
462 | (*GAS_solver_address_feedback_preference) (void *solver, | 463 | (*GAS_solver_address_feedback_preference) (void *solver, |
463 | void *application, | 464 | void *application, |
464 | const struct GNUNET_PeerIdentity *peer, | 465 | const struct GNUNET_PeerIdentity *peer, |
466 | const struct GNUNET_TIME_Relative scope, | ||
465 | enum GNUNET_ATS_PreferenceKind kind, | 467 | enum GNUNET_ATS_PreferenceKind kind, |
466 | double score); | 468 | double score); |
467 | 469 | ||
@@ -796,15 +798,17 @@ GAS_addresses_change_preference (struct GAS_Addresses_Handle *handle, | |||
796 | * Change the preference for a peer | 798 | * Change the preference for a peer |
797 | * | 799 | * |
798 | * @param handle the address handle | 800 | * @param handle the address handle |
799 | * @param client the client sending this request | 801 | * @param application the client sending this request |
800 | * @param peer the peer id | 802 | * @param peer the peer id |
803 | * @param scope the time interval this valid for: [now - scope .. now] | ||
801 | * @param kind the preference kind to change | 804 | * @param kind the preference kind to change |
802 | * @param score_abs the new preference score | 805 | * @param score_abs the new preference score |
803 | */ | 806 | */ |
804 | void | 807 | void |
805 | GAS_addresses_preference_feedback (struct GAS_Addresses_Handle *handle, | 808 | GAS_addresses_preference_feedback (struct GAS_Addresses_Handle *handle, |
806 | void *client, | 809 | void *application, |
807 | const struct GNUNET_PeerIdentity *peer, | 810 | const struct GNUNET_PeerIdentity *peer, |
811 | const struct GNUNET_TIME_Relative scope, | ||
808 | enum GNUNET_ATS_PreferenceKind kind, | 812 | enum GNUNET_ATS_PreferenceKind kind, |
809 | float score_abs); | 813 | float score_abs); |
810 | 814 | ||