diff options
Diffstat (limited to 'src/include/gnunet_testing_ng_lib.h')
-rw-r--r-- | src/include/gnunet_testing_ng_lib.h | 67 |
1 files changed, 1 insertions, 66 deletions
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 | ||