diff options
Diffstat (limited to 'src/testing/testing_cmds.h')
-rw-r--r-- | src/testing/testing_cmds.h | 64 |
1 files changed, 58 insertions, 6 deletions
diff --git a/src/testing/testing_cmds.h b/src/testing/testing_cmds.h index c4246d51e..edc4dfe19 100644 --- a/src/testing/testing_cmds.h +++ b/src/testing/testing_cmds.h | |||
@@ -32,9 +32,61 @@ | |||
32 | GNUNET_NETWORK_STRUCT_BEGIN | 32 | GNUNET_NETWORK_STRUCT_BEGIN |
33 | 33 | ||
34 | /** | 34 | /** |
35 | * Handle for a plugin. | ||
36 | */ | ||
37 | struct Plugin | ||
38 | { | ||
39 | /** | ||
40 | * Name of the shared library. | ||
41 | */ | ||
42 | char *library_name; | ||
43 | |||
44 | /** | ||
45 | * Plugin API. | ||
46 | */ | ||
47 | struct GNUNET_TESTING_PluginFunctions *api; | ||
48 | |||
49 | /** | ||
50 | * IP address of the specific node the helper is running for. | ||
51 | * | ||
52 | */ | ||
53 | char *node_ip; | ||
54 | |||
55 | /** | ||
56 | * Name of the test case plugin. | ||
57 | * | ||
58 | */ | ||
59 | char *plugin_name; | ||
60 | |||
61 | /** | ||
62 | * The number of namespaces | ||
63 | * | ||
64 | */ | ||
65 | char *global_n; | ||
66 | |||
67 | /** | ||
68 | * The number of local nodes per namespace. | ||
69 | * | ||
70 | */ | ||
71 | char *local_m; | ||
72 | |||
73 | /** | ||
74 | * The number of the namespace this node is in. | ||
75 | * | ||
76 | */ | ||
77 | char *n; | ||
78 | |||
79 | /** | ||
80 | * The number of the node in the namespace. | ||
81 | * | ||
82 | */ | ||
83 | char *m; | ||
84 | }; | ||
85 | |||
86 | /** | ||
35 | * Initialization message for gnunet-cmds-testbed to start cmd binary. | 87 | * Initialization message for gnunet-cmds-testbed to start cmd binary. |
36 | */ | 88 | */ |
37 | struct GNUNET_CMDS_HelperInit | 89 | struct GNUNET_TESTING_CommandHelperInit |
38 | { | 90 | { |
39 | /** | 91 | /** |
40 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_INIT | 92 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_INIT |
@@ -53,7 +105,7 @@ struct GNUNET_CMDS_HelperInit | |||
53 | /** | 105 | /** |
54 | * Reply message from cmds helper process | 106 | * Reply message from cmds helper process |
55 | */ | 107 | */ |
56 | struct GNUNET_CMDS_HelperReply | 108 | struct GNUNET_TESTING_CommandHelperReply |
57 | { | 109 | { |
58 | /** | 110 | /** |
59 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY | 111 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY |
@@ -61,7 +113,7 @@ struct GNUNET_CMDS_HelperReply | |||
61 | struct GNUNET_MessageHeader header; | 113 | struct GNUNET_MessageHeader header; |
62 | }; | 114 | }; |
63 | 115 | ||
64 | struct GNUNET_CMDS_PEER_STARTED | 116 | struct GNUNET_TESTING_CommandPeerStarted |
65 | { | 117 | { |
66 | /** | 118 | /** |
67 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_PEER_STARTED | 119 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_PEER_STARTED |
@@ -69,7 +121,7 @@ struct GNUNET_CMDS_PEER_STARTED | |||
69 | struct GNUNET_MessageHeader header; | 121 | struct GNUNET_MessageHeader header; |
70 | }; | 122 | }; |
71 | 123 | ||
72 | struct GNUNET_CMDS_ALL_PEERS_STARTED | 124 | struct GNUNET_TESTING_CommandAllPeersStarted |
73 | { | 125 | { |
74 | /** | 126 | /** |
75 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_PEERS_STARTED | 127 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_PEERS_STARTED |
@@ -86,7 +138,7 @@ struct GNUNET_CMDS_LOCAL_FINISHED | |||
86 | }; | 138 | }; |
87 | 139 | ||
88 | 140 | ||
89 | struct GNUNET_CMDS_LOCAL_TEST_PREPARED | 141 | struct GNUNET_TESTING_CommandLocalTestPrepared |
90 | { | 142 | { |
91 | /** | 143 | /** |
92 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_TEST_PREPARED | 144 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_TEST_PREPARED |
@@ -94,7 +146,7 @@ struct GNUNET_CMDS_LOCAL_TEST_PREPARED | |||
94 | struct GNUNET_MessageHeader header; | 146 | struct GNUNET_MessageHeader header; |
95 | }; | 147 | }; |
96 | 148 | ||
97 | struct GNUNET_CMDS_ALL_LOCAL_TESTS_PREPARED | 149 | struct GNUNET_TESTING_CommandAllLocalTestsPrepared |
98 | { | 150 | { |
99 | /** | 151 | /** |
100 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_LOCAL_TESTS_PREPARED | 152 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_LOCAL_TESTS_PREPARED |