diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-21 17:06:37 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-21 17:06:37 +0000 |
commit | d0d8c2ef267acbf339f27cb2277ed49beeb0afbb (patch) | |
tree | 713b74f9564b49f7f3f07ddc75eff1a5e713881f /src/testbed/testbed_api_hosts.c | |
parent | 9736f59357b31df37940cad1c4604d23ea0b9020 (diff) | |
download | gnunet-d0d8c2ef267acbf339f27cb2277ed49beeb0afbb.tar.gz gnunet-d0d8c2ef267acbf339f27cb2277ed49beeb0afbb.zip |
send configurations of newly started slave controllers as part of controller link operations
Diffstat (limited to 'src/testbed/testbed_api_hosts.c')
-rw-r--r-- | src/testbed/testbed_api_hosts.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index 65217ebdd..198e72c0e 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c | |||
@@ -337,6 +337,21 @@ GNUNET_TESTBED_host_get_cfg_ (const struct GNUNET_TESTBED_Host *host) | |||
337 | 337 | ||
338 | 338 | ||
339 | /** | 339 | /** |
340 | * Function to replace host's configuration | ||
341 | * | ||
342 | * @param host the host handle | ||
343 | * @param new_cfg the new configuration to replace the old one | ||
344 | */ | ||
345 | void | ||
346 | GNUNET_TESTBED_host_replace_cfg_ (struct GNUNET_TESTBED_Host *host, | ||
347 | const struct GNUNET_CONFIGURATION_Handle *new_cfg) | ||
348 | { | ||
349 | GNUNET_CONFIGURATION_destroy (host->cfg); | ||
350 | host->cfg = GNUNET_CONFIGURATION_dup (new_cfg); | ||
351 | } | ||
352 | |||
353 | |||
354 | /** | ||
340 | * Create a host to run peers and controllers on. | 355 | * Create a host to run peers and controllers on. |
341 | * | 356 | * |
342 | * @param id global host ID assigned to the host; 0 is | 357 | * @param id global host ID assigned to the host; 0 is |