diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_testing_netjail_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_testing_ng_lib.h | 67 |
2 files changed, 4 insertions, 67 deletions
diff --git a/src/include/gnunet_testing_netjail_lib.h b/src/include/gnunet_testing_netjail_lib.h index a1e14ec9f..69d6e7a7d 100644 --- a/src/include/gnunet_testing_netjail_lib.h +++ b/src/include/gnunet_testing_netjail_lib.h | |||
@@ -386,6 +386,7 @@ GNUNET_TESTING_cmd_netjail_stop (const char *label, | |||
386 | * @param topology The complete topology information. | 386 | * @param topology The complete topology information. |
387 | * @param read_file Flag indicating if the the name of the topology file is send to the helper, or a string with the topology data. | 387 | * @param read_file Flag indicating if the the name of the topology file is send to the helper, or a string with the topology data. |
388 | * @param topology_data If read_file is GNUNET_NO, topology_data holds the string with the topology. | 388 | * @param topology_data If read_file is GNUNET_NO, topology_data holds the string with the topology. |
389 | * @param timeout Before this timeout is reached this cmd MUST finish. | ||
389 | * @return command. | 390 | * @return command. |
390 | */ | 391 | */ |
391 | struct GNUNET_TESTING_Command | 392 | struct GNUNET_TESTING_Command |
@@ -393,7 +394,8 @@ GNUNET_TESTING_cmd_netjail_start_testing_system ( | |||
393 | const char *label, | 394 | const char *label, |
394 | struct GNUNET_TESTING_NetjailTopology *topology, | 395 | struct GNUNET_TESTING_NetjailTopology *topology, |
395 | unsigned int *read_file, | 396 | unsigned int *read_file, |
396 | char *topology_data); | 397 | char *topology_data, |
398 | struct GNUNET_TIME_Relative timeout); | ||
397 | 399 | ||
398 | 400 | ||
399 | /** | 401 | /** |
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h index c0e534594..7e1ee4249 100644 --- a/src/include/gnunet_testing_ng_lib.h +++ b/src/include/gnunet_testing_ng_lib.h | |||
@@ -510,72 +510,6 @@ struct GNUNET_TESTING_Timer | |||
510 | 510 | ||
511 | 511 | ||
512 | /** | 512 | /** |
513 | * Getting the topology from file. | ||
514 | * | ||
515 | * @param filename The name of the topology file. | ||
516 | * @return The GNUNET_TESTING_NetjailTopology | ||
517 | */ | ||
518 | struct GNUNET_TESTING_NetjailTopology * | ||
519 | GNUNET_TESTING_get_topo_from_file (const char *filename); | ||
520 | |||
521 | |||
522 | /** | ||
523 | * Parse the topology data. | ||
524 | * | ||
525 | * @param data The topology data. | ||
526 | * @return The GNUNET_TESTING_NetjailTopology | ||
527 | */ | ||
528 | struct GNUNET_TESTING_NetjailTopology * | ||
529 | GNUNET_TESTING_get_topo_from_string (char *data); | ||
530 | |||
531 | |||
532 | /** | ||
533 | * Get the connections to other nodes for a specific node. | ||
534 | * | ||
535 | * @param num The specific node we want the connections for. | ||
536 | * @param topology The topology we get the connections from. | ||
537 | * @return The connections of the node. | ||
538 | */ | ||
539 | struct GNUNET_TESTING_NodeConnection * | ||
540 | GNUNET_TESTING_get_connections (unsigned int num, struct | ||
541 | GNUNET_TESTING_NetjailTopology *topology); | ||
542 | |||
543 | |||
544 | /** | ||
545 | * Get the address for a specific communicator from a connection. | ||
546 | * | ||
547 | * @param connection The connection we like to have the address from. | ||
548 | * @param prefix The communicator protocol prefix. | ||
549 | * @return The address of the communicator. | ||
550 | */ | ||
551 | char * | ||
552 | GNUNET_TESTING_get_address (struct GNUNET_TESTING_NodeConnection *connection, | ||
553 | char *prefix); | ||
554 | |||
555 | |||
556 | /** | ||
557 | * Deallocate memory of the struct GNUNET_TESTING_NetjailTopology. | ||
558 | * | ||
559 | * @param topology The GNUNET_TESTING_NetjailTopology to be deallocated. | ||
560 | */ | ||
561 | void | ||
562 | GNUNET_TESTING_free_topology (struct GNUNET_TESTING_NetjailTopology *topology); | ||
563 | |||
564 | |||
565 | /** | ||
566 | * Calculate the unique id identifying a node from a given connction. | ||
567 | * | ||
568 | * @param node_connection The connection we calculate the id from. | ||
569 | * @param topology The topology we get all needed information from. | ||
570 | * @return The unique id of the node from the connection. | ||
571 | */ | ||
572 | unsigned int | ||
573 | GNUNET_TESTING_calculate_num (struct | ||
574 | GNUNET_TESTING_NodeConnection *node_connection, | ||
575 | struct GNUNET_TESTING_NetjailTopology *topology); | ||
576 | |||
577 | |||
578 | /** | ||
579 | * Retrieve the public key from the test system with the unique node id. | 513 | * Retrieve the public key from the test system with the unique node id. |
580 | * | 514 | * |
581 | * @param num The unique node id. | 515 | * @param num The unique node id. |
@@ -744,6 +678,7 @@ GNUNET_TESTING_get_trait (const struct GNUNET_TESTING_Trait *traits, | |||
744 | * Call #op on all simple traits. | 678 | * Call #op on all simple traits. |
745 | */ | 679 | */ |
746 | #define GNUNET_TESTING_SIMPLE_TRAITS(op) \ | 680 | #define GNUNET_TESTING_SIMPLE_TRAITS(op) \ |
681 | op (batch_cmds, struct GNUNET_TESTING_Command *) \ | ||
747 | op (process, struct GNUNET_OS_Process *) | 682 | op (process, struct GNUNET_OS_Process *) |
748 | 683 | ||
749 | 684 | ||