diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-09 12:22:31 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-09 12:22:31 +0000 |
commit | de547f838e21de9f847c0b357c41cbfa6ecbe967 (patch) | |
tree | 35da1aed63ed018249ec58941447bacd758adfff /src/testbed/testbed_api_testbed.c | |
parent | a3efd7521e99175689c589a128240f2c84c55c45 (diff) |
- barriers test case; more fixes
Diffstat (limited to 'src/testbed/testbed_api_testbed.c')
-rw-r--r-- | src/testbed/testbed_api_testbed.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index b00e2825c0..25054bf1d0 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c @@ -1006,6 +1006,7 @@ controller_status_cb (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, if (status != GNUNET_OK) { + rc->cproc = NULL; GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Controller crash detected. Shutting down.\n")); GNUNET_SCHEDULER_shutdown (); @@ -1360,4 +1361,18 @@ error_cleanup: } +/** + * Obtain handle to the master controller from a testbed run. The handle + * returned should not be disconnected. + * + * @param h the testbed run handle + * @return handle to the master controller + */ +struct GNUNET_TESTBED_Controller * +GNUNET_TESTBED_run_get_controller_handle (struct GNUNET_TESTBED_RunHandle *h) +{ + return h->c; +} + + /* end of testbed_api_testbed.c */ |