-improve UDP logging
[oweals/gnunet.git] / src / ats / gnunet-service-ats_preferences.h
index fb52ecb62bd074a155ff344c2efe4f146e8643cd..4500dd0ff2ab0e60b02cf02eb56bf7afeea52b32 100644 (file)
@@ -1,6 +1,6 @@
 /*
  This file is part of GNUnet.
- (C) 2011-2014 Christian Grothoff (and other contributing authors)
Copyright (C) 2011-2014 Christian Grothoff (and other contributing authors)
 
  GNUnet is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published
 #include "gnunet_statistics_service.h"
 #include "ats.h"
 
-
+/**
+ * Default preference value we assume if we know nothing.
+ */
 #define DEFAULT_ABS_PREFERENCE 0.0
 
+/**
+ * Default relative preference value we assume if we know nothing.
+ */
 #define DEFAULT_REL_PREFERENCE 0.0
 
 
@@ -71,11 +76,11 @@ GAS_preference_done (void);
  * @param cls ignored
  * @param id the peer
  * @return pointer to the values, can be indexed
- *  with GNUNET_ATS_PreferenceKind, NULL if peer does not exist
+ *  with `enum GNUNET_ATS_PreferenceKind`, never NULL
  */
 const double *
-GAS_normalization_get_preferences_by_peer (void *cls,
-                                          const struct GNUNET_PeerIdentity *id);
+GAS_preference_get_by_peer (void *cls,
+                            const struct GNUNET_PeerIdentity *id);
 
 
 /**
@@ -84,7 +89,7 @@ GAS_normalization_get_preferences_by_peer (void *cls,
  * @param client the disconnecting client
  */
 void
-GAS_normalization_preference_client_disconnect (struct GNUNET_SERVER_Client *client);
+GAS_preference_client_disconnect (struct GNUNET_SERVER_Client *client);
 
 
 #endif