diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-06 14:38:24 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-06 14:38:24 +0000 |
commit | 2ca4b8a208f6f910c819bbaa6785a25ae2955501 (patch) | |
tree | 7328fb7cfc62189197dfa34035502a80b0acdcd3 /src/include/gnunet_testbed_service.h | |
parent | 8d46a214ce11653b5160d32e330786fa487e3ae6 (diff) | |
download | gnunet-2ca4b8a208f6f910c819bbaa6785a25ae2955501.tar.gz gnunet-2ca4b8a208f6f910c819bbaa6785a25ae2955501.zip |
- give out run handle through which master controller's handle can be retrieved
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r-- | src/include/gnunet_testbed_service.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h index 44eceadfb..9c09e5689 100644 --- a/src/include/gnunet_testbed_service.h +++ b/src/include/gnunet_testbed_service.h | |||
@@ -1328,11 +1328,16 @@ GNUNET_TESTBED_get_statistics (unsigned int num_peers, | |||
1328 | GNUNET_TESTBED_OperationCompletionCallback cont, | 1328 | GNUNET_TESTBED_OperationCompletionCallback cont, |
1329 | void *cls); | 1329 | void *cls); |
1330 | 1330 | ||
1331 | /** | ||
1332 | * Handle for testbed run helper funtions | ||
1333 | */ | ||
1334 | struct GNUNET_TESTBED_RunHandle; | ||
1331 | 1335 | ||
1332 | /** | 1336 | /** |
1333 | * Signature of a main function for a testcase. | 1337 | * Signature of a main function for a testcase. |
1334 | * | 1338 | * |
1335 | * @param cls closure | 1339 | * @param cls closure |
1340 | * @param h the run handle | ||
1336 | * @param num_peers number of peers in 'peers' | 1341 | * @param num_peers number of peers in 'peers' |
1337 | * @param peers handle to peers run in the testbed. NULL upon timeout (see | 1342 | * @param peers handle to peers run in the testbed. NULL upon timeout (see |
1338 | * GNUNET_TESTBED_test_run()). | 1343 | * GNUNET_TESTBED_test_run()). |
@@ -1340,8 +1345,10 @@ GNUNET_TESTBED_get_statistics (unsigned int num_peers, | |||
1340 | * succeeded | 1345 | * succeeded |
1341 | * @param links_failed the number of overlay link connection attempts that | 1346 | * @param links_failed the number of overlay link connection attempts that |
1342 | * failed | 1347 | * failed |
1348 | * @see GNUNET_TESTBED_test_run() | ||
1343 | */ | 1349 | */ |
1344 | typedef void (*GNUNET_TESTBED_TestMaster)(void *cls, | 1350 | typedef void (*GNUNET_TESTBED_TestMaster)(void *cls, |
1351 | struct GNUNET_TESTBED_RunHandle *h, | ||
1345 | unsigned int num_peers, | 1352 | unsigned int num_peers, |
1346 | struct GNUNET_TESTBED_Peer **peers, | 1353 | struct GNUNET_TESTBED_Peer **peers, |
1347 | unsigned int links_succeeded, | 1354 | unsigned int links_succeeded, |
@@ -1442,6 +1449,16 @@ GNUNET_TESTBED_test_run (const char *testname, | |||
1442 | 1449 | ||
1443 | 1450 | ||
1444 | /** | 1451 | /** |
1452 | * Obtain handle to the master controller from a testbed run. The handle | ||
1453 | * returned should not be disconnected. | ||
1454 | * | ||
1455 | * @param h the testbed run handle | ||
1456 | * @return handle to the master controller | ||
1457 | */ | ||
1458 | struct GNUNET_TESTBED_Controller * | ||
1459 | GNUNET_TESTBED_run_get_controller_handle (struct GNUNET_TESTBED_RunHandle *h); | ||
1460 | |||
1461 | /** | ||
1445 | * Opaque handle for barrier | 1462 | * Opaque handle for barrier |
1446 | */ | 1463 | */ |
1447 | struct GNUNET_TESTBED_Barrier; | 1464 | struct GNUNET_TESTBED_Barrier; |