diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-02 14:56:30 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-02 14:56:30 +0000 |
commit | ad3870165e0c80ac5ec04d5ac78251eeba13e403 (patch) | |
tree | dc96d36a90b7b776f6e32322dee68ccba18a2a3d /src/transport/transport-testing.h | |
parent | 6d9ebef7d96adad01308c135f27748ec3f6b7774 (diff) | |
download | gnunet-ad3870165e0c80ac5ec04d5ac78251eeba13e403.tar.gz gnunet-ad3870165e0c80ac5ec04d5ac78251eeba13e403.zip |
porting transport testing to new testing lib (mantis 2453)
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r-- | src/transport/transport-testing.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h index 3129bc0a0..0b1f24591 100644 --- a/src/transport/transport-testing.h +++ b/src/transport/transport-testing.h | |||
@@ -27,9 +27,7 @@ | |||
27 | 27 | ||
28 | #include "platform.h" | 28 | #include "platform.h" |
29 | #include "gnunet_common.h" | 29 | #include "gnunet_common.h" |
30 | #include "gnunet_getopt_lib.h" | ||
31 | #include "gnunet_hello_lib.h" | 30 | #include "gnunet_hello_lib.h" |
32 | #include "gnunet_os_lib.h" | ||
33 | #include "gnunet_program_lib.h" | 31 | #include "gnunet_program_lib.h" |
34 | #include "gnunet_container_lib.h" | 32 | #include "gnunet_container_lib.h" |
35 | #include "gnunet_transport_service.h" | 33 | #include "gnunet_transport_service.h" |
@@ -146,16 +144,6 @@ struct PeerContext | |||
146 | void *cb_cls; | 144 | void *cb_cls; |
147 | 145 | ||
148 | /** | 146 | /** |
149 | * Peer's service home directory | ||
150 | */ | ||
151 | char *servicehome; | ||
152 | |||
153 | /** | ||
154 | * Hostkey file | ||
155 | */ | ||
156 | char *hostkeyfile; | ||
157 | |||
158 | /** | ||
159 | * An unique number to identify the peer | 147 | * An unique number to identify the peer |
160 | */ | 148 | */ |
161 | unsigned int no; | 149 | unsigned int no; |
@@ -179,19 +167,29 @@ struct ConnectingContext | |||
179 | 167 | ||
180 | struct GNUNET_TRANSPORT_TESTING_handle | 168 | struct GNUNET_TRANSPORT_TESTING_handle |
181 | { | 169 | { |
182 | struct ConnectingContext *cc_head; | ||
183 | struct ConnectingContext *cc_tail; | ||
184 | |||
185 | /** | 170 | /** |
186 | * Testing library system handle | 171 | * Testing library system handle |
187 | */ | 172 | */ |
188 | struct GNUNET_TESTING_System *tl_system; | 173 | struct GNUNET_TESTING_System *tl_system; |
189 | 174 | ||
190 | char *hostkey_data; | 175 | /** |
191 | int hostkeys_total; | 176 | * head DLL of connect contexts |
192 | int hostkeys_last; | 177 | */ |
178 | struct ConnectingContext *cc_head; | ||
179 | |||
180 | /** | ||
181 | * head DLL of connect contexts | ||
182 | */ | ||
183 | struct ConnectingContext *cc_tail; | ||
193 | 184 | ||
185 | /** | ||
186 | * head DLL of peers | ||
187 | */ | ||
194 | struct PeerContext *p_head; | 188 | struct PeerContext *p_head; |
189 | |||
190 | /** | ||
191 | * tail DLL of peers | ||
192 | */ | ||
195 | struct PeerContext *p_tail; | 193 | struct PeerContext *p_tail; |
196 | }; | 194 | }; |
197 | 195 | ||