aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/test_testbed_api.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-01-25 15:28:08 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-01-25 15:28:08 +0000
commit30c5c323f28ade8a1e7c6c593778793e44accb3a (patch)
tree845955ec895d221338b44f0cadce7932932e78cc /src/testbed/test_testbed_api.c
parent43d558efd13a3245e65efd0acdc9c4ba59cd2bee (diff)
downloadgnunet-30c5c323f28ade8a1e7c6c593778793e44accb3a.tar.gz
gnunet-30c5c323f28ade8a1e7c6c593778793e44accb3a.zip
- indent
Diffstat (limited to 'src/testbed/test_testbed_api.c')
-rw-r--r--src/testbed/test_testbed_api.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/testbed/test_testbed_api.c b/src/testbed/test_testbed_api.c
index 310b2f36c..c5c448669 100644
--- a/src/testbed/test_testbed_api.c
+++ b/src/testbed/test_testbed_api.c
@@ -218,9 +218,9 @@ dht_disconnect_adapter (void *cls, void *op_result)
218 * @param emsg error message in case the operation has failed; will be NULL if 218 * @param emsg error message in case the operation has failed; will be NULL if
219 * operation has executed successfully. 219 * operation has executed successfully.
220 */ 220 */
221static void 221static void
222service_connect_comp_cb (void *cls, struct GNUNET_TESTBED_Operation *op, 222service_connect_comp_cb (void *cls, struct GNUNET_TESTBED_Operation *op,
223 void *ca_result, const char *emsg) 223 void *ca_result, const char *emsg)
224{ 224{
225 switch (sub_test) 225 switch (sub_test)
226 { 226 {
@@ -229,8 +229,8 @@ service_connect_comp_cb (void *cls, struct GNUNET_TESTBED_Operation *op,
229 GNUNET_assert (NULL == emsg); 229 GNUNET_assert (NULL == emsg);
230 GNUNET_assert (NULL == cls); 230 GNUNET_assert (NULL == cls);
231 GNUNET_assert (ca_result == dht_handle); 231 GNUNET_assert (ca_result == dht_handle);
232 GNUNET_TESTBED_operation_done (operation); /* This results in call to 232 GNUNET_TESTBED_operation_done (operation); /* This results in call to
233 * disconnect adapter */ 233 * disconnect adapter */
234 break; 234 break;
235 default: 235 default:
236 GNUNET_assert (0); 236 GNUNET_assert (0);
@@ -248,10 +248,10 @@ service_connect_comp_cb (void *cls, struct GNUNET_TESTBED_Operation *op,
248 * @param emsg error message if the operation has failed; will be NULL if the 248 * @param emsg error message if the operation has failed; will be NULL if the
249 * operation is successfull 249 * operation is successfull
250 */ 250 */
251static void 251static void
252peerinfo_cb (void *cb_cls, struct GNUNET_TESTBED_Operation *op, 252peerinfo_cb (void *cb_cls, struct GNUNET_TESTBED_Operation *op,
253 const struct GNUNET_TESTBED_PeerInformation *pinfo, 253 const struct GNUNET_TESTBED_PeerInformation *pinfo,
254 const char *emsg) 254 const char *emsg)
255{ 255{
256 switch (sub_test) 256 switch (sub_test)
257 { 257 {
@@ -300,7 +300,7 @@ controller_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event)
300 GNUNET_assert (NULL == event->details.operation_finished.op_cls); 300 GNUNET_assert (NULL == event->details.operation_finished.op_cls);
301 GNUNET_assert (NULL == event->details.operation_finished.emsg); 301 GNUNET_assert (NULL == event->details.operation_finished.emsg);
302 GNUNET_assert (NULL != dht_handle); 302 GNUNET_assert (NULL != dht_handle);
303 GNUNET_assert (event->details.operation_finished.generic == dht_handle); 303 GNUNET_assert (event->details.operation_finished.generic == dht_handle);
304 break; 304 break;
305 default: 305 default:
306 GNUNET_assert (0); 306 GNUNET_assert (0);
@@ -313,10 +313,10 @@ controller_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event)
313 GNUNET_assert (OTHER == sub_test); 313 GNUNET_assert (OTHER == sub_test);
314 GNUNET_TESTBED_operation_done (operation); 314 GNUNET_TESTBED_operation_done (operation);
315 operation = 315 operation =
316 GNUNET_TESTBED_service_connect (NULL, peer, "dht", 316 GNUNET_TESTBED_service_connect (NULL, peer, "dht",
317 &service_connect_comp_cb, NULL, 317 &service_connect_comp_cb, NULL,
318 &dht_connect_adapter, 318 &dht_connect_adapter,
319 &dht_disconnect_adapter, NULL); 319 &dht_disconnect_adapter, NULL);
320 GNUNET_assert (NULL != operation); 320 GNUNET_assert (NULL != operation);
321 break; 321 break;
322 case GNUNET_TESTBED_ET_PEER_STOP: 322 case GNUNET_TESTBED_ET_PEER_STOP:
@@ -325,10 +325,10 @@ controller_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event)
325 result = GNUNET_YES; 325 result = GNUNET_YES;
326 sub_test = PEER_GETCONFIG; 326 sub_test = PEER_GETCONFIG;
327 GNUNET_TESTBED_operation_done (operation); 327 GNUNET_TESTBED_operation_done (operation);
328 operation = 328 operation =
329 GNUNET_TESTBED_peer_get_information (peer, 329 GNUNET_TESTBED_peer_get_information (peer,
330 GNUNET_TESTBED_PIT_CONFIGURATION, 330 GNUNET_TESTBED_PIT_CONFIGURATION,
331 &peerinfo_cb, NULL); 331 &peerinfo_cb, NULL);
332 break; 332 break;
333 default: 333 default:
334 GNUNET_assert (0); /* We should never reach this state */ 334 GNUNET_assert (0); /* We should never reach this state */