diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-13 17:00:10 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-13 17:00:10 +0000 |
commit | 3b2be11385b8b4626b86d4438008eb0508f856fa (patch) | |
tree | 50129841d9edb39ac8a1a01b3972c15bf6c198f9 /src/ats | |
parent | 6be522885e1ad907c00a293b928fc37973f0d331 (diff) | |
download | gnunet-3b2be11385b8b4626b86d4438008eb0508f856fa.tar.gz gnunet-3b2be11385b8b4626b86d4438008eb0508f856fa.zip |
- doxygen errors
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 1 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 4 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_addresses_mlp.c | 13 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_addresses_mlp.h | 2 |
4 files changed, 13 insertions, 7 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index dd70b634f..e64c69a9a 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -754,6 +754,7 @@ get_addresses (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
754 | 754 | ||
755 | /** | 755 | /** |
756 | * Returns where the address is located: LAN or WAN or ... | 756 | * Returns where the address is located: LAN or WAN or ... |
757 | * @param sh the scheduling handle | ||
757 | * @param addr address | 758 | * @param addr address |
758 | * @param addrlen address length | 759 | * @param addrlen address length |
759 | * @return location as GNUNET_ATS_Information | 760 | * @return location as GNUNET_ATS_Information |
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index 556214f80..04cc07c8b 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c | |||
@@ -39,14 +39,14 @@ | |||
39 | 39 | ||
40 | enum ATS_Mode | 40 | enum ATS_Mode |
41 | { | 41 | { |
42 | /** | 42 | /* |
43 | * Assign each peer an equal amount of bandwidth (bw) | 43 | * Assign each peer an equal amount of bandwidth (bw) |
44 | * | 44 | * |
45 | * bw_per_peer = bw_total / #active addresses | 45 | * bw_per_peer = bw_total / #active addresses |
46 | */ | 46 | */ |
47 | SIMPLE, | 47 | SIMPLE, |
48 | 48 | ||
49 | /** | 49 | /* |
50 | * Use MLP solver to assign bandwidth | 50 | * Use MLP solver to assign bandwidth |
51 | */ | 51 | */ |
52 | MLP | 52 | MLP |
diff --git a/src/ats/gnunet-service-ats_addresses_mlp.c b/src/ats/gnunet-service-ats_addresses_mlp.c index 602925e1f..cdda9d790 100644 --- a/src/ats/gnunet-service-ats_addresses_mlp.c +++ b/src/ats/gnunet-service-ats_addresses_mlp.c | |||
@@ -151,7 +151,7 @@ mlp_status_to_string (int retcode) | |||
151 | * Translate ATS properties to text | 151 | * Translate ATS properties to text |
152 | * Just intended for debugging | 152 | * Just intended for debugging |
153 | * | 153 | * |
154 | * @param retcode return code | 154 | * @param ats_index the ATS index |
155 | * @return string with result | 155 | * @return string with result |
156 | */ | 156 | */ |
157 | const char * | 157 | const char * |
@@ -195,7 +195,9 @@ mlp_ats_to_string (int ats_index) | |||
195 | 195 | ||
196 | /** | 196 | /** |
197 | * Find a peer in the DLL | 197 | * Find a peer in the DLL |
198 | * @param the peer to find | 198 | * |
199 | * @param mlp the mlp handle | ||
200 | * @param peer the peer to find | ||
199 | * @return the peer struct | 201 | * @return the peer struct |
200 | */ | 202 | */ |
201 | static struct ATS_Peer * | 203 | static struct ATS_Peer * |
@@ -381,6 +383,7 @@ mlp_lookup_ats (struct ATS_Address *addr, int ats_index) | |||
381 | * Adds the problem constraints for all addresses | 383 | * Adds the problem constraints for all addresses |
382 | * Required for problem recreation after address deletion | 384 | * Required for problem recreation after address deletion |
383 | * | 385 | * |
386 | * @param mlp the mlp handle | ||
384 | * @param addresses all addresses | 387 | * @param addresses all addresses |
385 | */ | 388 | */ |
386 | 389 | ||
@@ -684,6 +687,7 @@ create_columns_it (void *cls, const GNUNET_HashCode * key, void *value) | |||
684 | * Create the MLP problem | 687 | * Create the MLP problem |
685 | * | 688 | * |
686 | * @param mlp the MLP handle | 689 | * @param mlp the MLP handle |
690 | * @param addresses the hashmap containing all adresses | ||
687 | * @return GNUNET_OK or GNUNET_SYSERR | 691 | * @return GNUNET_OK or GNUNET_SYSERR |
688 | */ | 692 | */ |
689 | static int | 693 | static int |
@@ -1022,6 +1026,7 @@ GAS_mlp_solve_problem (struct GAS_MLP_Handle *mlp) | |||
1022 | /** | 1026 | /** |
1023 | * Init the MLP problem solving component | 1027 | * Init the MLP problem solving component |
1024 | * | 1028 | * |
1029 | * @param cfg the GNUNET_CONFIGURATION_Handle handle | ||
1025 | * @param stats the GNUNET_STATISTICS handle | 1030 | * @param stats the GNUNET_STATISTICS handle |
1026 | * @param max_duration maximum numbers of iterations for the LP/MLP Solver | 1031 | * @param max_duration maximum numbers of iterations for the LP/MLP Solver |
1027 | * @param max_iterations maximum time limit for the LP/MLP Solver | 1032 | * @param max_iterations maximum time limit for the LP/MLP Solver |
@@ -1393,13 +1398,13 @@ GAS_mlp_address_delete (struct GAS_MLP_Handle *mlp, struct GNUNET_CONTAINER_Mult | |||
1393 | * @param mlp the MLP Handle | 1398 | * @param mlp the MLP Handle |
1394 | * @param peer the peer | 1399 | * @param peer the peer |
1395 | * @param kind the kind to change the preference | 1400 | * @param kind the kind to change the preference |
1396 | * @param float the score | 1401 | * @param score the score |
1397 | */ | 1402 | */ |
1398 | void | 1403 | void |
1399 | GAS_mlp_address_change_preference (struct GAS_MLP_Handle *mlp, | 1404 | GAS_mlp_address_change_preference (struct GAS_MLP_Handle *mlp, |
1400 | const struct GNUNET_PeerIdentity *peer, | 1405 | const struct GNUNET_PeerIdentity *peer, |
1401 | enum GNUNET_ATS_PreferenceKind kind, | 1406 | enum GNUNET_ATS_PreferenceKind kind, |
1402 | float score) | 1407 | float ) |
1403 | { | 1408 | { |
1404 | GNUNET_STATISTICS_update (mlp->stats,"# LP address preference changes", 1, GNUNET_NO); | 1409 | GNUNET_STATISTICS_update (mlp->stats,"# LP address preference changes", 1, GNUNET_NO); |
1405 | 1410 | ||
diff --git a/src/ats/gnunet-service-ats_addresses_mlp.h b/src/ats/gnunet-service-ats_addresses_mlp.h index 43c2b66ad..52631eb3c 100644 --- a/src/ats/gnunet-service-ats_addresses_mlp.h +++ b/src/ats/gnunet-service-ats_addresses_mlp.h | |||
@@ -339,7 +339,7 @@ GAS_mlp_address_delete (struct GAS_MLP_Handle *mlp, struct GNUNET_CONTAINER_Mult | |||
339 | * @param mlp the MLP Handle | 339 | * @param mlp the MLP Handle |
340 | * @param peer the peer | 340 | * @param peer the peer |
341 | * @param kind the kind to change the preference | 341 | * @param kind the kind to change the preference |
342 | * @param float the score | 342 | * @param score the score |
343 | */ | 343 | */ |
344 | void | 344 | void |
345 | GAS_mlp_address_change_preference (struct GAS_MLP_Handle *mlp, | 345 | GAS_mlp_address_change_preference (struct GAS_MLP_Handle *mlp, |