[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27698 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27698 - gnunet/src/ats |
Date: |
Mon, 1 Jul 2013 10:09:49 +0200 |
Author: wachs
Date: 2013-07-01 10:09:49 +0200 (Mon, 01 Jul 2013)
New Revision: 27698
Modified:
gnunet/src/ats/gnunet-service-ats_addresses.c
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_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c 2013-06-30 19:53:37 UTC
(rev 27697)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c 2013-07-01 08:09:49 UTC
(rev 27698)
@@ -909,6 +909,13 @@
return;
}
+ if (NULL == aa->solver_information)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Tried to update unknown address for
peer `%s' `%s' session id %u\n",
+ GNUNET_i2s (peer), plugin_name, session_id);
+ return;
+ }
+
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Received `%s' for peer `%s' address \n",
"ADDRESS UPDATE",
@@ -1317,7 +1324,7 @@
* @param cls the address handle
* @param peer the peer
* @param kind the ATS kind
- * @param double the new relative preference value
+ * @param pref_rel the new relative preference value
*/
static void
normalized_preference_changed_cb (void *cls,
@@ -1337,8 +1344,8 @@
*
* @param cls the address handle
* @param peer the peer
- * @param kind the ATS kind
- * @param double the new relative preference value
+ * @param type the ATS type
+ * @param prop_rel the new relative preference value
*/
static void
normalized_property_changed_cb (void *cls,
Modified: gnunet/src/ats/gnunet-service-ats_normalization.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_normalization.c 2013-06-30 19:53:37 UTC
(rev 27697)
+++ gnunet/src/ats/gnunet-service-ats_normalization.c 2013-07-01 08:09:49 UTC
(rev 27698)
@@ -648,7 +648,8 @@
* Normalize avg_value to a range of values between [1.0, 2.0]
* based on min max values currently known.
*
- * @param property p the property
+ * @param addresses the address hashmap
+ * @param p the property
* @param address the address
* @param avg_value the value to normalize
*/
@@ -772,13 +773,13 @@
}
-
-
/**
* Start the normalization component
*
* @param pref_ch_cb callback to call on relative preference changing
- * @param pref_ch_cb_cls cls for the callback
+ * @param pref_ch_cb_cls cls for the preference callback
+ * @param property_ch_cb callback to call on relative property changing
+ * @param property_ch_cb_cls cls for the property callback
*/
void
GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb,
Modified: gnunet/src/ats/gnunet-service-ats_normalization.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_normalization.h 2013-06-30 19:53:37 UTC
(rev 27697)
+++ gnunet/src/ats/gnunet-service-ats_normalization.h 2013-07-01 08:09:49 UTC
(rev 27698)
@@ -85,17 +85,20 @@
const
struct GNUNET_ATS_Information *atsi,
uint32_t atsi_count);
+
/**
* Start the normalization component
*
* @param pref_ch_cb callback to call on relative preference changing
- * @param pref_ch_cb_cls cls for the callback
+ * @param pref_ch_cb_cls cls for the preference callback
+ * @param property_ch_cb callback to call on relative property changing
+ * @param property_ch_cb_cls cls for the property callback
*/
void
GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb,
-
void *pref_ch_cb_cls,
-
GAS_Normalization_property_changed_cb property_ch_ch_cls,
-
void *property_ch_cb_cls);
+ void *pref_ch_cb_cls,
+ GAS_Normalization_property_changed_cb property_ch_cb,
+ void *property_ch_cb_cls);
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27698 - gnunet/src/ats,
gnunet <=