GNUnet 0.21.1
messenger-testing.h
Go to the documentation of this file.
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2023 GNUnet e.V.
4
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
20
27#ifndef MESSENGER_TESTING_H
28#define MESSENGER_TESTING_H
29
31{
35};
36
38{
39 unsigned int door_id;
41};
42
45
48
51
53{
54 unsigned int peer_amount;
55 unsigned int stage_amount;
56
58};
59
62 unsigned int stage_amount,
65
66void
69
71{
73
74 unsigned int required_doors;
75};
76
80
81void
83 GNUNET_MESSENGER_RoomState *room_state);
84
86{
89
91
96
97 unsigned int peer_index;
98 unsigned int stage_index;
99};
100
101#endif
102/* end of messenger-testing.h */
char * door_id
struct GNUNET_MESSENGER_TestStage GNUNET_MESSENGER_create_stage_enter_room(unsigned int door_id)
GNUNET_MESSENGER_TestStageJoin
@ GNUNET_MESSENGER_STAGE_JOIN_ENTER_ROOM
@ GNUNET_MESSENGER_STAGE_JOIN_OPEN_ROOM
@ GNUNET_MESSENGER_STAGE_JOIN_NONE
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)
Internal representation of the hash map.
Internal representation of the hash map.
struct GNUNET_CONTAINER_MultiPeerMap * doors
struct GNUNET_MESSENGER_Handle * msg
struct GNUNET_MESSENGER_TestStageTopology * topology
struct GNUNET_TESTING_Interpreter * is
struct GNUNET_CONTAINER_MultiHashMap * rooms
const struct GNUNET_TESTING_System * tl_system
struct GNUNET_MESSENGER_TestStage * peer_stages
enum GNUNET_MESSENGER_TestStageJoin join
Global state of the interpreter, used by a command to access information about other commands.
Handle for a system on which GNUnet peers are executed; a system is used for reserving unique paths a...
Definition: testing.c:122