static struct GAS_Addresses_Preference_Clients *
-find_preference_client (void *client)
+find_preference_client (struct GNUNET_SERVER_Client *client)
{
struct GAS_Addresses_Preference_Clients *cur;
* @param score_abs the new preference score
*/
static void
-preference_change (void *client,
+preference_change (struct GNUNET_SERVER_Client *client,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_ATS_PreferenceKind kind,
float score_abs)
* @param score_abs the normalized score
*/
void
-GAS_normalization_normalize_preference (void *client,
+GAS_normalization_normalize_preference (struct GNUNET_SERVER_Client *client,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_ATS_PreferenceKind kind,
float score_abs)
* @return the value
*/
double
-GAS_normalization_get_preferences_by_client (const void *client,
+GAS_normalization_get_preferences_by_client (const struct GNUNET_SERVER_Client *client,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_ATS_PreferenceKind pref)
{
* @param client the client
*/
void
-GAS_normalization_preference_client_disconnect (void *client)
+GAS_normalization_preference_client_disconnect (struct GNUNET_SERVER_Client *client)
{
struct PreferenceClient *c_cur;
/* Find preference client */
GNUNET_CONTAINER_DLL_remove(pc_head, pc_tail, c_cur);
free_client (c_cur);
}
-
* @return the value
*/
double
-GAS_normalization_get_preferences_by_client (const void *client,
+GAS_normalization_get_preferences_by_client (const struct GNUNET_SERVER_Client *client,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_ATS_PreferenceKind pref);
* @param score_abs the normalized score
*/
void
-GAS_normalization_normalize_preference (void *client,
+GAS_normalization_normalize_preference (struct GNUNET_SERVER_Client *client,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_ATS_PreferenceKind kind,
float score_abs);
* @param client the disconnecting client
*/
void
-GAS_normalization_preference_client_disconnect (void *client);
+GAS_normalization_preference_client_disconnect (struct GNUNET_SERVER_Client *client);
/**