diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-01 08:09:49 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-01 08:09:49 +0000 |
commit | 54ee92af601faa1d8fc37421f9b766eb8557cf65 (patch) | |
tree | 159c63f905f024739c987c0c397e6d20c2f1b1da /src/ats | |
parent | 7383b6f5745e344dd14abcd69c718d9d2c0b69f7 (diff) | |
download | gnunet-54ee92af601faa1d8fc37421f9b766eb8557cf65.tar.gz gnunet-54ee92af601faa1d8fc37421f9b766eb8557cf65.zip |
doxygen fixes
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 13 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_normalization.c | 9 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_normalization.h | 11 |
3 files changed, 22 insertions, 11 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index f32c6a7c9..245cfeff7 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c | |||
@@ -909,6 +909,13 @@ GAS_addresses_update (struct GAS_Addresses_Handle *handle, | |||
909 | return; | 909 | return; |
910 | } | 910 | } |
911 | 911 | ||
912 | if (NULL == aa->solver_information) | ||
913 | { | ||
914 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Tried to update unknown address for peer `%s' `%s' session id %u\n", | ||
915 | GNUNET_i2s (peer), plugin_name, session_id); | ||
916 | return; | ||
917 | } | ||
918 | |||
912 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 919 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
913 | "Received `%s' for peer `%s' address \n", | 920 | "Received `%s' for peer `%s' address \n", |
914 | "ADDRESS UPDATE", | 921 | "ADDRESS UPDATE", |
@@ -1317,7 +1324,7 @@ GAS_addresses_handle_backoff_reset (struct GAS_Addresses_Handle *handle, | |||
1317 | * @param cls the address handle | 1324 | * @param cls the address handle |
1318 | * @param peer the peer | 1325 | * @param peer the peer |
1319 | * @param kind the ATS kind | 1326 | * @param kind the ATS kind |
1320 | * @param double the new relative preference value | 1327 | * @param pref_rel the new relative preference value |
1321 | */ | 1328 | */ |
1322 | static void | 1329 | static void |
1323 | normalized_preference_changed_cb (void *cls, | 1330 | normalized_preference_changed_cb (void *cls, |
@@ -1337,8 +1344,8 @@ normalized_preference_changed_cb (void *cls, | |||
1337 | * | 1344 | * |
1338 | * @param cls the address handle | 1345 | * @param cls the address handle |
1339 | * @param peer the peer | 1346 | * @param peer the peer |
1340 | * @param kind the ATS kind | 1347 | * @param type the ATS type |
1341 | * @param double the new relative preference value | 1348 | * @param prop_rel the new relative preference value |
1342 | */ | 1349 | */ |
1343 | static void | 1350 | static void |
1344 | normalized_property_changed_cb (void *cls, | 1351 | normalized_property_changed_cb (void *cls, |
diff --git a/src/ats/gnunet-service-ats_normalization.c b/src/ats/gnunet-service-ats_normalization.c index 8c0514373..86e6f1700 100644 --- a/src/ats/gnunet-service-ats_normalization.c +++ b/src/ats/gnunet-service-ats_normalization.c | |||
@@ -648,7 +648,8 @@ normalize_address (void *cls, const struct GNUNET_HashCode *h, void *k) | |||
648 | * Normalize avg_value to a range of values between [1.0, 2.0] | 648 | * Normalize avg_value to a range of values between [1.0, 2.0] |
649 | * based on min max values currently known. | 649 | * based on min max values currently known. |
650 | * | 650 | * |
651 | * @param property p the property | 651 | * @param addresses the address hashmap |
652 | * @param p the property | ||
652 | * @param address the address | 653 | * @param address the address |
653 | * @param avg_value the value to normalize | 654 | * @param avg_value the value to normalize |
654 | */ | 655 | */ |
@@ -772,13 +773,13 @@ GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiHashMap *addr | |||
772 | } | 773 | } |
773 | 774 | ||
774 | 775 | ||
775 | |||
776 | |||
777 | /** | 776 | /** |
778 | * Start the normalization component | 777 | * Start the normalization component |
779 | * | 778 | * |
780 | * @param pref_ch_cb callback to call on relative preference changing | 779 | * @param pref_ch_cb callback to call on relative preference changing |
781 | * @param pref_ch_cb_cls cls for the callback | 780 | * @param pref_ch_cb_cls cls for the preference callback |
781 | * @param property_ch_cb callback to call on relative property changing | ||
782 | * @param property_ch_cb_cls cls for the property callback | ||
782 | */ | 783 | */ |
783 | void | 784 | void |
784 | GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb, | 785 | GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb, |
diff --git a/src/ats/gnunet-service-ats_normalization.h b/src/ats/gnunet-service-ats_normalization.h index 35906be7d..3637766f5 100644 --- a/src/ats/gnunet-service-ats_normalization.h +++ b/src/ats/gnunet-service-ats_normalization.h | |||
@@ -85,17 +85,20 @@ GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiHashMap *addr | |||
85 | const struct GNUNET_ATS_Information *atsi, | 85 | const struct GNUNET_ATS_Information *atsi, |
86 | uint32_t atsi_count); | 86 | uint32_t atsi_count); |
87 | 87 | ||
88 | |||
88 | /** | 89 | /** |
89 | * Start the normalization component | 90 | * Start the normalization component |
90 | * | 91 | * |
91 | * @param pref_ch_cb callback to call on relative preference changing | 92 | * @param pref_ch_cb callback to call on relative preference changing |
92 | * @param pref_ch_cb_cls cls for the callback | 93 | * @param pref_ch_cb_cls cls for the preference callback |
94 | * @param property_ch_cb callback to call on relative property changing | ||
95 | * @param property_ch_cb_cls cls for the property callback | ||
93 | */ | 96 | */ |
94 | void | 97 | void |
95 | GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb, | 98 | GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb, |
96 | void *pref_ch_cb_cls, | 99 | void *pref_ch_cb_cls, |
97 | GAS_Normalization_property_changed_cb property_ch_ch_cls, | 100 | GAS_Normalization_property_changed_cb property_ch_cb, |
98 | void *property_ch_cb_cls); | 101 | void *property_ch_cb_cls); |
99 | 102 | ||
100 | 103 | ||
101 | /** | 104 | /** |