#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_testing_core_lib.h"
#include "gnunet_testing_transport_lib.h"
#include "gnunet_messenger_service.h"
#include "messenger-testing-cmds.h"
Go to the source code of this file.
Data Structures | |
struct | GNUNET_MESSENGER_JoinRoomState |
Functions | |
static void | join_room_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
static void | join_room_cleanup (void *cls) |
struct GNUNET_TESTING_Command | GNUNET_MESSENGER_cmd_join_room (const char *label, const char *service_label, const char *room_key) |
|
static |
Definition at line 42 of file testing_messenger_cmd_join_room.c.
References GNUNET_MESSENGER_TestStage::door_id, GNUNET_CONTAINER_multihashmap_get(), GNUNET_CONTAINER_multihashmap_put(), GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST, GNUNET_CRYPTO_hash(), GNUNET_CRYPTO_QUALITY_WEAK, GNUNET_CRYPTO_random_u32(), GNUNET_ERROR_TYPE_ERROR, GNUNET_free, GNUNET_log, GNUNET_MESSENGER_create_room_state(), GNUNET_MESSENGER_enter_room(), GNUNET_MESSENGER_get_trait_state(), GNUNET_MESSENGER_open_room(), GNUNET_MESSENGER_STAGE_JOIN_ENTER_ROOM, GNUNET_MESSENGER_STAGE_JOIN_OPEN_ROOM, GNUNET_OK, GNUNET_TESTING_get_peer(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_lookup_command(), is, GNUNET_MESSENGER_TestStage::join, key, GNUNET_MESSENGER_StartServiceState::msg, GNUNET_MESSENGER_TestStageTopology::peer_amount, GNUNET_MESSENGER_StartServiceState::peer_index, GNUNET_MESSENGER_TestStageTopology::peer_stages, GNUNET_MESSENGER_JoinRoomState::room, GNUNET_MESSENGER_JoinRoomState::room_key, GNUNET_MESSENGER_StartServiceState::rooms, GNUNET_MESSENGER_JoinRoomState::service_label, GNUNET_MESSENGER_StartServiceState::stage_index, GNUNET_MESSENGER_StartServiceState::tl_system, and GNUNET_MESSENGER_StartServiceState::topology.
Referenced by GNUNET_MESSENGER_cmd_join_room().
|
static |
Definition at line 155 of file testing_messenger_cmd_join_room.c.
References GNUNET_free, GNUNET_MESSENGER_JoinRoomState::room_key, and GNUNET_MESSENGER_JoinRoomState::service_label.
Referenced by GNUNET_MESSENGER_cmd_join_room().
struct GNUNET_TESTING_Command GNUNET_MESSENGER_cmd_join_room | ( | const char * | label, |
const char * | service_label, | ||
const char * | room_key | ||
) |
Definition at line 166 of file testing_messenger_cmd_join_room.c.
References GNUNET_new, GNUNET_strdup, GNUNET_TESTING_command_new, join_room_cleanup(), join_room_run(), room_key, GNUNET_MESSENGER_JoinRoomState::room_key, and GNUNET_MESSENGER_JoinRoomState::service_label.