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/testbed/testbed_api_hosts.h | |
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/testbed/testbed_api_hosts.h')
-rw-r--r-- | src/testbed/testbed_api_hosts.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/testbed/testbed_api_hosts.h b/src/testbed/testbed_api_hosts.h index 69d18bcbf..2d25fd596 100644 --- a/src/testbed/testbed_api_hosts.h +++ b/src/testbed/testbed_api_hosts.h | |||
@@ -49,10 +49,15 @@ GNUNET_TESTBED_host_lookup_by_id_ (uint32_t id); | |||
49 | * | 49 | * |
50 | * @param id global host ID assigned to the host; 0 is | 50 | * @param id global host ID assigned to the host; 0 is |
51 | * reserved to always mean 'localhost' | 51 | * reserved to always mean 'localhost' |
52 | * @param cfg the configuration to use as a template while starting a controller | ||
53 | * on this host. Operation queue sizes specific to a host are also | ||
54 | * read from this configuration handle | ||
52 | * @return handle to the host, NULL on error | 55 | * @return handle to the host, NULL on error |
53 | */ | 56 | */ |
54 | struct GNUNET_TESTBED_Host * | 57 | struct GNUNET_TESTBED_Host * |
55 | GNUNET_TESTBED_host_create_by_id_ (uint32_t id); | 58 | GNUNET_TESTBED_host_create_by_id_ (uint32_t id, |
59 | const struct GNUNET_CONFIGURATION_Handle | ||
60 | *cfg); | ||
56 | 61 | ||
57 | 62 | ||
58 | /** | 63 | /** |
@@ -87,6 +92,16 @@ GNUNET_TESTBED_host_get_ssh_port_ (const struct GNUNET_TESTBED_Host *host); | |||
87 | 92 | ||
88 | 93 | ||
89 | /** | 94 | /** |
95 | * Obtain the host's configuration template | ||
96 | * | ||
97 | * @param host handle to the host | ||
98 | * @return the host's configuration template | ||
99 | */ | ||
100 | const struct GNUNET_CONFIGURATION_Handle * | ||
101 | GNUNET_TESTBED_host_get_cfg_ (const struct GNUNET_TESTBED_Host *host); | ||
102 | |||
103 | |||
104 | /** | ||
90 | * Marks a host as registered with a controller | 105 | * Marks a host as registered with a controller |
91 | * | 106 | * |
92 | * @param host the host to mark | 107 | * @param host the host to mark |