aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-07-17 22:25:44 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-07-17 22:25:44 +0000
commit253d546750130fc4471a7c53355b6f5d58326fc3 (patch)
treeb7c567693f7a4c2e47782d3b05538d8586942dd4 /src/include/gnunet_testbed_service.h
parent89daff335a418fb67ce8ea4d3e1e128e96d19877 (diff)
downloadgnunet-253d546750130fc4471a7c53355b6f5d58326fc3.tar.gz
gnunet-253d546750130fc4471a7c53355b6f5d58326fc3.zip
helper reply with modified config
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r--src/include/gnunet_testbed_service.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h
index a190b67a7..8888d781e 100644
--- a/src/include/gnunet_testbed_service.h
+++ b/src/include/gnunet_testbed_service.h
@@ -403,14 +403,17 @@ struct GNUNET_TESTBED_ControllerProc;
403 403
404 404
405/** 405/**
406 * Function called on errors with the controller. 406 * Callback to signal successfull startup of the controller process
407 * 407 *
408 * @param cls closure 408 * @param cls the closure from GNUNET_TESTBED_controller_start()
409 * @param emsg error message if available; can be NULL, which does NOT mean 409 * @param cfg the configuration with which the controller has been started;
410 * that there was no error 410 * NULL if status is not GNUNET_OK
411 * @param status GNUNET_OK if the startup is successfull; GNUNET_SYSERR if not,
412 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case
411 */ 413 */
412typedef void (*GNUNET_TESTBED_ControllerErrorCallback)(void *cls, 414typedef void (*GNUNET_TESTBED_ControllerStatusCallback) (void *cls,
413 const char *emsg); 415 const struct GNUNET_CONFIGURATION_Handle *cfg,
416 int status);
414 417
415 418
416/** 419/**
@@ -419,25 +422,26 @@ typedef void (*GNUNET_TESTBED_ControllerErrorCallback)(void *cls,
419 * 422 *
420 * @param controller_ip the ip address of the controller. Will be set as TRUSTED 423 * @param controller_ip the ip address of the controller. Will be set as TRUSTED
421 * host when starting testbed controller at host 424 * host when starting testbed controller at host
422 * @param host the host where the controller has to be started; NULL for localhost 425 * @param host the host where the controller has to be started; NULL for
426 * localhost
423 * @param cfg template configuration to use for the remote controller; the 427 * @param cfg template configuration to use for the remote controller; the
424 * remote controller will be started with a slightly modified 428 * remote controller will be started with a slightly modified
425 * configuration (port numbers, unix domain sockets and service home 429 * configuration (port numbers, unix domain sockets and service home
426 * values are changed as per TESTING library on the remote host) 430 * values are changed as per TESTING library on the remote host)
427 * @param cec function called if the contoller dies unexpectedly; will not be 431 * @param cb function called when the controller is successfully started or
428 * invoked after GNUNET_TESTBED_controller_stop, if 'cec' was called, 432 * dies unexpectedly; GNUNET_TESTBED_controller_stop shouldn't be
429 * GNUNET_TESTBED_controller_stop must no longer be called; will 433 * called if cb is called with GNUNET_SYSERR as status. Will never be
430 * never be called in the same task as 'GNUNET_TESTBED_controller_start' 434 * called in the same task as 'GNUNET_TESTBED_controller_start'
431 * (synchronous errors will be signalled by returning NULL) 435 * (synchronous errors will be signalled by returning NULL)
432 * @param cec_cls closure for 'cec' 436 * @param cls closure for above callbacks
433 * @return the controller process handle, NULL on errors 437 * @return the controller process handle, NULL on errors
434 */ 438 */
435struct GNUNET_TESTBED_ControllerProc * 439struct GNUNET_TESTBED_ControllerProc *
436GNUNET_TESTBED_controller_start (const char *controller_ip, 440GNUNET_TESTBED_controller_start (const char *controller_ip,
437 struct GNUNET_TESTBED_Host *host, 441 struct GNUNET_TESTBED_Host *host,
438 const struct GNUNET_CONFIGURATION_Handle *cfg, 442 const struct GNUNET_CONFIGURATION_Handle *cfg,
439 GNUNET_TESTBED_ControllerErrorCallback cec, 443 GNUNET_TESTBED_ControllerStatusCallback cb,
440 void *cec_cls); 444 void *cls);
441 445
442 446
443/** 447/**