diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_normalization.h')
-rw-r--r-- | src/ats/gnunet-service-ats_normalization.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ats/gnunet-service-ats_normalization.h b/src/ats/gnunet-service-ats_normalization.h index 969263b3e..1f0d081d4 100644 --- a/src/ats/gnunet-service-ats_normalization.h +++ b/src/ats/gnunet-service-ats_normalization.h | |||
@@ -51,8 +51,8 @@ typedef void | |||
51 | /** | 51 | /** |
52 | * Get the normalized preference values for a specific peer | 52 | * Get the normalized preference values for a specific peer |
53 | * | 53 | * |
54 | * @param id the peer | 54 | * @param id the peer @return pointer to the values, can be indexed |
55 | * @return pointer to the values, can be indexed with GNUNET_ATS_PreferenceKind, NULL if peer does not exist | 55 | * with GNUNET_ATS_PreferenceKind, NULL if peer does not exist |
56 | */ | 56 | */ |
57 | const double * | 57 | const double * |
58 | GAS_normalization_get_preferences (const struct GNUNET_PeerIdentity *id); | 58 | GAS_normalization_get_preferences (const struct GNUNET_PeerIdentity *id); |
@@ -79,9 +79,9 @@ GAS_normalization_get_properties (struct ATS_Address *address); | |||
79 | */ | 79 | */ |
80 | void | 80 | void |
81 | GAS_normalization_normalize_preference (void *src, | 81 | GAS_normalization_normalize_preference (void *src, |
82 | const struct GNUNET_PeerIdentity *peer, | 82 | const struct GNUNET_PeerIdentity *peer, |
83 | enum GNUNET_ATS_PreferenceKind kind, | 83 | enum GNUNET_ATS_PreferenceKind kind, |
84 | float score_abs); | 84 | float score_abs); |
85 | 85 | ||
86 | /** | 86 | /** |
87 | * Update and normalize a atsi performance information | 87 | * Update and normalize a atsi performance information |
@@ -92,10 +92,10 @@ GAS_normalization_normalize_preference (void *src, | |||
92 | * @param atsi_count the number of atsi information in the array | 92 | * @param atsi_count the number of atsi information in the array |
93 | */ | 93 | */ |
94 | void | 94 | void |
95 | GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiHashMap *addresses, | 95 | GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiPeerMap *addresses, |
96 | struct ATS_Address *address, | 96 | struct ATS_Address *address, |
97 | const struct GNUNET_ATS_Information *atsi, | 97 | const struct GNUNET_ATS_Information *atsi, |
98 | uint32_t atsi_count); | 98 | uint32_t atsi_count); |
99 | 99 | ||
100 | 100 | ||
101 | /** | 101 | /** |
@@ -108,9 +108,9 @@ GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiHashMap *addr | |||
108 | */ | 108 | */ |
109 | void | 109 | void |
110 | GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb, | 110 | GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb, |
111 | void *pref_ch_cb_cls, | 111 | void *pref_ch_cb_cls, |
112 | GAS_Normalization_property_changed_cb property_ch_cb, | 112 | GAS_Normalization_property_changed_cb property_ch_cb, |
113 | void *property_ch_cb_cls); | 113 | void *property_ch_cb_cls); |
114 | 114 | ||
115 | 115 | ||
116 | /** | 116 | /** |