gnunet_testing_testbed_lib.h (1401B)
1 #ifndef GNUNET_TESTING_TESTBED_LIB_H 2 #define GNUNET_TESTING_TESTBED_LIB_H 3 4 #include "gnunet_testing_lib.h" 5 #include "gnunet_testbed_lib.h" 6 7 /** 8 * This command destroys the resources allocated for the test system setup. 9 * 10 * @param label Name for command. 11 * @param create_label Label of the cmd which started the test system. 12 * @param write_message Callback to write messages to the master loop. 13 * @return command. 14 */ 15 struct GNUNET_TESTING_Command 16 GNUNET_TESTBED_cmd_system_destroy (const char *label, 17 const char *create_label); 18 19 /** 20 * This command is setting up a test environment for a peer to start. 21 * 22 * @param label Name for command. 23 * @param my_node_id The specific id of the node this command is running on. 24 * A sub string of the id is the process id of the master process. This id is 25 * used to build the name of the temporary directory of the peer to start. 26 */ 27 struct GNUNET_TESTING_Command 28 GNUNET_TESTBED_cmd_system_create (const char *label, 29 const char *my_node_id); 30 31 32 /** 33 * Call #op on all simple traits. 34 */ 35 #define GNUNET_TESTING_TESTBED_SIMPLE_TRAITS(op, prefix) \ 36 op (prefix, test_system, struct GNUNET_TESTBED_System) 37 38 39 GNUNET_TESTING_TESTBED_SIMPLE_TRAITS (GNUNET_TESTING_MAKE_DECL_SIMPLE_TRAIT, 40 GNUNET_TESTING_TESTBED) 41 42 43 #endif