gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r27473 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r27473 - gnunet/src/ats
Date: Wed, 19 Jun 2013 06:21:51 +0200

Author: wachs
Date: 2013-06-19 06:21:51 +0200 (Wed, 19 Jun 2013)
New Revision: 27473

Modified:
   gnunet/src/ats/gnunet-service-ats-solver_proportional.c
   gnunet/src/ats/gnunet-service-ats-solver_proportional.h
   gnunet/src/ats/gnunet-service-ats_addresses.c
   gnunet/src/ats/gnunet-service-ats_addresses.h
   gnunet/src/ats/gnunet-service-ats_addresses_mlp.c
   gnunet/src/ats/gnunet-service-ats_addresses_mlp.h
   gnunet/src/ats/gnunet-service-ats_normalization.c
   gnunet/src/ats/gnunet-service-ats_normalization.h
Log:
doxygen fixes


Modified: gnunet/src/ats/gnunet-service-ats-solver_proportional.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats-solver_proportional.c     2013-06-19 
02:15:00 UTC (rev 27472)
+++ gnunet/src/ats/gnunet-service-ats-solver_proportional.c     2013-06-19 
04:21:51 UTC (rev 27473)
@@ -832,18 +832,17 @@
  * Changes the preferences for a peer in the problem
  *
  * @param solver the solver handle
- * @param client the client with this preference
+ * @param addresses the address hashmap
  * @param peer the peer to change the preference for
  * @param kind the kind to change the preference
  * @param pref_rel the normalized preference value for this kind over all 
clients
- * @param score the score
  */
 void
-GAS_proportional_address_change_preference  (void *solver,
-                                                                               
                                                                                
                 struct GNUNET_CONTAINER_MultiHashMap *addresses,
-                                                                  const struct 
GNUNET_PeerIdentity *peer,
-                                                                  enum 
GNUNET_ATS_PreferenceKind kind,
-                                                                  double 
pref_rel)
+GAS_proportional_address_change_preference (void *solver,
+                                                                               
        struct GNUNET_CONTAINER_MultiHashMap *addresses,
+                                                                               
        const struct GNUNET_PeerIdentity *peer,
+                                                                               
        enum GNUNET_ATS_PreferenceKind kind,
+                                                                               
        double pref_rel)
 {
   struct GAS_PROPORTIONAL_Handle *s = solver;
   GNUNET_assert (NULL != solver);

Modified: gnunet/src/ats/gnunet-service-ats-solver_proportional.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats-solver_proportional.h     2013-06-19 
02:15:00 UTC (rev 27472)
+++ gnunet/src/ats/gnunet-service-ats-solver_proportional.h     2013-06-19 
04:21:51 UTC (rev 27473)
@@ -38,18 +38,17 @@
  * Changes the preferences for a peer in the problem
  *
  * @param solver the solver handle
- * @param client the client with this preference
+ * @param addresses the address hashmap
  * @param peer the peer to change the preference for
  * @param kind the kind to change the preference
  * @param pref_rel the normalized preference value for this kind over all 
clients
- * @param score the score
  */
 void
 GAS_proportional_address_change_preference (void *solver,
-                                                                               
                                                                                
                struct GNUNET_CONTAINER_MultiHashMap *addresses,
-                                                                 const struct 
GNUNET_PeerIdentity *peer,
-                                                                 enum 
GNUNET_ATS_PreferenceKind kind,
-                                                                 double 
pref_rel);
+                                                                               
        struct GNUNET_CONTAINER_MultiHashMap *addresses,
+                                                                               
        const struct GNUNET_PeerIdentity *peer,
+                                                                               
        enum GNUNET_ATS_PreferenceKind kind,
+                                                                               
        double pref_rel);
 
 
 /**

Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c       2013-06-19 02:15:00 UTC 
(rev 27472)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c       2013-06-19 04:21:51 UTC 
(rev 27473)
@@ -1315,7 +1315,7 @@
  * @param client the client sending this request
  * @param peer the peer id
  * @param kind the preference kind to change
- * @param score the new preference score
+ * @param score_abs the new preference score
  */
 void
 GAS_addresses_change_preference (struct GAS_Addresses_Handle *handle,

Modified: gnunet/src/ats/gnunet-service-ats_addresses.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.h       2013-06-19 02:15:00 UTC 
(rev 27472)
+++ gnunet/src/ats/gnunet-service-ats_addresses.h       2013-06-19 04:21:51 UTC 
(rev 27473)
@@ -667,14 +667,14 @@
  * @param client the client sending this request
  * @param peer the peer id
  * @param kind the preference kind to change
- * @param score the new preference score
+ * @param score_abs the new preference score
  */
 void
 GAS_addresses_change_preference (struct GAS_Addresses_Handle *handle,
                                  void *client,
                                  const struct GNUNET_PeerIdentity *peer,
                                  enum GNUNET_ATS_PreferenceKind kind,
-                                 float score);
+                                 float score_abs);
 
 
 /**

Modified: gnunet/src/ats/gnunet-service-ats_addresses_mlp.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses_mlp.c   2013-06-19 02:15:00 UTC 
(rev 27472)
+++ gnunet/src/ats/gnunet-service-ats_addresses_mlp.c   2013-06-19 04:21:51 UTC 
(rev 27473)
@@ -1539,17 +1539,17 @@
  * Changes the preferences for a peer in the MLP problem
  *
  * @param solver the MLP Handle
- * @param client client
+ * @param addresses the address hashmap
  * @param peer the peer
  * @param kind the kind to change the preference
- * @param score the score
+ * @param pref_rel the relative score
  */
 void
 GAS_mlp_address_change_preference (void *solver,
-                                                                               
                                                         struct 
GNUNET_CONTAINER_MultiHashMap *addresses,
-                                                                               
                                                         const struct 
GNUNET_PeerIdentity *peer,
-                                                                               
                                                         enum 
GNUNET_ATS_PreferenceKind kind,
-                                                                               
                                                         double pref_rel)
