aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_normalization.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-05 19:48:15 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-05 19:48:15 +0000
commit21264a59434a5b18b4f5e85e735a2d3ec5c3c6c6 (patch)
treedb7c1187ddbba17641e0c0fcd631331803d19983 /src/ats/gnunet-service-ats_normalization.h
parent88031e0e8188e96d7ae4ce3659e6ed0d90a64f26 (diff)
downloadgnunet-21264a59434a5b18b4f5e85e735a2d3ec5c3c6c6.tar.gz
gnunet-21264a59434a5b18b4f5e85e735a2d3ec5c3c6c6.zip
cleaning up gnunet-service-ats_normalization.c
Diffstat (limited to 'src/ats/gnunet-service-ats_normalization.h')
-rw-r--r--src/ats/gnunet-service-ats_normalization.h50
1 files changed, 1 insertions, 49 deletions
diff --git a/src/ats/gnunet-service-ats_normalization.h b/src/ats/gnunet-service-ats_normalization.h
index e542097c9..0e65d0ed8 100644
--- a/src/ats/gnunet-service-ats_normalization.h
+++ b/src/ats/gnunet-service-ats_normalization.h
@@ -32,20 +32,8 @@
32 32
33 33
34/** 34/**
35 * Get the normalized preference values for a specific peer
36 *
37 * @param cls ignored
38 * @param id the peer @return pointer to the values, can be indexed
39 * with GNUNET_ATS_PreferenceKind, NULL if peer does not exist
40 */
41const double *
42GAS_normalization_get_preferences_by_peer (void *cls,
43 const struct GNUNET_PeerIdentity *id);
44
45
46/**
47 * Get the normalized properties values for a specific peer or 35 * Get the normalized properties values for a specific peer or
48 * the default values if 36 * the default values if no normalized values are available.
49 * 37 *
50 * @param cls ignored 38 * @param cls ignored
51 * @param address the address 39 * @param address the address
@@ -58,33 +46,6 @@ GAS_normalization_get_properties (void *cls,
58 46
59 47
60/** 48/**
61 * Get the normalized preference values for a specific client and peer
62 *
63 * @param client client
64 * @param peer the peer
65 * @param pref the preference type
66 * @return the value
67 */
68double
69GAS_normalization_get_preferences_by_client (const void *client,
70 const struct GNUNET_PeerIdentity *peer,
71 enum GNUNET_ATS_PreferenceKind pref);
72
73/**
74 * Normalize an updated preference value
75 *
76 * @param client the client with this preference
77 * @param peer the peer to change the preference for
78 * @param kind the kind to change the preference
79 * @param score_abs the normalized score
80 */
81void
82GAS_normalization_normalize_preference (void *client,
83 const struct GNUNET_PeerIdentity *peer,
84 enum GNUNET_ATS_PreferenceKind kind,
85 float score_abs);
86
87/**
88 * Update and normalize a atsi performance information 49 * Update and normalize a atsi performance information
89 * 50 *
90 * @param address the address to update 51 * @param address the address to update
@@ -98,15 +59,6 @@ GAS_normalization_normalize_property (struct ATS_Address *address,
98 59
99 60
100/** 61/**
101 * A performance client disconnected
102 *
103 * @param client the disconnecting client
104 */
105void
106GAS_normalization_preference_client_disconnect (void *client);
107
108
109/**
110 * Start the normalization component 62 * Start the normalization component
111 */ 63 */
112void 64void