aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_hosts.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-02-21 17:06:37 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-02-21 17:06:37 +0000
commitd0d8c2ef267acbf339f27cb2277ed49beeb0afbb (patch)
tree713b74f9564b49f7f3f07ddc75eff1a5e713881f /src/testbed/testbed_api_hosts.c
parent9736f59357b31df37940cad1c4604d23ea0b9020 (diff)
downloadgnunet-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.c15
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 */
345void
346GNUNET_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