cmd to block the interpreter loop until all peers started. More...
#include "platform.h"
#include "gnunet_util_lib.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.
Macros | |
#define | LOG(kind, ...) GNUNET_log (kind, __VA_ARGS__) |
Generic logging shortcut. More... | |
Functions | |
enum GNUNET_GenericReturnValue | local_test_prepared_traits (void *cls, const void **ret, const char *trait, unsigned int index) |
This function prepares an array with traits. More... | |
static void | local_test_prepared_cleanup (void *cls) |
The cleanup function of this cmd frees resources the cmd allocated. More... | |
static void | local_test_prepared_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
This function sends a GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_TESTS_PREPARED message to the master loop. More... | |
struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_local_test_prepared (const char *label, GNUNET_TESTING_cmd_helper_write_cb write_message) |
This command sends a GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_TESTS_PREPARED message to the master loop. More... | |
cmd to block the interpreter loop until all peers started.
Definition in file testing_api_cmd_local_test_prepared.c.
#define LOG | ( | kind, | |
... | |||
) | GNUNET_log (kind, __VA_ARGS__) |
Generic logging shortcut.
Definition at line 37 of file testing_api_cmd_local_test_prepared.c.
enum GNUNET_GenericReturnValue local_test_prepared_traits | ( | void * | cls, |
const void ** | ret, | ||
const char * | trait, | ||
unsigned int | index | ||
) |
This function prepares an array with traits.
Definition at line 1 of file testing_api_cmd_local_test_prepared.c.
|
static |
The cleanup function of this cmd frees resources the cmd allocated.
Definition at line 67 of file testing_api_cmd_local_test_prepared.c.
References GNUNET_free.
|
static |
This function sends a GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_TESTS_PREPARED message to the master loop.
Definition at line 80 of file testing_api_cmd_local_test_prepared.c.
References GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_TEST_PREPARED, GNUNET_new, GNUNET_TESTING_CommandLocalTestPrepared::header, GNUNET_MessageHeader::size, GNUNET_MessageHeader::type, and GNUNET_TESTING_LocalPreparedState::write_message.
struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_local_test_prepared | ( | const char * | label, |
GNUNET_TESTING_cmd_helper_write_cb | write_message | ||
) |
This command sends a GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_TESTS_PREPARED message to the master loop.
label | name for command. |
write_message | Callback to write messages to the master loop. |
Definition at line 80 of file testing_api_cmd_local_test_prepared.c.