diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-20 15:15:35 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-20 15:15:35 +0000 |
commit | a807aa20caec761b314a5eddcffbdd36650bd7d9 (patch) | |
tree | e68bc0be91a5db17740d71fa74ea132c7f3d13bc /src/nse/gnunet-nse-profiler.c | |
parent | adf18305521dc87c4ca1aee82e910ff8e22199cc (diff) | |
download | gnunet-a807aa20caec761b314a5eddcffbdd36650bd7d9.tar.gz gnunet-a807aa20caec761b314a5eddcffbdd36650bd7d9.zip |
Assosiate a configuration template while creating hosts. This paves a way to
manage the configurations of controllers running on a host automatically.
modified ADD_HOST message structure to have host configuration. This feature is
yet to be implemented. The idea is that GNUNET_TESTBED_link_controllers()
should take no configuration when hosts automatically update configuration when
a new configuration is generated from a template.
Diffstat (limited to 'src/nse/gnunet-nse-profiler.c')
-rw-r--r-- | src/nse/gnunet-nse-profiler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index 225a4202a..850817bdd 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c | |||
@@ -299,6 +299,9 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
299 | // FIXME: what about closing other files!? | 299 | // FIXME: what about closing other files!? |
300 | if (NULL != data_file) | 300 | if (NULL != data_file) |
301 | GNUNET_DISK_file_close (data_file); | 301 | GNUNET_DISK_file_close (data_file); |
302 | if (NULL != testing_cfg) | ||
303 | GNUNET_CONFIGURATION_destroy (testing_cfg); | ||
304 | testing_cfg = NULL; | ||
302 | } | 305 | } |
303 | 306 | ||
304 | 307 | ||
@@ -891,6 +894,7 @@ controller_start_cb (void *cls, | |||
891 | return; | 894 | return; |
892 | } | 895 | } |
893 | num_hosts = GNUNET_TESTBED_hosts_load_from_file (hosts_file, | 896 | num_hosts = GNUNET_TESTBED_hosts_load_from_file (hosts_file, |
897 | testing_cfg, | ||
894 | &hosts); | 898 | &hosts); |
895 | if (0 == num_hosts) | 899 | if (0 == num_hosts) |
896 | { | 900 | { |