diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-18 06:29:10 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-18 06:29:10 +0000 |
commit | 34410c93193c7175aba1f46bee08587c7d926b90 (patch) | |
tree | 0d6765ca84954395797a78f948af984a32534ac3 /src/ats/gnunet-service-ats_normalization.h | |
parent | a1a3e38bf8d6f8e67c5e9f1109706bece9bef10c (diff) | |
download | gnunet-34410c93193c7175aba1f46bee08587c7d926b90.tar.gz gnunet-34410c93193c7175aba1f46bee08587c7d926b90.zip |
Diffstat (limited to 'src/ats/gnunet-service-ats_normalization.h')
-rw-r--r-- | src/ats/gnunet-service-ats_normalization.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ats/gnunet-service-ats_normalization.h b/src/ats/gnunet-service-ats_normalization.h index 6e6e4e00b..ab37da796 100644 --- a/src/ats/gnunet-service-ats_normalization.h +++ b/src/ats/gnunet-service-ats_normalization.h | |||
@@ -33,6 +33,12 @@ | |||
33 | #define DEFAULT_REL_PREFERENCE 1.0 | 33 | #define DEFAULT_REL_PREFERENCE 1.0 |
34 | #define DEFAULT_ABS_PREFERENCE 0.0 | 34 | #define DEFAULT_ABS_PREFERENCE 0.0 |
35 | 35 | ||
36 | |||
37 | typedef void | ||
38 | (*GAS_Normalization_preference_changed_cb) (const struct GNUNET_PeerIdentity *peer, | ||
39 | enum GNUNET_ATS_PreferenceKind kind, | ||
40 | double pref_rel); | ||
41 | |||
36 | /** | 42 | /** |
37 | * Get the normalized preference values for a specific peer | 43 | * Get the normalized preference values for a specific peer |
38 | * | 44 | * |
@@ -58,7 +64,7 @@ GAS_normalization_change_preference (void *src, | |||
58 | float score_abs); | 64 | float score_abs); |
59 | 65 | ||
60 | void | 66 | void |
61 | GAS_normalization_start (); | 67 | GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb); |
62 | 68 | ||
63 | void | 69 | void |
64 | GAS_normalization_stop (); | 70 | GAS_normalization_stop (); |