testing lib for messenger service More...
Go to the source code of this file.
Macros | |
#define | GNUNET_MESSENGER_MAKE_DECL_SIMPLE_TRAIT(name, type) |
Create headers for a trait with name name for statically allocated data of type type. More... | |
#define | GNUNET_MESSENGER_MAKE_IMPL_SIMPLE_TRAIT(name, type) |
Create C implementation for a trait with name name for statically allocated data of type type. More... | |
#define | GNUNET_MESSENGER_SIMPLE_TRAITS(op) op (state, struct GNUNET_MESSENGER_StartServiceState) |
Call op on all simple traits. More... | |
Functions | |
struct GNUNET_TESTING_Command | GNUNET_MESSENGER_cmd_start_service (const char *label, const char *peer_label, const char *system_label, struct GNUNET_MESSENGER_TestStageTopology *topology, unsigned int peer_index) |
struct GNUNET_TESTING_Command | GNUNET_MESSENGER_cmd_stop_service (const char *label, const char *service_label) |
struct GNUNET_TESTING_Command | GNUNET_MESSENGER_cmd_join_room (const char *label, const char *service_label, const char *room_key) |
enum GNUNET_GenericReturnValue | GNUNET_MESSENGER_get_trait_state (const struct GNUNET_TESTING_Command *cmd, struct GNUNET_MESSENGER_StartServiceState **ret) |
struct GNUNET_TESTING_Trait | GNUNET_MESSENGER_make_trait_state (struct GNUNET_MESSENGER_StartServiceState *value) |
testing lib for messenger service
Definition in file messenger-testing-cmds.h.
Create headers for a trait with name name for statically allocated data of type type.
Definition at line 54 of file messenger-testing-cmds.h.
Create C implementation for a trait with name name for statically allocated data of type type.
Definition at line 68 of file messenger-testing-cmds.h.
#define GNUNET_MESSENGER_SIMPLE_TRAITS | ( | op | ) | op (state, struct GNUNET_MESSENGER_StartServiceState) |
Call op on all simple traits.
Definition at line 95 of file messenger-testing-cmds.h.
struct GNUNET_TESTING_Command GNUNET_MESSENGER_cmd_start_service | ( | const char * | label, |
const char * | peer_label, | ||
const char * | system_label, | ||
struct GNUNET_MESSENGER_TestStageTopology * | topology, | ||
unsigned int | peer_index | ||
) |
Definition at line 145 of file testing_messenger_cmd_start_service.c.
References GNUNET_new, GNUNET_strdup, GNUNET_TESTING_command_new, GNUNET_MESSENGER_StartServiceState::is, GNUNET_MESSENGER_StartServiceState::msg, GNUNET_MESSENGER_StartServiceState::peer_index, GNUNET_MESSENGER_StartServiceState::peer_label, GNUNET_MESSENGER_StartServiceState::rooms, GNUNET_MESSENGER_StartServiceState::stage_index, start_service_cleanup(), start_service_run(), start_service_traits(), GNUNET_MESSENGER_StartServiceState::system_label, GNUNET_MESSENGER_StartServiceState::tl_system, and GNUNET_MESSENGER_StartServiceState::topology.
struct GNUNET_TESTING_Command GNUNET_MESSENGER_cmd_stop_service | ( | const char * | label, |
const char * | service_label | ||
) |
Definition at line 82 of file testing_messenger_cmd_stop_service.c.
References GNUNET_new, GNUNET_strdup, GNUNET_TESTING_command_new, GNUNET_MESSENGER_StopServiceState::service_label, stop_service_cleanup(), and stop_service_run().
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.
enum GNUNET_GenericReturnValue GNUNET_MESSENGER_get_trait_state | ( | const struct GNUNET_TESTING_Command * | cmd, |
struct GNUNET_MESSENGER_StartServiceState ** | ret | ||
) |
Definition at line 29 of file testing_messenger_traits.c.
Referenced by join_room_run(), and stop_service_run().
struct GNUNET_TESTING_Trait GNUNET_MESSENGER_make_trait_state | ( | struct GNUNET_MESSENGER_StartServiceState * | value | ) |
Definition at line 29 of file testing_messenger_traits.c.
Referenced by start_service_traits().