+                                                                  struct 
GNUNET_CONTAINER_MultiHashMap *addresses,
+                                                                  const struct 
GNUNET_PeerIdentity *peer,
+                                                                  enum 
GNUNET_ATS_PreferenceKind kind,
+                                                                  double 
pref_rel)
 {
   struct GAS_MLP_Handle *mlp = solver;
   struct ATS_Peer *p = NULL;

Modified: gnunet/src/ats/gnunet-service-ats_addresses_mlp.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses_mlp.h   2013-06-19 02:15:00 UTC 
(rev 27472)
+++ gnunet/src/ats/gnunet-service-ats_addresses_mlp.h   2013-06-19 04:21:51 UTC 
(rev 27473)
@@ -428,18 +428,17 @@
  * Changes the preferences for a peer in the MLP problem
  *
  * @param solver the MLP Handle
- * @param client client
+ * @param addresses the address hashmap
  * @param peer the peer
  * @param kind the kind to change the preference
- * @param score_abs the score
- * @param pref_rel the normalizes preference value
+ * @param pref_rel the relative score
  */
 void
 GAS_mlp_address_change_preference (void *solver,
-                                                                               
                                                         struct 
GNUNET_CONTAINER_MultiHashMap *addresses,
-                                   const struct GNUNET_PeerIdentity *peer,
-                                   enum GNUNET_ATS_PreferenceKind kind,
-                                   double pref_rel);
+                                                                  struct 
GNUNET_CONTAINER_MultiHashMap *addresses,
+                                                                  const struct 
GNUNET_PeerIdentity *peer,
+                                                                  enum 
GNUNET_ATS_PreferenceKind kind,
+                                                                  double 
pref_rel);
 
 
 /**

Modified: gnunet/src/ats/gnunet-service-ats_normalization.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_normalization.c   2013-06-19 02:15:00 UTC 
(rev 27472)
+++ gnunet/src/ats/gnunet-service-ats_normalization.c   2013-06-19 04:21:51 UTC 
(rev 27473)
@@ -202,13 +202,14 @@
 /**
  * Recalculate preference for a specific ATS property
  *
+ * @param c the preference client
  * @param p the peer
  * @param kind the preference kind
  */
 static double
 recalculate_rel_preferences (struct PreferenceClient *c,
-                                                                               
                 struct PreferencePeer *p,
-                                                                               
                 enum GNUNET_ATS_PreferenceKind kind)
+                                                        struct PreferencePeer 
*p,
+                                                        enum 
GNUNET_ATS_PreferenceKind kind)
 {
        struct PreferencePeer *p_cur;
        struct PeerRelative *rp;
@@ -327,13 +328,12 @@
 }
 
 /**
- * Changes the preferences for a peer in the problem
+ * Normalize an updated preference value
  *
- * @param solver the solver handle
- * @param client the client with this preference
+ * @param src the client with this preference
  * @param peer the peer to change the preference for
  * @param kind the kind to change the preference
- * @param score the normalized score
+ * @param score_abs the normalized score
  */
 float
 GAS_normalization_change_preference (void *src,
@@ -341,7 +341,7 @@
                                         enum GNUNET_ATS_PreferenceKind kind,
                                         float score_abs)
 {
-       float score_rel;
+  float score_rel;
   struct PreferenceClient *c_cur;
   struct PreferencePeer *p_cur;
   struct PeerRelative *r_cur;

Modified: gnunet/src/ats/gnunet-service-ats_normalization.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_normalization.h   2013-06-19 02:15:00 UTC 
(rev 27472)
+++ gnunet/src/ats/gnunet-service-ats_normalization.h   2013-06-19 04:21:51 UTC 
(rev 27473)
@@ -49,14 +49,14 @@
 const double *
 GAS_normalization_get_preferences (struct GNUNET_PeerIdentity *id);
 
+
 /**
- * Changes the preferences for a peer in the problem
+ * Normalize an updated preference value
  *
- * @param solver the solver handle
- * @param client the client with this preference
+ * @param src the client with this preference
  * @param peer the peer to change the preference for
  * @param kind the kind to change the preference
- * @param score the normalized score
+ * @param score_abs the normalized score
  */
 float
 GAS_normalization_change_preference (void *src,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]