diff options
author | t3sserakt <t3ss@posteo.de> | 2021-07-23 13:31:34 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-07-23 13:31:34 +0200 |
commit | c96fdfad67a3eed8ca61b9e228b81f3a85a3b2c5 (patch) | |
tree | d83c9584bb010fae36b0994c5a95f30509d72694 /src/include | |
parent | 6b2c5a92fbc3a57c42fc9fb38c4705ecb7afb328 (diff) | |
download | gnunet-c96fdfad67a3eed8ca61b9e228b81f3a85a3b2c5.tar.gz gnunet-c96fdfad67a3eed8ca61b9e228b81f3a85a3b2c5.zip |
- moving cmds to other packages
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_testing_ng_lib.h | 13 | ||||
-rw-r--r-- | src/include/gnunet_transport_application_service.h | 9 | ||||
-rw-r--r-- | src/include/gnunet_transport_service.h | 14 |
3 files changed, 29 insertions, 7 deletions
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h index 994ce31f1..08bc63aae 100644 --- a/src/include/gnunet_testing_ng_lib.h +++ b/src/include/gnunet_testing_ng_lib.h | |||
@@ -29,7 +29,6 @@ | |||
29 | 29 | ||
30 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_testing_plugin.h" | 31 | #include "gnunet_testing_plugin.h" |
32 | #include "gnunet_transport_application_service.h" | ||
33 | #include "gnunet_testing_lib.h" | 32 | #include "gnunet_testing_lib.h" |
34 | 33 | ||
35 | 34 | ||
@@ -833,12 +832,7 @@ int | |||
833 | GNUNET_TESTING_get_trait_what_am_i (const struct GNUNET_TESTING_Command *cmd, | 832 | GNUNET_TESTING_get_trait_what_am_i (const struct GNUNET_TESTING_Command *cmd, |
834 | char **what_am_i); | 833 | char **what_am_i); |
835 | 834 | ||
836 | int | 835 | |
837 | GNUNET_TESTING_get_trait_application_handle (const struct | ||
838 | GNUNET_TESTING_Command *cmd, | ||
839 | struct | ||
840 | GNUNET_TRANSPORT_ApplicationHandle | ||
841 | **ah); | ||
842 | 836 | ||
843 | int | 837 | int |
844 | GNUNET_TESTING_get_trait_peer_id (const struct | 838 | GNUNET_TESTING_get_trait_peer_id (const struct |
@@ -868,4 +862,9 @@ int | |||
868 | GNUNET_TESTING_get_trait_test_system (const struct | 862 | GNUNET_TESTING_get_trait_test_system (const struct |
869 | GNUNET_TESTING_Command *cmd, | 863 | GNUNET_TESTING_Command *cmd, |
870 | struct GNUNET_TESTING_System **test_system); | 864 | struct GNUNET_TESTING_System **test_system); |
865 | |||
866 | struct GNUNET_TESTING_Command | ||
867 | GNUNET_TESTING_cmd_system_create (const char *label, | ||
868 | const char *testdir); | ||
869 | |||
871 | #endif | 870 | #endif |
diff --git a/src/include/gnunet_transport_application_service.h b/src/include/gnunet_transport_application_service.h index 35585d954..0562e2183 100644 --- a/src/include/gnunet_transport_application_service.h +++ b/src/include/gnunet_transport_application_service.h | |||
@@ -35,6 +35,8 @@ | |||
35 | #include "gnunet_constants.h" | 35 | #include "gnunet_constants.h" |
36 | #include "gnunet_util_lib.h" | 36 | #include "gnunet_util_lib.h" |
37 | #include "gnunet_nt_lib.h" | 37 | #include "gnunet_nt_lib.h" |
38 | #include "gnunet_testing_lib.h" | ||
39 | #include "gnunet_testing_ng_lib.h" | ||
38 | 40 | ||
39 | /** | 41 | /** |
40 | * Handle to the TRANSPORT subsystem for making suggestions about | 42 | * Handle to the TRANSPORT subsystem for making suggestions about |
@@ -114,6 +116,13 @@ GNUNET_TRANSPORT_application_validate ( | |||
114 | enum GNUNET_NetworkType nt, | 116 | enum GNUNET_NetworkType nt, |
115 | const char *addr); | 117 | const char *addr); |
116 | 118 | ||
119 | int | ||
120 | GNUNET_TRANSPORT_get_trait_application_handle (const struct | ||
121 | GNUNET_TESTING_Command *cmd, | ||
122 | struct | ||
123 | GNUNET_TRANSPORT_ApplicationHandle | ||
124 | **ah); | ||
125 | |||
117 | /** @} */ /* end of group */ | 126 | /** @} */ /* end of group */ |
118 | 127 | ||
119 | #endif | 128 | #endif |
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h index d190eff92..97dfda1ec 100644 --- a/src/include/gnunet_transport_service.h +++ b/src/include/gnunet_transport_service.h | |||
@@ -686,6 +686,20 @@ GNUNET_TRANSPORT_core_get_mq (struct GNUNET_TRANSPORT_CoreHandle *handle, | |||
686 | const struct GNUNET_PeerIdentity *peer); | 686 | const struct GNUNET_PeerIdentity *peer); |
687 | 687 | ||
688 | 688 | ||
689 | struct GNUNET_TESTING_Command | ||
690 | GNUNET_TRANSPORT_cmd_start_peer (const char *label, | ||
691 | const char *system_label, | ||
692 | char *m, | ||
693 | char *n, | ||
694 | struct GNUNET_MQ_MessageHandler *handlers, | ||
695 | const char *cfgname); | ||
696 | |||
697 | struct GNUNET_TESTING_Command | ||
698 | GNUNET_TRANSPORT_cmd_connect_peers (const char *label, | ||
699 | const char *peer1_label, | ||
700 | const char *peer2_label); | ||
701 | |||
702 | |||
689 | #if 0 /* keep Emacsens' auto-indent happy */ | 703 | #if 0 /* keep Emacsens' auto-indent happy */ |
690 | { | 704 | { |
691 | #endif | 705 | #endif |