minor changes for address conversion
[oweals/gnunet.git] / src / ats / gnunet-service-ats_normalization.h
index 1f0d081d4cd810f6399ac45f95bbb2337d64444c..f12c39fe145be72c91dee92f2aa58d9dfe59726c 100644 (file)
@@ -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
  *