X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fats%2Fgnunet-service-ats_normalization.h;h=f12c39fe145be72c91dee92f2aa58d9dfe59726c;hb=bfdb0abc074a99a7d24ca408f38cfda128d4132b;hp=1f0d081d4cd810f6399ac45f95bbb2337d64444c;hpb=a0ba5b741b56036bd35bd9ba88164324b2ff7ada;p=oweals%2Fgnunet.git diff --git a/src/ats/gnunet-service-ats_normalization.h b/src/ats/gnunet-service-ats_normalization.h index 1f0d081d4..f12c39fe1 100644 --- a/src/ats/gnunet-service-ats_normalization.h +++ b/src/ats/gnunet-service-ats_normalization.h @@ -55,7 +55,7 @@ typedef void * with GNUNET_ATS_PreferenceKind, NULL if peer does not exist */ const double * -GAS_normalization_get_preferences (const struct GNUNET_PeerIdentity *id); +GAS_normalization_get_preferences_by_peer (const struct GNUNET_PeerIdentity *id); /** @@ -69,6 +69,19 @@ GAS_normalization_get_preferences (const struct GNUNET_PeerIdentity *id); const double * GAS_normalization_get_properties (struct ATS_Address *address); + +/** + * Get the normalized preference values for a specific client and peer + * + * @param client client + * @param peer the peer + * @param pref the preference type + * @return the value + */ +const double +GAS_normalization_get_preferences_by_client (const void *client, + struct GNUNET_PeerIdentity *peer, enum GNUNET_ATS_PreferenceKind pref); + /** * Normalize an updated preference value * @@ -98,6 +111,14 @@ GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiPeerMap *addr uint32_t atsi_count); +/** + * A performance client disconnected + * + * @param client the disconnecting client + */ +void +GAS_normalization_preference_client_disconnect (void *client); + /** * Start the normalization component *