diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-11 13:48:13 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-11 13:48:13 +0000 |
commit | 4ab00798bd41084fea7dd1361c5ebfe5771e315b (patch) | |
tree | f1faf214501b6c0b2b26aea8d1c2046f862dfa6a /src/include/gnunet_testbed_service.h | |
parent | 19a850a8d8723fb70ce265304590d390f6782557 (diff) | |
download | gnunet-4ab00798bd41084fea7dd1361c5ebfe5771e315b.tar.gz gnunet-4ab00798bd41084fea7dd1361c5ebfe5771e315b.zip |
fix 2689
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r-- | src/include/gnunet_testbed_service.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h index c128f29d2..ab304d4e9 100644 --- a/src/include/gnunet_testbed_service.h +++ b/src/include/gnunet_testbed_service.h | |||
@@ -1363,6 +1363,18 @@ GNUNET_TESTBED_get_statistics (unsigned int num_peers, | |||
1363 | 1363 | ||
1364 | 1364 | ||
1365 | /** | 1365 | /** |
1366 | * Signature of a main function for a testcase. | ||
1367 | * | ||
1368 | * @param cls closure | ||
1369 | * @param num_peers number of peers in 'peers' | ||
1370 | * @param peers handle to peers run in the testbed | ||
1371 | */ | ||
1372 | typedef void (*GNUNET_TESTBED_TestMaster)(void *cls, | ||
1373 | unsigned int num_peers, | ||
1374 | struct GNUNET_TESTBED_Peer **peers); | ||
1375 | |||
1376 | |||
1377 | /** | ||
1366 | * Convenience method for running a testbed with | 1378 | * Convenience method for running a testbed with |
1367 | * a single call. Underlay and overlay topology | 1379 | * a single call. Underlay and overlay topology |
1368 | * are configured using the "UNDERLAY" and "OVERLAY" | 1380 | * are configured using the "UNDERLAY" and "OVERLAY" |
@@ -1387,8 +1399,8 @@ GNUNET_TESTBED_get_statistics (unsigned int num_peers, | |||
1387 | * set in the event_mask as this is the only way get access to the | 1399 | * set in the event_mask as this is the only way get access to the |
1388 | * handle of each peer | 1400 | * handle of each peer |
1389 | * @param cc_cls closure for cc | 1401 | * @param cc_cls closure for cc |
1390 | * @param master task to run once the testbed is ready | 1402 | * @param test_master this callback will be called once the test is ready |
1391 | * @param master_cls closure for 'task'. | 1403 | * @param test_master_cls closure for 'test_master'. |
1392 | */ | 1404 | */ |
1393 | void | 1405 | void |
1394 | GNUNET_TESTBED_run (const char *host_filename, | 1406 | GNUNET_TESTBED_run (const char *host_filename, |
@@ -1397,8 +1409,8 @@ GNUNET_TESTBED_run (const char *host_filename, | |||
1397 | uint64_t event_mask, | 1409 | uint64_t event_mask, |
1398 | GNUNET_TESTBED_ControllerCallback cc, | 1410 | GNUNET_TESTBED_ControllerCallback cc, |
1399 | void *cc_cls, | 1411 | void *cc_cls, |
1400 | GNUNET_SCHEDULER_Task master, | 1412 | GNUNET_TESTBED_TestMaster test_master, |
1401 | void *master_cls); | 1413 | void *test_master_cls); |
1402 | 1414 | ||
1403 | 1415 | ||
1404 | /** | 1416 | /** |
@@ -1442,8 +1454,8 @@ typedef void (*GNUNET_TESTBED_TestMaster)(void *cls, | |||
1442 | * set in the event_mask as this is the only way get access to the | 1454 | * set in the event_mask as this is the only way get access to the |
1443 | * handle of each peer | 1455 | * handle of each peer |
1444 | * @param cc_cls closure for cc | 1456 | * @param cc_cls closure for cc |
1445 | * @param test_master task to run once the test is ready | 1457 | * @param test_master this callback will be called once the test is ready |
1446 | * @param test_master_cls closure for 'task'. | 1458 | * @param test_master_cls closure for 'test_master'. |
1447 | * @param GNUNET_SYSERR on error, GNUNET_OK on success | 1459 | * @param GNUNET_SYSERR on error, GNUNET_OK on success |
1448 | */ | 1460 | */ |
1449 | int | 1461 | int |