#include "platform.h"
#include "gnunet_util_lib.h"
#include "testing_cmds.h"
#include "gnunet_testing_plugin.h"
#include "gnunet_testing_barrier.h"
#include "gnunet_testing_netjail_lib.h"
Go to the source code of this file.
Macros | |
#define | LOG(kind, ...) GNUNET_log (kind, __VA_ARGS__) |
Generic logging shortcut. More... | |
Functions | |
static void | block_until_all_peers_started_cleanup (void *cls) |
The cleanup function of this cmd frees resources the cmd allocated. More... | |
static int | block_until_external_trigger_traits (void *cls, const void **ret, const char *trait, unsigned int index) |
static void | block_until_all_peers_started_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
This function does nothing but to start the cmd. More... | |
struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_block_until_external_trigger (const char *label) |
Create command. More... | |
#define LOG | ( | kind, | |
... | |||
) | GNUNET_log (kind, __VA_ARGS__) |
Generic logging shortcut.
Definition at line 36 of file testing_api_cmd_block_until_external_trigger.c.
|
static |
The cleanup function of this cmd frees resources the cmd allocated.
Definition at line 44 of file testing_api_cmd_block_until_external_trigger.c.
References GNUNET_free.
Referenced by GNUNET_TESTING_cmd_block_until_external_trigger().
|
static |
Definition at line 53 of file testing_api_cmd_block_until_external_trigger.c.
References GNUNET_TESTING_BlockState::ac, GNUNET_TESTING_get_trait(), GNUNET_TESTING_make_trait_async_context(), GNUNET_TESTING_make_trait_block_state(), GNUNET_TESTING_trait_end(), GNUNET_TESTING_Trait::index, and ret.
Referenced by GNUNET_TESTING_cmd_block_until_external_trigger().
|
static |
This function does nothing but to start the cmd.
Definition at line 78 of file testing_api_cmd_block_until_external_trigger.c.
References GNUNET_TESTING_Command::asynchronous_finish, GNUNET_TESTING_BlockState::asynchronous_finish, GNUNET_ERROR_TYPE_DEBUG, GNUNET_TESTING_interpreter_get_current_command(), GNUNET_YES, is, GNUNET_TESTING_BlockState::label, and LOG.
Referenced by GNUNET_TESTING_cmd_block_until_external_trigger().
struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_block_until_external_trigger | ( | const char * | label | ) |
Create command.
This command is used to block the loop, until the command is finished by other commands, using a trait to get this commands struct GNUNET_TESTING_AsyncContext.
label | name for command. |
Definition at line 106 of file testing_api_cmd_block_until_external_trigger.c.
References GNUNET_TESTING_BlockState::ac, block_until_all_peers_started_cleanup(), block_until_all_peers_started_run(), block_until_external_trigger_traits(), GNUNET_new, GNUNET_TESTING_command_new(), and GNUNET_TESTING_BlockState::label.