diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-05 16:26:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-05 16:26:23 +0000 |
commit | 3d7aad54ba7e7d2e51f5090eabffb29715854ad8 (patch) | |
tree | 6d565f2b60e7e56d2e06be3e592b71fba7d8d5f8 /src/ats/gnunet-service-ats_preferences.h | |
parent | b2a4dcbce4f56046fbdcd4b114ec7a3feb4793fd (diff) | |
download | gnunet-3d7aad54ba7e7d2e51f5090eabffb29715854ad8.tar.gz gnunet-3d7aad54ba7e7d2e51f5090eabffb29715854ad8.zip |
separating out feedback from preferences
Diffstat (limited to 'src/ats/gnunet-service-ats_preferences.h')
-rw-r--r-- | src/ats/gnunet-service-ats_preferences.h | 53 |
1 files changed, 10 insertions, 43 deletions
diff --git a/src/ats/gnunet-service-ats_preferences.h b/src/ats/gnunet-service-ats_preferences.h index a214e81fc..94b3d6907 100644 --- a/src/ats/gnunet-service-ats_preferences.h +++ b/src/ats/gnunet-service-ats_preferences.h | |||
@@ -40,27 +40,12 @@ | |||
40 | 40 | ||
41 | 41 | ||
42 | /** | 42 | /** |
43 | * A preference client disconnected | 43 | * A preference client disconnected. |
44 | * | 44 | * |
45 | * @param client the client; FIXME: type!? | 45 | * @param client the client |
46 | */ | 46 | */ |
47 | void | 47 | void |
48 | GAS_addresses_preference_client_disconnect (void *client); | 48 | GAS_preference_client_disconnect (struct GNUNET_SERVER_Client *client); |
49 | |||
50 | |||
51 | /** | ||
52 | * Change the preference for a peer | ||
53 | * | ||
54 | * @param client the client sending this request; FIXME: type!? | ||
55 | * @param peer the peer id | ||
56 | * @param kind the preference kind to change | ||
57 | * @param score_abs the new preference score | ||
58 | */ | ||
59 | void | ||
60 | GAS_addresses_preference_change (void *client, | ||
61 | const struct GNUNET_PeerIdentity *peer, | ||
62 | enum GNUNET_ATS_PreferenceKind kind, | ||
63 | float score_abs); | ||
64 | 49 | ||
65 | 50 | ||
66 | /** | 51 | /** |
@@ -76,31 +61,6 @@ GAS_handle_preference_change (void *cls, | |||
76 | const struct GNUNET_MessageHeader *message); | 61 | const struct GNUNET_MessageHeader *message); |
77 | 62 | ||
78 | 63 | ||
79 | |||
80 | /** | ||
81 | * Application feedback on how good preference requirements are fulfilled | ||
82 | * for a specific preference in the given time scope [now - scope .. now] | ||
83 | * | ||
84 | * An application notifies ATS if (and only if) it has feedback information | ||
85 | * for a specific property. This value is valid until the feedback score is | ||
86 | * updated by the application. | ||
87 | * | ||
88 | * If the application has no feedback for this preference kind the application | ||
89 | * will not explicitly call. | ||
90 | * | ||
91 | * @param application the application sending this request; FIXME: type? | ||
92 | * @param peer the peer id | ||
93 | * @param scope the time interval this valid for: [now - scope .. now] | ||
94 | * @param kind the preference kind this feedback is intended for | ||
95 | * @param score_abs the new preference score | ||
96 | */ | ||
97 | void | ||
98 | GAS_addresses_preference_feedback (void *application, | ||
99 | const struct GNUNET_PeerIdentity *peer, | ||
100 | const struct GNUNET_TIME_Relative scope, | ||
101 | enum GNUNET_ATS_PreferenceKind kind, | ||
102 | float score_abs); | ||
103 | |||
104 | /** | 64 | /** |
105 | * Handle 'preference feedback' messages from clients. | 65 | * Handle 'preference feedback' messages from clients. |
106 | * | 66 | * |
@@ -116,6 +76,13 @@ GAS_handle_preference_feedback (void *cls, | |||
116 | 76 | ||
117 | 77 | ||
118 | /** | 78 | /** |
79 | * Initialize preferences subsystem. | ||
80 | */ | ||
81 | void | ||
82 | GAS_preference_init (void); | ||
83 | |||
84 | |||
85 | /** | ||
119 | * Shutdown preferences subsystem. | 86 | * Shutdown preferences subsystem. |
120 | */ | 87 | */ |
121 | void | 88 | void |