aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-10-04 14:02:44 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-10-04 14:02:44 +0000
commitb96afc0513d3d70a50dc2faa21601ce7cefc1d6f (patch)
treece31c4054d311d11b7372fdc0024add1b97c436e /src/include/gnunet_testbed_service.h
parent98c7ca502554ae53580d5553070af98c889178fc (diff)
downloadgnunet-b96afc0513d3d70a50dc2faa21601ce7cefc1d6f.tar.gz
gnunet-b96afc0513d3d70a50dc2faa21601ce7cefc1d6f.zip
added operation closure to GNUNET_TESTBED_controller_link()
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r--src/include/gnunet_testbed_service.h39
1 files changed, 26 insertions, 13 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h
index 04868ed0d..065cd0c0f 100644
--- a/src/include/gnunet_testbed_service.h
+++ b/src/include/gnunet_testbed_service.h
@@ -543,28 +543,37 @@ typedef void (*GNUNET_TESTBED_OperationCompletionCallback) (void *cls,
543 * master controller is asked to start a peer at the delegated controller the 543 * master controller is asked to start a peer at the delegated controller the
544 * request will be routed towards slave controller (if a route exists). The 544 * request will be routed towards slave controller (if a route exists). The
545 * slave controller will then route it to the delegated controller. The 545 * slave controller will then route it to the delegated controller. The
546 * configuration of the slave controller is given and to be used to either 546 * configuration of the delegated controller is given and is used to either
547 * create the slave controller or to connect to an existing slave controller 547 * create the delegated controller or to connect to an existing controller. Note
548 * process. 'is_subordinate' specifies if the given slave controller should be 548 * that while starting the delegated controller the configuration will be
549 * started and managed by the master controller, or if the slave already has a 549 * modified to accommodate available free ports. the 'is_subordinate' specifies
550 * master and this is just a secondary master that is also allowed to use the 550 * if the given delegated controller should be started and managed by the slave
551 * existing slave. 551 * controller, or if the delegated controller already has a master and the slave
552 * controller connects to it as a non master controller. The success or failure
553 * of this operation will be signalled through the
554 * GNUNET_TESTBED_ControllerCallback() with an event of type
555 * GNUNET_TESTBED_ET_OPERATION_FINISHED
552 * 556 *
557 * @param op_cls the operation closure for the event which is generated to
558 * signal success or failure of this operation
553 * @param master handle to the master controller who creates the association 559 * @param master handle to the master controller who creates the association
554 * @param delegated_host requests to which host should be delegated; cannot be NULL 560 * @param delegated_host requests to which host should be delegated; cannot be NULL
555 * @param slave_host which host is used to run the slave controller; use NULL to 561 * @param slave_host which host is used to run the slave controller; use NULL to
556 * make the master controller connect to the delegated host 562 * make the master controller connect to the delegated host
557 * @param slave_cfg configuration to use for the slave controller 563 * @param slave_cfg configuration to use for the slave controller
558 * @param is_subordinate GNUNET_YES if the controller at delegated_host should 564 * @param is_subordinate GNUNET_YES if the controller at delegated_host should
559 * be started by the master controller; GNUNET_NO if we are just 565 * be started by the slave controller; GNUNET_NO if the slave
560 * allowed to use the slave via TCP/IP 566 * controller has to connect to the already started delegated
567 * controller via TCP/IP
561 * @return the operation handle 568 * @return the operation handle
562 */ 569 */
563struct GNUNET_TESTBED_Operation * 570struct GNUNET_TESTBED_Operation *
564GNUNET_TESTBED_controller_link (struct GNUNET_TESTBED_Controller *master, 571GNUNET_TESTBED_controller_link (void *op_cls,
572 struct GNUNET_TESTBED_Controller *master,
565 struct GNUNET_TESTBED_Host *delegated_host, 573 struct GNUNET_TESTBED_Host *delegated_host,
566 struct GNUNET_TESTBED_Host *slave_host, 574 struct GNUNET_TESTBED_Host *slave_host,
567 const struct GNUNET_CONFIGURATION_Handle *slave_cfg, 575 const struct GNUNET_CONFIGURATION_Handle
576 *slave_cfg,
568 int is_subordinate); 577 int is_subordinate);
569 578
570 579
@@ -572,6 +581,8 @@ GNUNET_TESTBED_controller_link (struct GNUNET_TESTBED_Controller *master,
572 * Same as the GNUNET_TESTBED_controller_link, however expects configuration in 581 * Same as the GNUNET_TESTBED_controller_link, however expects configuration in
573 * serialized and compressed 582 * serialized and compressed
574 * 583 *
584 * @param op_cls the operation closure for the event which is generated to
585 * signal success or failure of this operation
575 * @param master handle to the master controller who creates the association 586 * @param master handle to the master controller who creates the association
576 * @param delegated_host requests to which host should be delegated; cannot be NULL 587 * @param delegated_host requests to which host should be delegated; cannot be NULL
577 * @param slave_host which host is used to run the slave controller; use NULL to 588 * @param slave_host which host is used to run the slave controller; use NULL to
@@ -580,12 +591,14 @@ GNUNET_TESTBED_controller_link (struct GNUNET_TESTBED_Controller *master,
580 * @param sxcfg_size the size sxcfg 591 * @param sxcfg_size the size sxcfg
581 * @param scfg_size the size of uncompressed serialized configuration 592 * @param scfg_size the size of uncompressed serialized configuration
582 * @param is_subordinate GNUNET_YES if the controller at delegated_host should 593 * @param is_subordinate GNUNET_YES if the controller at delegated_host should
583 * be started by the master controller; GNUNET_NO if we are just 594 * be started by the slave controller; GNUNET_NO if the slave
584 * allowed to use the slave via TCP/IP 595 * controller has to connect to the already started delegated
596 * controller via TCP/IP
585 * @return the operation handle 597 * @return the operation handle
586 */ 598 */
587struct GNUNET_TESTBED_Operation * 599struct GNUNET_TESTBED_Operation *
588GNUNET_TESTBED_controller_link_2 (struct GNUNET_TESTBED_Controller *master, 600GNUNET_TESTBED_controller_link_2 (void *op_cls,
601 struct GNUNET_TESTBED_Controller *master,
589 struct GNUNET_TESTBED_Host *delegated_host, 602 struct GNUNET_TESTBED_Host *delegated_host,
590 struct GNUNET_TESTBED_Host *slave_host, 603 struct GNUNET_TESTBED_Host *slave_host,
591 const char *sxcfg, 604 const char *sxcfg,