GNUnet  0.17.6
gnunet_testing_plugin.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet
3  Copyright (C) 2021 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 
28 #ifndef GNUNET_TESTING_PLUGIN_H
29 #define GNUNET_TESTING_PLUGIN_H
30 
31 #ifdef __cplusplus
32 extern "C"
33 {
34 #if 0 /* keep Emacsens' auto-indent happy */
35 }
36 #endif
37 #endif
38 
39 typedef void
40 (*TESTING_CMD_HELPER_write_cb) (struct GNUNET_MessageHeader *message, size_t
41  msg_length);
42 
43 typedef void
45  write_message, char *router_ip,
46  char *node_ip,
47  char *n,
48  char *m,
49  char *local_m,
50  char *topology_data,
51  unsigned int *read_file);
52 
53 
54 typedef void
56 
57 
58 typedef void
60 
61 
63 {
67  void *cls;
68 
70 
72 
74 };
75 
76 #if 0 /* keep Emacsens' auto-indent happy */
77 {
78 #endif
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif
static struct GNUNET_ARM_MonitorHandle * m
Monitor connection with ARM.
Definition: gnunet-arm.c:104
static int write_message(uint16_t message_type, const char *data, size_t data_length)
Write message to the master process.
void(* GNUNET_TESTING_PLUGIN_StartTestCase)(TESTING_CMD_HELPER_write_cb write_message, char *router_ip, char *node_ip, char *n, char *m, char *local_m, char *topology_data, unsigned int *read_file)
void(* GNUNET_TESTING_PLUGIN_ALL_PEERS_STARTED)()
void(* GNUNET_TESTING_PLUGIN_ALL_LOCAL_TESTS_PREPARED)()
void(* TESTING_CMD_HELPER_write_cb)(struct GNUNET_MessageHeader *message, size_t msg_length)
enum GNUNET_GenericReturnValue read_file(char const *const filename, char **buffer)
Definition: pabc_helper.c:70
Header for all communications.
void * cls
Closure for all of the callbacks.
GNUNET_TESTING_PLUGIN_ALL_LOCAL_TESTS_PREPARED all_local_tests_prepared
GNUNET_TESTING_PLUGIN_ALL_PEERS_STARTED all_peers_started
GNUNET_TESTING_PLUGIN_StartTestCase start_testcase