diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-21 11:32:53 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-21 11:32:53 +0000 |
commit | a250da032ba65252d9da96e8429b22e265c69980 (patch) | |
tree | 89eb6410952e30bd6b37c0a827be4a6ec6a3e839 /src/testbed/testbed_api_hosts.h | |
parent | eb9d17abd52471e8cd3dcb45bbd4b93231da23c3 (diff) | |
download | gnunet-a250da032ba65252d9da96e8429b22e265c69980.tar.gz gnunet-a250da032ba65252d9da96e8429b22e265c69980.zip |
M testbed/testbed.h
naming consistency
include uncompressed config size
M testbed/testbed_api_hosts.c
pulled host registration functions from testbed_api.c
M testbed/testbed_api_hosts.h
export handler to handle ADD_HOST confirmation messages
M testbed/gnunet-service-testbed.c
parse the modified ADD_HOST message
M testbed/testbed_api.c
lose host registration code
extract configuration from ADD_HOST messages
M testbed/testbed_api.h
include hacks
Diffstat (limited to 'src/testbed/testbed_api_hosts.h')
-rw-r--r-- | src/testbed/testbed_api_hosts.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/testbed/testbed_api_hosts.h b/src/testbed/testbed_api_hosts.h index 2d25fd596..91fea72b7 100644 --- a/src/testbed/testbed_api_hosts.h +++ b/src/testbed/testbed_api_hosts.h | |||
@@ -27,8 +27,9 @@ | |||
27 | #ifndef NEW_TESTING_API_HOSTS_H | 27 | #ifndef NEW_TESTING_API_HOSTS_H |
28 | #define NEW_TESTING_API_HOSTS_H | 28 | #define NEW_TESTING_API_HOSTS_H |
29 | 29 | ||
30 | #include "gnunet_testbed_service.h" | 30 | //#include "gnunet_testbed_service.h" |
31 | #include "testbed_helper.h" | 31 | //#include "testbed_helper.h" |
32 | #include "testbed.h" | ||
32 | 33 | ||
33 | 34 | ||
34 | /** | 35 | /** |
@@ -193,5 +194,21 @@ void | |||
193 | GNUNET_TESTBED_host_queue_oc_ (struct GNUNET_TESTBED_Host *h, | 194 | GNUNET_TESTBED_host_queue_oc_ (struct GNUNET_TESTBED_Host *h, |
194 | struct GNUNET_TESTBED_Operation *op); | 195 | struct GNUNET_TESTBED_Operation *op); |
195 | 196 | ||
197 | |||
198 | /** | ||
199 | * Handler for GNUNET_MESSAGE_TYPE_TESTBED_ADDHOSTCONFIRM message from | ||
200 | * controller (testbed service) | ||
201 | * | ||
202 | * @param c the controller handler | ||
203 | * @param msg message received | ||
204 | * @return GNUNET_YES if we can continue receiving from service; GNUNET_NO if | ||
205 | * not | ||
206 | */ | ||
207 | int | ||
208 | GNUNET_TESTBED_host_handle_addhostconfirm_ (struct GNUNET_TESTBED_Controller *c, | ||
209 | const struct | ||
210 | GNUNET_TESTBED_HostConfirmedMessage | ||
211 | *msg); | ||
212 | |||
196 | #endif | 213 | #endif |
197 | /* end of testbed_api_hosts.h */ | 214 | /* end of testbed_api_hosts.h */ |