aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-10-10 19:33:49 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-10-10 19:33:49 +0000
commit8acf05794f3473e380e6d144e804bb818d8219ee (patch)
tree60ed75ecd6cd97c62e6d9e9a2b00130f9452a332 /src/testbed/testbed_api.h
parent2370b7bcd4649de55e06d86f16c35c360c93212b (diff)
downloadgnunet-8acf05794f3473e380e6d144e804bb818d8219ee.tar.gz
gnunet-8acf05794f3473e380e6d144e804bb818d8219ee.zip
controller linking with host ids
Diffstat (limited to 'src/testbed/testbed_api.h')
-rw-r--r--src/testbed/testbed_api.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/testbed/testbed_api.h b/src/testbed/testbed_api.h
index 45815c057..ac44c8820 100644
--- a/src/testbed/testbed_api.h
+++ b/src/testbed/testbed_api.h
@@ -453,5 +453,59 @@ GNUNET_TESTBED_get_slave_config_ (void *op_cls,
453 struct GNUNET_TESTBED_Controller *master, 453 struct GNUNET_TESTBED_Controller *master,
454 uint32_t slave_host_id); 454 uint32_t slave_host_id);
455 455
456
457/**
458 * Same as the GNUNET_TESTBED_controller_link_2, but with ids for delegated host
459 * and slave host
460 *
461 * @param op_cls the operation closure for the event which is generated to
462 * signal success or failure of this operation
463 * @param master handle to the master controller who creates the association
464 * @param delegated_host_id id of the host to which requests should be delegated
465 * @param slave_host_id id of the host which is used to run the slave controller
466 * @param sxcfg serialized and compressed configuration
467 * @param sxcfg_size the size sxcfg
468 * @param scfg_size the size of uncompressed serialized configuration
469 * @param is_subordinate GNUNET_YES if the controller at delegated_host should
470 * be started by the slave controller; GNUNET_NO if the slave
471 * controller has to connect to the already started delegated
472 * controller via TCP/IP
473 * @return the operation handle
474 */
475struct GNUNET_TESTBED_Operation *
476GNUNET_TESTBED_controller_link_2_ (void *op_cls,
477 struct GNUNET_TESTBED_Controller *master,
478 uint32_t delegated_host_id,
479 uint32_t slave_host_id,
480 const char *sxcfg, size_t sxcfg_size,
481 size_t scfg_size, int is_subordinate);
482
483
484/**
485 * Same as the GNUNET_TESTBED_controller_link, but with ids for delegated host
486 * and slave host
487 *
488 * @param op_cls the operation closure for the event which is generated to
489 * signal success or failure of this operation
490 * @param master handle to the master controller who creates the association
491 * @param delegated_host requests to which host should be delegated; cannot be NULL
492 * @param slave_host which host is used to run the slave controller; use NULL to
493 * make the master controller connect to the delegated host
494 * @param slave_cfg configuration to use for the slave controller
495 * @param is_subordinate GNUNET_YES if the controller at delegated_host should
496 * be started by the slave controller; GNUNET_NO if the slave
497 * controller has to connect to the already started delegated
498 * controller via TCP/IP
499 * @return the operation handle
500 */
501struct GNUNET_TESTBED_Operation *
502GNUNET_TESTBED_controller_link_ (void *op_cls,
503 struct GNUNET_TESTBED_Controller *master,
504 uint32_t delegated_host_id,
505 uint32_t slave_host_id,
506 const struct GNUNET_CONFIGURATION_Handle
507 *slave_cfg,
508 int is_subordinate);
509
456#endif 510#endif
457/* end of testbed_api.h */ 511/* end of testbed_api.h */