diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-18 14:34:48 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-18 14:34:48 +0000 |
commit | 2bfa211933d6285ffbdc7d871e695838b5d08b9f (patch) | |
tree | 098f862a0de6a983b85aed48618af2d805059341 /src/testbed | |
parent | 23dda19572e38c3f533b9b35167a090932e85f57 (diff) | |
download | gnunet-2bfa211933d6285ffbdc7d871e695838b5d08b9f.tar.gz gnunet-2bfa211933d6285ffbdc7d871e695838b5d08b9f.zip |
- doxygen
Diffstat (limited to 'src/testbed')
-rw-r--r-- | src/testbed/gnunet-service-testbed.h | 2 | ||||
-rw-r--r-- | src/testbed/gnunet-service-testbed_cache.c | 25 | ||||
-rw-r--r-- | src/testbed/gnunet-service-testbed_oc.c | 4 | ||||
-rw-r--r-- | src/testbed/gnunet_testbed_ll_master.c | 2 | ||||
-rw-r--r-- | src/testbed/gnunet_testbed_ll_monitor.c | 2 | ||||
-rw-r--r-- | src/testbed/testbed_api_operations.c | 6 | ||||
-rw-r--r-- | src/testbed/testbed_api_operations.h | 2 | ||||
-rw-r--r-- | src/testbed/testbed_api_testbed.c | 3 |
8 files changed, 28 insertions, 18 deletions
diff --git a/src/testbed/gnunet-service-testbed.h b/src/testbed/gnunet-service-testbed.h index 37f6a6aaf..8b3650e28 100644 --- a/src/testbed/gnunet-service-testbed.h +++ b/src/testbed/gnunet-service-testbed.h | |||
@@ -828,7 +828,7 @@ GST_cache_lookup_hello (const unsigned int peer_id); | |||
828 | * Caches the HELLO of the given peer. Updates the HELLO if it was already | 828 | * Caches the HELLO of the given peer. Updates the HELLO if it was already |
829 | * cached before | 829 | * cached before |
830 | * | 830 | * |
831 | * @param id the peer identity of the peer whose HELLO has to be cached | 831 | * @param peer_id the peer identity of the peer whose HELLO has to be cached |
832 | * @param hello the HELLO message | 832 | * @param hello the HELLO message |
833 | */ | 833 | */ |
834 | void | 834 | void |
diff --git a/src/testbed/gnunet-service-testbed_cache.c b/src/testbed/gnunet-service-testbed_cache.c index 5686c9258..ac4bcecec 100644 --- a/src/testbed/gnunet-service-testbed_cache.c +++ b/src/testbed/gnunet-service-testbed_cache.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file testbed/gnunet-service-testbed_cache.h | 22 | * @file testbed/gnunet-service-testbed_cache.c |
23 | * @brief testbed cache implementation | 23 | * @brief testbed cache implementation |
24 | * @author Sree Harsha Totakura | 24 | * @author Sree Harsha Totakura |
25 | */ | 25 | */ |
@@ -299,7 +299,8 @@ static unsigned int cache_size; | |||
299 | /** | 299 | /** |
300 | * Looks up in the cache and returns the entry | 300 | * Looks up in the cache and returns the entry |
301 | * | 301 | * |
302 | * @param id the peer identity of the peer whose corresponding entry has to be looked up | 302 | * @param key the peer identity of the peer whose corresponding entry has to be |
303 | * looked up | ||
303 | * @return the HELLO message; NULL if not found | 304 | * @return the HELLO message; NULL if not found |
304 | */ | 305 | */ |
305 | static struct CacheEntry * | 306 | static struct CacheEntry * |
@@ -713,7 +714,19 @@ oprelease_get_handle_core (void *cls) | |||
713 | * lookup in the cache; if not, a new operation is started to open the transport | 714 | * lookup in the cache; if not, a new operation is started to open the transport |
714 | * handle and will be given in the callback when it is available. | 715 | * handle and will be given in the callback when it is available. |
715 | * | 716 | * |
716 | * @param cls the cache entry | 717 | * @param peer_id the index of the peer |
718 | * @param cgh the CacheGetHandle | ||
719 | * @param cfg the configuration with which the transport handle has to be | ||
720 | * created if it was not present in the cache | ||
721 | * @param target the peer identify of the peer whose connection to | ||
722 | * TRANSPORT/CORE (depending on the type of 'cgh') subsystem will be | ||
723 | * notified through the connect_notify_cb. Can be NULL | ||
724 | * @param connect_notify_cb the callback to call when the given target peer is | ||
725 | * connected. This callback will only be called once or never again (in | ||
726 | * case the target peer cannot be connected). Can be NULL | ||
727 | * @param connect_notify_cb_cls the closure for the above callback | ||
728 | * @return the handle which can be used to cancel or mark that the handle is no | ||
729 | * longer being used | ||
717 | */ | 730 | */ |
718 | static struct GSTCacheGetHandle * | 731 | static struct GSTCacheGetHandle * |
719 | cache_get_handle (unsigned int peer_id, struct GSTCacheGetHandle *cgh, | 732 | cache_get_handle (unsigned int peer_id, struct GSTCacheGetHandle *cgh, |
@@ -950,7 +963,7 @@ GST_cache_get_handle_done (struct GSTCacheGetHandle *cgh) | |||
950 | * connected. This callback will only be called once or never again (in | 963 | * connected. This callback will only be called once or never again (in |
951 | * case the target peer cannot be connected). Can be NULL | 964 | * case the target peer cannot be connected). Can be NULL |
952 | * @param connect_notify_cb_cls the closure for the above callback | 965 | * @param connect_notify_cb_cls the closure for the above callback |
953 | * @return the handle which can be used cancel or mark that the handle is no | 966 | * @return the handle which can be used to cancel or mark that the handle is no |
954 | * longer being used | 967 | * longer being used |
955 | */ | 968 | */ |
956 | struct GSTCacheGetHandle * | 969 | struct GSTCacheGetHandle * |
@@ -990,7 +1003,7 @@ GST_cache_get_handle_transport (unsigned int peer_id, | |||
990 | * connected. This callback will only be called once or never again (in | 1003 | * connected. This callback will only be called once or never again (in |
991 | * case the target peer cannot be connected). Can be NULL | 1004 | * case the target peer cannot be connected). Can be NULL |
992 | * @param connect_notify_cb_cls the closure for the above callback | 1005 | * @param connect_notify_cb_cls the closure for the above callback |
993 | * @return the handle which can be used cancel or mark that the handle is no | 1006 | * @return the handle which can be used to cancel or mark that the handle is no |
994 | * longer being used | 1007 | * longer being used |
995 | */ | 1008 | */ |
996 | struct GSTCacheGetHandle * | 1009 | struct GSTCacheGetHandle * |
@@ -1039,7 +1052,7 @@ GST_cache_lookup_hello (const unsigned int peer_id) | |||
1039 | * Caches the HELLO of the given peer. Updates the HELLO if it was already | 1052 | * Caches the HELLO of the given peer. Updates the HELLO if it was already |
1040 | * cached before | 1053 | * cached before |
1041 | * | 1054 | * |
1042 | * @param id the peer identity of the peer whose HELLO has to be cached | 1055 | * @param peer_id the peer identity of the peer whose HELLO has to be cached |
1043 | * @param hello the HELLO message | 1056 | * @param hello the HELLO message |
1044 | */ | 1057 | */ |
1045 | void | 1058 | void |
diff --git a/src/testbed/gnunet-service-testbed_oc.c b/src/testbed/gnunet-service-testbed_oc.c index 4d573cb1a..7f7695cc2 100644 --- a/src/testbed/gnunet-service-testbed_oc.c +++ b/src/testbed/gnunet-service-testbed_oc.c | |||
@@ -1357,10 +1357,8 @@ timeout_rocc_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1357 | * Function called to notify transport users that another | 1357 | * Function called to notify transport users that another |
1358 | * peer connected to us. | 1358 | * peer connected to us. |
1359 | * | 1359 | * |
1360 | * @param cls closure | 1360 | * @param cls the RemoteOverlayConnectContext |
1361 | * @param new_peer the peer that connected | 1361 | * @param new_peer the peer that connected |
1362 | * @param ats performance data | ||
1363 | * @param ats_count number of entries in ats (excluding 0-termination) | ||
1364 | */ | 1362 | */ |
1365 | static void | 1363 | static void |
1366 | cache_transport_peer_connect_notify (void *cls, | 1364 | cache_transport_peer_connect_notify (void *cls, |
diff --git a/src/testbed/gnunet_testbed_ll_master.c b/src/testbed/gnunet_testbed_ll_master.c index 68a815545..ebef5a3aa 100644 --- a/src/testbed/gnunet_testbed_ll_master.c +++ b/src/testbed/gnunet_testbed_ll_master.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file testbed/ll_master.c | 22 | * @file testbed/gnunet_testbed_ll_master.c |
23 | * @brief The load level master. Creates child processes through LoadLeveler | 23 | * @brief The load level master. Creates child processes through LoadLeveler |
24 | * @author Sree Harsha Totakura <sreeharsha@totakura.in> | 24 | * @author Sree Harsha Totakura <sreeharsha@totakura.in> |
25 | */ | 25 | */ |
diff --git a/src/testbed/gnunet_testbed_ll_monitor.c b/src/testbed/gnunet_testbed_ll_monitor.c index 3a43b490b..666543ff7 100644 --- a/src/testbed/gnunet_testbed_ll_monitor.c +++ b/src/testbed/gnunet_testbed_ll_monitor.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file testbed/ll_monitor.c | 22 | * @file testbed/gnunet_testbed_ll_monitor.c |
23 | * @brief The load level monitor process. This is called whenever a job event | 23 | * @brief The load level monitor process. This is called whenever a job event |
24 | * happens. This file is called with the following syntax: | 24 | * happens. This file is called with the following syntax: |
25 | * "monitor_program job_id user_arg state exit_status" | 25 | * "monitor_program job_id user_arg state exit_status" |
diff --git a/src/testbed/testbed_api_operations.c b/src/testbed/testbed_api_operations.c index d213d3334..a60ecfd97 100644 --- a/src/testbed/testbed_api_operations.c +++ b/src/testbed/testbed_api_operations.c | |||
@@ -287,11 +287,11 @@ GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue) | |||
287 | * is not empty) | 287 | * is not empty) |
288 | */ | 288 | */ |
289 | int | 289 | int |
290 | GNUNET_TESTBED_operation_queue_destroy_empty_ (struct OperationQueue *q) | 290 | GNUNET_TESTBED_operation_queue_destroy_empty_ (struct OperationQueue *queue) |
291 | { | 291 | { |
292 | if (NULL != q->head) | 292 | if (NULL != queue->head) |
293 | return GNUNET_NO; | 293 | return GNUNET_NO; |
294 | GNUNET_TESTBED_operation_queue_destroy_ (q); | 294 | GNUNET_TESTBED_operation_queue_destroy_ (queue); |
295 | return GNUNET_YES; | 295 | return GNUNET_YES; |
296 | } | 296 | } |
297 | 297 | ||
diff --git a/src/testbed/testbed_api_operations.h b/src/testbed/testbed_api_operations.h index 403dd889c..8ab6944f2 100644 --- a/src/testbed/testbed_api_operations.h +++ b/src/testbed/testbed_api_operations.h | |||
@@ -66,7 +66,7 @@ GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue); | |||
66 | * is not empty) | 66 | * is not empty) |
67 | */ | 67 | */ |
68 | int | 68 | int |
69 | GNUNET_TESTBED_operation_queue_destroy_empty_ (struct OperationQueue *q); | 69 | GNUNET_TESTBED_operation_queue_destroy_empty_ (struct OperationQueue *queue); |
70 | 70 | ||
71 | 71 | ||
72 | /** | 72 | /** |
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index 5e62a2845..76177b486 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c | |||
@@ -516,8 +516,7 @@ shutdown_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
516 | /** | 516 | /** |
517 | * call test master callback | 517 | * call test master callback |
518 | * | 518 | * |
519 | * @param cls the run context | 519 | * @param rc the RunContext |
520 | * @param tc the task context | ||
521 | */ | 520 | */ |
522 | static void | 521 | static void |
523 | call_master (struct RunContext *rc) | 522 | call_master (struct RunContext *rc) |