* @param pref the preference type
* @return the value
*/
-const double
+double
GAS_normalization_get_preferences_by_client (const void *client,
- struct GNUNET_PeerIdentity *peer, enum GNUNET_ATS_PreferenceKind pref)
+ const struct GNUNET_PeerIdentity *peer,
+ enum GNUNET_ATS_PreferenceKind pref)
{
struct PreferenceClient *c_cur;
struct PreferencePeer *p_cur;
return norm_values;
}
+
/**
* Quality Normalization
*/
-
struct Property
{
uint32_t prop_type;
uint32_t type,
double prop_rel);
+
/**
* Get the normalized preference values for a specific peer
*
* @param pref the preference type
* @return the value
*/
-const double
+double
GAS_normalization_get_preferences_by_client (const void *client,
- struct GNUNET_PeerIdentity *peer, enum GNUNET_ATS_PreferenceKind pref);
+ const struct GNUNET_PeerIdentity *peer,
+ enum GNUNET_ATS_PreferenceKind pref);
/**
* Normalize an updated preference value
void
GAS_normalization_preference_client_disconnect (void *client);
+
/**
* Start the normalization component
*