diff options
Diffstat (limited to 'src/mesh/mesh_test_lib.c')
-rw-r--r-- | src/mesh/mesh_test_lib.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesh/mesh_test_lib.c b/src/mesh/mesh_test_lib.c index 353edb494..022cee2f3 100644 --- a/src/mesh/mesh_test_lib.c +++ b/src/mesh/mesh_test_lib.c | |||
@@ -51,7 +51,7 @@ struct GNUNET_MESH_TEST_Context | |||
51 | * Main function of the test to run once all MESHs are available. | 51 | * Main function of the test to run once all MESHs are available. |
52 | */ | 52 | */ |
53 | GNUNET_MESH_TEST_AppMain app_main; | 53 | GNUNET_MESH_TEST_AppMain app_main; |
54 | 54 | ||
55 | /** | 55 | /** |
56 | * Closure for 'app_main'. | 56 | * Closure for 'app_main'. |
57 | */ | 57 | */ |
@@ -137,7 +137,7 @@ mesh_connect_adapter (void *cls, | |||
137 | * @param cls closure | 137 | * @param cls closure |
138 | * @param op_result service handle returned from the connect adapter | 138 | * @param op_result service handle returned from the connect adapter |
139 | */ | 139 | */ |
140 | static void | 140 | static void |
141 | mesh_disconnect_adapter (void *cls, | 141 | mesh_disconnect_adapter (void *cls, |
142 | void *op_result) | 142 | void *op_result) |
143 | { | 143 | { |
@@ -154,12 +154,12 @@ mesh_disconnect_adapter (void *cls, | |||
154 | * | 154 | * |
155 | * @param cls The callback closure from functions generating an operation. | 155 | * @param cls The callback closure from functions generating an operation. |
156 | * @param op The operation that has been finished. | 156 | * @param op The operation that has been finished. |
157 | * @param ca_result The service handle returned from | 157 | * @param ca_result The service handle returned from |
158 | * GNUNET_TESTBED_ConnectAdapter() (mesh handle). | 158 | * GNUNET_TESTBED_ConnectAdapter() (mesh handle). |
159 | * @param emsg Error message in case the operation has failed. | 159 | * @param emsg Error message in case the operation has failed. |
160 | * NULL if operation has executed successfully. | 160 | * NULL if operation has executed successfully. |
161 | */ | 161 | */ |
162 | static void | 162 | static void |
163 | mesh_connect_cb (void *cls, | 163 | mesh_connect_cb (void *cls, |
164 | struct GNUNET_TESTBED_Operation *op, | 164 | struct GNUNET_TESTBED_Operation *op, |
165 | void *ca_result, | 165 | void *ca_result, |
@@ -167,7 +167,7 @@ mesh_connect_cb (void *cls, | |||
167 | { | 167 | { |
168 | struct GNUNET_MESH_TEST_Context *ctx = cls; | 168 | struct GNUNET_MESH_TEST_Context *ctx = cls; |
169 | unsigned int i; | 169 | unsigned int i; |
170 | 170 | ||
171 | if (NULL != emsg) | 171 | if (NULL != emsg) |
172 | { | 172 | { |
173 | fprintf (stderr, "Failed to connect to MESH service: %s\n", | 173 | fprintf (stderr, "Failed to connect to MESH service: %s\n", |
@@ -211,7 +211,7 @@ GNUNET_MESH_TEST_cleanup (struct GNUNET_MESH_TEST_Context *ctx) | |||
211 | /** | 211 | /** |
212 | * Callback run when the testbed is ready (peers running and connected to | 212 | * Callback run when the testbed is ready (peers running and connected to |
213 | * each other) | 213 | * each other) |
214 | * | 214 | * |
215 | * @param cls Closure (context). | 215 | * @param cls Closure (context). |
216 | * @param h the run handle | 216 | * @param h the run handle |
217 | * @param num_peers Number of peers that are running. | 217 | * @param num_peers Number of peers that are running. |
@@ -252,7 +252,7 @@ mesh_test_run (void *cls, | |||
252 | } | 252 | } |
253 | 253 | ||
254 | 254 | ||
255 | void | 255 | void |
256 | GNUNET_MESH_TEST_run (const char *testname, | 256 | GNUNET_MESH_TEST_run (const char *testname, |
257 | const char *cfgname, | 257 | const char *cfgname, |
258 | unsigned int num_peers, | 258 | unsigned int num_peers, |