27#include "messenger-testing.h"
77 for (
unsigned int i = 0; i <
size; i++)
void GNUNET_CONTAINER_multipeermap_destroy(struct GNUNET_CONTAINER_MultiPeerMap *map)
Destroy a hash map.
struct GNUNET_CONTAINER_MultiPeerMap * GNUNET_CONTAINER_multipeermap_create(unsigned int len, int do_not_copy_keys)
Create a multi peer map (hash map for public keys of peers).
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
#define GNUNET_new_array(n, type)
Allocate a size n array with structs or unions of the given type.
#define GNUNET_free(ptr)
Wrapper around free.
static unsigned int size
Size of the "table".
struct GNUNET_CONTAINER_MultiPeerMap * doors
unsigned int required_doors
unsigned int stage_amount
struct GNUNET_MESSENGER_TestStage * peer_stages
enum GNUNET_MESSENGER_TestStageJoin join
struct GNUNET_MESSENGER_TestStage GNUNET_MESSENGER_create_stage_enter_room(uint32_t door_id)
void GNUNET_MESSENGER_destroy_topo(struct GNUNET_MESSENGER_TestStageTopology *topology)
struct GNUNET_MESSENGER_TestStage GNUNET_MESSENGER_create_stage_skip()
void GNUNET_MESSENGER_destroy_room_state(struct GNUNET_MESSENGER_RoomState *room_state)
struct GNUNET_MESSENGER_TestStage GNUNET_MESSENGER_create_stage_open_room()
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])
struct GNUNET_MESSENGER_RoomState * GNUNET_MESSENGER_create_room_state(struct GNUNET_MESSENGER_TestStageTopology *topology)
@ GNUNET_MESSENGER_STAGE_JOIN_ENTER_ROOM
@ GNUNET_MESSENGER_STAGE_JOIN_OPEN_ROOM
@ GNUNET_MESSENGER_STAGE_JOIN_NONE