GNUnet  0.11.x
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 
51 typedef void
53 
55 {
59  void *cls;
60 
62 
64 };
65 
66 #if 0 /* keep Emacsens' auto-indent happy */
67 {
68 #endif
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #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)
void(* GNUNET_TESTING_PLUGIN_ALL_PEERS_STARTED)()
void(* TESTING_CMD_HELPER_write_cb)(struct GNUNET_MessageHeader *message, size_t msg_length)
Header for all communications.
void * cls
Closure for all of the callbacks.
GNUNET_TESTING_PLUGIN_ALL_PEERS_STARTED all_peers_started
GNUNET_TESTING_PLUGIN_StartTestCase start_testcase