aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_netjail_stop_testsystem.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-08-24 11:56:13 +0200
committert3sserakt <t3ss@posteo.de>2021-08-24 11:56:13 +0200
commit5ddaa3f8eb5e01882540f21ddf237f3a41311e8a (patch)
tree765617baebf4366c9584d71863c3077f5d107d49 /src/testing/testing_api_cmd_netjail_stop_testsystem.c
parent9d5a8c05f3a33c49fd97e5b8ef99d58b96704c6d (diff)
downloadgnunet-5ddaa3f8eb5e01882540f21ddf237f3a41311e8a.tar.gz
gnunet-5ddaa3f8eb5e01882540f21ddf237f3a41311e8a.zip
- fixed mem leaks, added code doc, formatting, removed trace logs
Diffstat (limited to 'src/testing/testing_api_cmd_netjail_stop_testsystem.c')
-rw-r--r--src/testing/testing_api_cmd_netjail_stop_testsystem.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/testing/testing_api_cmd_netjail_stop_testsystem.c b/src/testing/testing_api_cmd_netjail_stop_testsystem.c
index bed9f3ebf..d6e733e05 100644
--- a/src/testing/testing_api_cmd_netjail_stop_testsystem.c
+++ b/src/testing/testing_api_cmd_netjail_stop_testsystem.c
@@ -28,6 +28,10 @@
28#include "testing_cmds.h" 28#include "testing_cmds.h"
29 29
30 30
31/**
32 * Struct to store information handed over to callbacks.
33 *
34 */
31struct StopHelperState 35struct StopHelperState
32{ 36{
33 37
@@ -45,7 +49,7 @@ struct StopHelperState
45 49
46 50
47/** 51/**
48* 52* Code to clean up ressource this cmd used.
49* 53*
50* @param cls closure 54* @param cls closure
51* @param cmd current CMD being cleaned up. 55* @param cmd current CMD being cleaned up.
@@ -59,14 +63,9 @@ stop_testing_system_cleanup (void *cls,
59 63
60 64
61/** 65/**
62* 66 * Trait function of this cmd does nothing.
63* 67 *
64* @param cls closure. 68 */
65* @param[out] ret result
66* @param trait name of the trait.
67* @param index index number of the object to offer.
68* @return #GNUNET_OK on success.
69*/
70static int 69static int
71stop_testing_system_traits (void *cls, 70stop_testing_system_traits (void *cls,
72 const void **ret, 71 const void **ret,
@@ -78,7 +77,7 @@ stop_testing_system_traits (void *cls,
78 77
79 78
80/** 79/**
81* Run the "hello world" CMD. 80* This function stops the helper process for each node.
82* 81*
83* @param cls closure. 82* @param cls closure.
84* @param cmd CMD being run. 83* @param cmd CMD being run.
@@ -110,9 +109,11 @@ stop_testing_system_run (void *cls,
110 109
111/** 110/**
112 * Create command. 111 * Create command.
113 * 112 * @param helper_start_label label of the cmd to start the test system.
114 * @param label name for command. 113 * @param label name for command.
115 * @param binaryname to exec. 114 * @param .
115 * @param local_m Number of nodes in a network namespace. //TODO make this a unsigned int
116 * @param global_n Number of network namespaces. //TODO make this a unsigned int
116 * @return command. 117 * @return command.
117 */ 118 */
118struct GNUNET_TESTING_Command 119struct GNUNET_TESTING_Command