aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_protocols.h20
-rw-r--r--src/include/gnunet_testbed_ng_service.h9
-rw-r--r--src/include/gnunet_testing_ng_lib.h1
-rw-r--r--src/include/gnunet_testing_plugin.h12
4 files changed, 41 insertions, 1 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 8e6e8b1be..1d33d986d 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -3549,6 +3549,26 @@ extern "C" {
3549 3549
3550/*********************************************************************************/ 3550/*********************************************************************************/
3551 3551
3552/*********************************************************************************/
3553/********************************** Cmd Testing **********************************/
3554/*********************************************************************************/
3555
3556/**
3557 * The initialization message towards gnunet-cmds-helper
3558 */
3559#define GNUNET_MESSAGE_TYPE_CMDS_HELPER_INIT 1700
3560
3561/**
3562 * The reply message from gnunet-cmds-helper
3563 */
3564#define GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY 1701
3565
3566#define GNUNET_MESSAGE_TYPE_CMDS_HELPER_PEER_STARTED 1702
3567
3568#define GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_PEERS_STARTED 1703
3569
3570/*********************************************************************************/
3571
3552/** 3572/**
3553 * Type used to match 'all' message types. 3573 * Type used to match 'all' message types.
3554 */ 3574 */
diff --git a/src/include/gnunet_testbed_ng_service.h b/src/include/gnunet_testbed_ng_service.h
index 9845b3be6..2ea5e616c 100644
--- a/src/include/gnunet_testbed_ng_service.h
+++ b/src/include/gnunet_testbed_ng_service.h
@@ -265,4 +265,13 @@ int
265GNUNET_TESTBED_get_trait_hosts (const struct 265GNUNET_TESTBED_get_trait_hosts (const struct
266 GNUNET_TESTING_Command *cmd, 266 GNUNET_TESTING_Command *cmd,
267 struct GNUNET_TESTBED_Host ***hosts); 267 struct GNUNET_TESTBED_Host ***hosts);
268
269struct GNUNET_TESTING_Command
270GNUNET_TESTING_cmd_block_until_all_peers_started (const char *label,
271 unsigned int *
272 all_peers_started);
273
274struct GNUNET_TESTING_Command
275GNUNET_TESTING_cmd_send_peer_ready (const char *label,
276 TESTBED_CMD_HELPER_write_cb write_message);
268#endif 277#endif
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h
index a794562a9..8927fd4f1 100644
--- a/src/include/gnunet_testing_ng_lib.h
+++ b/src/include/gnunet_testing_ng_lib.h
@@ -28,6 +28,7 @@
28#define GNUNET_TESTING_NG_LIB_H 28#define GNUNET_TESTING_NG_LIB_H
29 29
30#include "gnunet_util_lib.h" 30#include "gnunet_util_lib.h"
31#include "gnunet_testing_plugin.h"
31 32
32 33
33/* ********************* Helper functions ********************* */ 34/* ********************* Helper functions ********************* */
diff --git a/src/include/gnunet_testing_plugin.h b/src/include/gnunet_testing_plugin.h
index 527f509ad..6a54cacd2 100644
--- a/src/include/gnunet_testing_plugin.h
+++ b/src/include/gnunet_testing_plugin.h
@@ -36,9 +36,17 @@ extern "C"
36#endif 36#endif
37#endif 37#endif
38 38
39typedef void
40(*TESTBED_CMD_HELPER_write_cb) (struct GNUNET_MessageHeader *message, size_t
41 msg_length);
42
43typedef void
44(*GNUNET_TESTING_PLUGIN_StartTestCase) (TESTBED_CMD_HELPER_write_cb
45 write_message, char *router_ip,
46 char *node_ip);
39 47
40typedef void 48typedef void
41(*GNUNET_TESTING_PLUGIN_StartTestCase) (); 49(*GNUNET_TESTING_PLUGIN_ALL_PEERS_STARTED) ();
42 50
43struct GNUNET_TESTING_PluginFunctions 51struct GNUNET_TESTING_PluginFunctions
44{ 52{
@@ -48,6 +56,8 @@ struct GNUNET_TESTING_PluginFunctions
48 void *cls; 56 void *cls;
49 57
50 GNUNET_TESTING_PLUGIN_StartTestCase start_testcase; 58 GNUNET_TESTING_PLUGIN_StartTestCase start_testcase;
59
60 GNUNET_TESTING_PLUGIN_ALL_PEERS_STARTED all_peers_started;
51}; 61};
52 62
53#if 0 /* keep Emacsens' auto-indent happy */ 63#if 0 /* keep Emacsens' auto-indent happy */