aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_hosts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testbed/testbed_api_hosts.h')
-rw-r--r--src/testbed/testbed_api_hosts.h55
1 files changed, 27 insertions, 28 deletions
diff --git a/src/testbed/testbed_api_hosts.h b/src/testbed/testbed_api_hosts.h
index bc5e988d3..369a6da1b 100644
--- a/src/testbed/testbed_api_hosts.h
+++ b/src/testbed/testbed_api_hosts.h
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -35,8 +35,7 @@
35/** 35/**
36 * handle for host registration 36 * handle for host registration
37 */ 37 */
38struct GNUNET_TESTBED_HostRegistrationHandle 38struct GNUNET_TESTBED_HostRegistrationHandle {
39{
40 /** 39 /**
41 * The host being registered 40 * The host being registered
42 */ 41 */
@@ -67,7 +66,7 @@ struct GNUNET_TESTBED_HostRegistrationHandle
67 * @return handle to the host, NULL on error 66 * @return handle to the host, NULL on error
68 */ 67 */
69struct GNUNET_TESTBED_Host * 68struct GNUNET_TESTBED_Host *
70GNUNET_TESTBED_host_lookup_by_id_ (uint32_t id); 69GNUNET_TESTBED_host_lookup_by_id_(uint32_t id);
71 70
72 71
73/** 72/**
@@ -83,9 +82,9 @@ GNUNET_TESTBED_host_lookup_by_id_ (uint32_t id);
83 * @return handle to the host, NULL on error 82 * @return handle to the host, NULL on error
84 */ 83 */
85struct GNUNET_TESTBED_Host * 84struct GNUNET_TESTBED_Host *
86GNUNET_TESTBED_host_create_by_id_ (uint32_t id, 85GNUNET_TESTBED_host_create_by_id_(uint32_t id,
87 const struct GNUNET_CONFIGURATION_Handle 86 const struct GNUNET_CONFIGURATION_Handle
88 *cfg); 87 *cfg);
89 88
90 89
91/** 90/**
@@ -96,7 +95,7 @@ GNUNET_TESTBED_host_create_by_id_ (uint32_t id,
96 * 'localhost', but then obviously not globally unique) 95 * 'localhost', but then obviously not globally unique)
97 */ 96 */
98uint32_t 97uint32_t
99GNUNET_TESTBED_host_get_id_ (const struct GNUNET_TESTBED_Host *host); 98GNUNET_TESTBED_host_get_id_(const struct GNUNET_TESTBED_Host *host);
100 99
101 100
102/** 101/**
@@ -106,7 +105,7 @@ GNUNET_TESTBED_host_get_id_ (const struct GNUNET_TESTBED_Host *host);
106 * @return username to login to the host 105 * @return username to login to the host
107 */ 106 */
108const char * 107const char *
109GNUNET_TESTBED_host_get_username_ (const struct GNUNET_TESTBED_Host *host); 108GNUNET_TESTBED_host_get_username_(const struct GNUNET_TESTBED_Host *host);
110 109
111 110
112/** 111/**
@@ -116,7 +115,7 @@ GNUNET_TESTBED_host_get_username_ (const struct GNUNET_TESTBED_Host *host);
116 * @return username to login to the host 115 * @return username to login to the host
117 */ 116 */
118uint16_t 117uint16_t
119GNUNET_TESTBED_host_get_ssh_port_ (const struct GNUNET_TESTBED_Host *host); 118GNUNET_TESTBED_host_get_ssh_port_(const struct GNUNET_TESTBED_Host *host);
120 119
121 120
122/** 121/**
@@ -126,7 +125,7 @@ GNUNET_TESTBED_host_get_ssh_port_ (const struct GNUNET_TESTBED_Host *host);
126 * @return the host's configuration template 125 * @return the host's configuration template
127 */ 126 */
128const struct GNUNET_CONFIGURATION_Handle * 127const struct GNUNET_CONFIGURATION_Handle *
129GNUNET_TESTBED_host_get_cfg_ (const struct GNUNET_TESTBED_Host *host); 128GNUNET_TESTBED_host_get_cfg_(const struct GNUNET_TESTBED_Host *host);
130 129
131 130
132/** 131/**
@@ -136,8 +135,8 @@ GNUNET_TESTBED_host_get_cfg_ (const struct GNUNET_TESTBED_Host *host);
136 * @param new_cfg the new configuration to replace the old one 135 * @param new_cfg the new configuration to replace the old one
137 */ 136 */
138void 137void
139GNUNET_TESTBED_host_replace_cfg_ (struct GNUNET_TESTBED_Host *host, 138GNUNET_TESTBED_host_replace_cfg_(struct GNUNET_TESTBED_Host *host,
140 const struct GNUNET_CONFIGURATION_Handle *new_cfg); 139 const struct GNUNET_CONFIGURATION_Handle *new_cfg);
141 140
142 141
143/** 142/**
@@ -147,9 +146,9 @@ GNUNET_TESTBED_host_replace_cfg_ (struct GNUNET_TESTBED_Host *host,
147 * @param controller the controller at which this host is registered 146 * @param controller the controller at which this host is registered
148 */ 147 */
149void 148void
150GNUNET_TESTBED_mark_host_registered_at_ (struct GNUNET_TESTBED_Host *host, 149GNUNET_TESTBED_mark_host_registered_at_(struct GNUNET_TESTBED_Host *host,
151 const struct GNUNET_TESTBED_Controller 150 const struct GNUNET_TESTBED_Controller
152 *controller); 151 *controller);
153 152
154 153
155/** 154/**
@@ -159,9 +158,9 @@ GNUNET_TESTBED_mark_host_registered_at_ (struct GNUNET_TESTBED_Host *host,
159 * @param controller the controller at which this host has to be unmarked 158 * @param controller the controller at which this host has to be unmarked
160 */ 159 */
161void 160void
162GNUNET_TESTBED_deregister_host_at_ (struct GNUNET_TESTBED_Host *host, 161GNUNET_TESTBED_deregister_host_at_(struct GNUNET_TESTBED_Host *host,
163 const struct GNUNET_TESTBED_Controller 162 const struct GNUNET_TESTBED_Controller
164 *const controller); 163 *const controller);
165 164
166 165
167/** 166/**
@@ -172,9 +171,9 @@ GNUNET_TESTBED_deregister_host_at_ (struct GNUNET_TESTBED_Host *host,
172 * @return GNUNET_YES if registered; GNUNET_NO if not 171 * @return GNUNET_YES if registered; GNUNET_NO if not
173 */ 172 */
174int 173int
175GNUNET_TESTBED_is_host_registered_ (const struct GNUNET_TESTBED_Host *host, 174GNUNET_TESTBED_is_host_registered_(const struct GNUNET_TESTBED_Host *host,
176 const struct GNUNET_TESTBED_Controller 175 const struct GNUNET_TESTBED_Controller
177 *controller); 176 *controller);
178 177
179 178
180/** 179/**
@@ -186,8 +185,8 @@ GNUNET_TESTBED_is_host_registered_ (const struct GNUNET_TESTBED_Host *host,
186 * queue 185 * queue
187 */ 186 */
188void 187void
189GNUNET_TESTBED_host_queue_oc_ (struct GNUNET_TESTBED_Host *h, 188GNUNET_TESTBED_host_queue_oc_(struct GNUNET_TESTBED_Host *h,
190 struct GNUNET_TESTBED_Operation *op); 189 struct GNUNET_TESTBED_Operation *op);
191 190
192 191
193/** 192/**
@@ -196,7 +195,7 @@ GNUNET_TESTBED_host_queue_oc_ (struct GNUNET_TESTBED_Host *h,
196 * @param cproc the handle to the controller's helper process 195 * @param cproc the handle to the controller's helper process
197 */ 196 */
198void 197void
199GNUNET_TESTBED_controller_kill_ (struct GNUNET_TESTBED_ControllerProc *cproc); 198GNUNET_TESTBED_controller_kill_(struct GNUNET_TESTBED_ControllerProc *cproc);
200 199
201 200
202/** 201/**
@@ -205,8 +204,8 @@ GNUNET_TESTBED_controller_kill_ (struct GNUNET_TESTBED_ControllerProc *cproc);
205 * @param cproc the handle to the controller's helper process 204 * @param cproc the handle to the controller's helper process
206 */ 205 */
207void 206void
208GNUNET_TESTBED_controller_destroy_ (struct GNUNET_TESTBED_ControllerProc 207GNUNET_TESTBED_controller_destroy_(struct GNUNET_TESTBED_ControllerProc
209 *cproc); 208 *cproc);
210 209
211 210
212/** 211/**
@@ -215,7 +214,7 @@ GNUNET_TESTBED_controller_destroy_ (struct GNUNET_TESTBED_ControllerProc
215 * @param host the host whose hostname is to be resolved 214 * @param host the host whose hostname is to be resolved
216 */ 215 */
217void 216void
218GNUNET_TESTBED_host_resolve_ (struct GNUNET_TESTBED_Host *host); 217GNUNET_TESTBED_host_resolve_(struct GNUNET_TESTBED_Host *host);
219 218
220 219
221#endif 220#endif