#include "platform.h"
#include "gnunet_testing_ng_lib.h"
#include "gnunet_testing_plugin.h"
#include "gnunet_testing_barrier.h"
#include "gnunet_testing_netjail_lib.h"
#include "testing_cmds.h"
Go to the source code of this file.
Data Structures | |
struct | StopHelperState |
Struct to store information handed over to callbacks. More... | |
Functions | |
static void | stop_testing_system_cleanup (void *cls) |
Code to clean up resource this cmd used. More... | |
static void | stop_testing_system_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
This function stops the helper process for each node. More... | |
struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_stop_cmds_helper (const char *label, const char *helper_start_label, struct GNUNET_TESTING_NetjailTopology *topology) |
Create command. More... | |
|
static |
Code to clean up resource this cmd used.
cls | closure |
cmd | current CMD being cleaned up. |
Definition at line 72 of file testing_api_cmd_netjail_stop_cmds_helper.c.
References GNUNET_free.
Referenced by GNUNET_TESTING_cmd_stop_cmds_helper().
|
static |
This function stops the helper process for each node.
cls | closure. |
is | interpreter state. |
Definition at line 87 of file testing_api_cmd_netjail_stop_cmds_helper.c.
References StopHelperState::global_n, GNUNET_ERROR_TYPE_DEBUG, GNUNET_free, GNUNET_HELPER_stop(), GNUNET_log, GNUNET_TESTING_get_trait_helper_handles(), GNUNET_TESTING_interpreter_lookup_command(), GNUNET_YES, is, StopHelperState::known, and StopHelperState::local_m.
Referenced by GNUNET_TESTING_cmd_stop_cmds_helper().
struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_stop_cmds_helper | ( | const char * | label, |
const char * | helper_start_label, | ||
struct GNUNET_TESTING_NetjailTopology * | topology | ||
) |
Create command.
label | name for command. |
helper_start_label | label of the cmd to start the test system. |
topology | The complete topology information. |
Definition at line 139 of file testing_api_cmd_netjail_stop_cmds_helper.c.
References StopHelperState::global_n, GNUNET_new, GNUNET_TESTING_command_new(), StopHelperState::helper_start_label, StopHelperState::known, StopHelperState::local_m, GNUNET_TESTING_NetjailTopology::namespaces_n, GNUNET_TESTING_NetjailTopology::nodes_m, GNUNET_TESTING_NetjailTopology::nodes_x, stop_testing_system_cleanup(), stop_testing_system_run(), and StopHelperState::topology.