Go to the source code of this file.
Data Structures | |
struct | GNUNET_MESSENGER_TestStage |
struct | GNUNET_MESSENGER_TestStageTopology |
struct | GNUNET_MESSENGER_RoomState |
struct | GNUNET_MESSENGER_StartServiceState |
Enumerations | |
enum | GNUNET_MESSENGER_TestStageJoin { GNUNET_MESSENGER_STAGE_JOIN_NONE = 0x0 , GNUNET_MESSENGER_STAGE_JOIN_OPEN_ROOM = 0x1 , GNUNET_MESSENGER_STAGE_JOIN_ENTER_ROOM = 0x2 } |
Functions | |
struct GNUNET_MESSENGER_TestStage | GNUNET_MESSENGER_create_stage_skip () |
struct GNUNET_MESSENGER_TestStage | GNUNET_MESSENGER_create_stage_open_room () |
struct GNUNET_MESSENGER_TestStage | GNUNET_MESSENGER_create_stage_enter_room (unsigned int door_id) |
struct GNUNET_MESSENGER_TestStageTopology * | GNUNET_MESSENGER_create_topo (unsigned int peer_amount, unsigned int stage_amount, const struct GNUNET_MESSENGER_TestStage peer_stages[static peer_amount *stage_amount]) |
void | GNUNET_MESSENGER_destroy_topo (struct GNUNET_MESSENGER_TestStageTopology *topology) |
struct GNUNET_MESSENGER_RoomState * | GNUNET_MESSENGER_create_room_state (struct GNUNET_MESSENGER_TestStageTopology *topology) |
void | GNUNET_MESSENGER_destroy_room_state (struct GNUNET_MESSENGER_RoomState *room_state) |
Enumerator | |
---|---|
GNUNET_MESSENGER_STAGE_JOIN_NONE | |
GNUNET_MESSENGER_STAGE_JOIN_OPEN_ROOM | |
GNUNET_MESSENGER_STAGE_JOIN_ENTER_ROOM |
Definition at line 30 of file testing_messenger.h.
struct GNUNET_MESSENGER_TestStage GNUNET_MESSENGER_create_stage_skip | ( | ) |
Definition at line 32 of file testing_messenger.c.
References GNUNET_MESSENGER_TestStage::door_id, GNUNET_MESSENGER_STAGE_JOIN_NONE, and GNUNET_MESSENGER_TestStage::join.
struct GNUNET_MESSENGER_TestStage GNUNET_MESSENGER_create_stage_open_room | ( | ) |
Definition at line 42 of file testing_messenger.c.
References GNUNET_MESSENGER_TestStage::door_id, GNUNET_MESSENGER_STAGE_JOIN_OPEN_ROOM, and GNUNET_MESSENGER_TestStage::join.
struct GNUNET_MESSENGER_TestStage GNUNET_MESSENGER_create_stage_enter_room | ( | unsigned int | door_id | ) |
struct GNUNET_MESSENGER_TestStageTopology * GNUNET_MESSENGER_create_topo | ( | unsigned int | peer_amount, |
unsigned int | stage_amount, | ||
const struct GNUNET_MESSENGER_TestStage | peer_stages[static peer_amount *stage_amount] | ||
) |
Definition at line 62 of file testing_messenger.c.
References GNUNET_assert, GNUNET_new, GNUNET_new_array, GNUNET_MESSENGER_TestStageTopology::peer_amount, GNUNET_MESSENGER_TestStageTopology::peer_stages, size, and GNUNET_MESSENGER_TestStageTopology::stage_amount.
void GNUNET_MESSENGER_destroy_topo | ( | struct GNUNET_MESSENGER_TestStageTopology * | topology | ) |
Definition at line 85 of file testing_messenger.c.
References GNUNET_assert, GNUNET_free, and GNUNET_MESSENGER_TestStageTopology::peer_stages.
struct GNUNET_MESSENGER_RoomState * GNUNET_MESSENGER_create_room_state | ( | struct GNUNET_MESSENGER_TestStageTopology * | topology | ) |
Definition at line 95 of file testing_messenger.c.
References GNUNET_MESSENGER_RoomState::doors, GNUNET_CONTAINER_multipeermap_create(), GNUNET_new, GNUNET_NO, GNUNET_MESSENGER_TestStageTopology::peer_amount, and GNUNET_MESSENGER_RoomState::required_doors.
Referenced by join_room_run().
void GNUNET_MESSENGER_destroy_room_state | ( | struct GNUNET_MESSENGER_RoomState * | room_state | ) |
Definition at line 108 of file testing_messenger.c.
References GNUNET_MESSENGER_RoomState::doors, GNUNET_assert, GNUNET_CONTAINER_multipeermap_destroy(), and GNUNET_free.
Referenced by cleanup_rooms_cb().