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.h58
1 files changed, 30 insertions, 28 deletions
diff --git a/src/testbed/testbed_api_hosts.h b/src/testbed/testbed_api_hosts.h
index 369a6da1b..9b19eb8ec 100644
--- a/src/testbed/testbed_api_hosts.h
+++ b/src/testbed/testbed_api_hosts.h
@@ -27,15 +27,16 @@
27#ifndef TESTBED_API_HOSTS_H 27#ifndef TESTBED_API_HOSTS_H
28#define TESTBED_API_HOSTS_H 28#define TESTBED_API_HOSTS_H
29 29
30//#include "gnunet_testbed_service.h" 30// #include "gnunet_testbed_service.h"
31//#include "testbed_helper.h" 31// #include "testbed_helper.h"
32#include "testbed.h" 32#include "testbed.h"
33 33
34 34
35/** 35/**
36 * handle for host registration 36 * handle for host registration
37 */ 37 */
38struct GNUNET_TESTBED_HostRegistrationHandle { 38struct GNUNET_TESTBED_HostRegistrationHandle
39{
39 /** 40 /**
40 * The host being registered 41 * The host being registered
41 */ 42 */
@@ -66,7 +67,7 @@ struct GNUNET_TESTBED_HostRegistrationHandle {
66 * @return handle to the host, NULL on error 67 * @return handle to the host, NULL on error
67 */ 68 */
68struct GNUNET_TESTBED_Host * 69struct GNUNET_TESTBED_Host *
69GNUNET_TESTBED_host_lookup_by_id_(uint32_t id); 70GNUNET_TESTBED_host_lookup_by_id_ (uint32_t id);
70 71
71 72
72/** 73/**
@@ -82,9 +83,9 @@ GNUNET_TESTBED_host_lookup_by_id_(uint32_t id);
82 * @return handle to the host, NULL on error 83 * @return handle to the host, NULL on error
83 */ 84 */
84struct GNUNET_TESTBED_Host * 85struct GNUNET_TESTBED_Host *
85GNUNET_TESTBED_host_create_by_id_(uint32_t id, 86GNUNET_TESTBED_host_create_by_id_ (uint32_t id,
86 const struct GNUNET_CONFIGURATION_Handle 87 const struct GNUNET_CONFIGURATION_Handle
87 *cfg); 88 *cfg);
88 89
89 90
90/** 91/**
@@ -95,7 +96,7 @@ GNUNET_TESTBED_host_create_by_id_(uint32_t id,
95 * 'localhost', but then obviously not globally unique) 96 * 'localhost', but then obviously not globally unique)
96 */ 97 */
97uint32_t 98uint32_t
98GNUNET_TESTBED_host_get_id_(const struct GNUNET_TESTBED_Host *host); 99GNUNET_TESTBED_host_get_id_ (const struct GNUNET_TESTBED_Host *host);
99 100
100 101
101/** 102/**
@@ -105,7 +106,7 @@ GNUNET_TESTBED_host_get_id_(const struct GNUNET_TESTBED_Host *host);
105 * @return username to login to the host 106 * @return username to login to the host
106 */ 107 */
107const char * 108const char *
108GNUNET_TESTBED_host_get_username_(const struct GNUNET_TESTBED_Host *host); 109GNUNET_TESTBED_host_get_username_ (const struct GNUNET_TESTBED_Host *host);
109 110
110 111
111/** 112/**
@@ -115,7 +116,7 @@ GNUNET_TESTBED_host_get_username_(const struct GNUNET_TESTBED_Host *host);
115 * @return username to login to the host 116 * @return username to login to the host
116 */ 117 */
117uint16_t 118uint16_t
118GNUNET_TESTBED_host_get_ssh_port_(const struct GNUNET_TESTBED_Host *host); 119GNUNET_TESTBED_host_get_ssh_port_ (const struct GNUNET_TESTBED_Host *host);
119 120
120 121
121/** 122/**
@@ -125,7 +126,7 @@ GNUNET_TESTBED_host_get_ssh_port_(const struct GNUNET_TESTBED_Host *host);
125 * @return the host's configuration template 126 * @return the host's configuration template
126 */ 127 */
127const struct GNUNET_CONFIGURATION_Handle * 128const struct GNUNET_CONFIGURATION_Handle *
128GNUNET_TESTBED_host_get_cfg_(const struct GNUNET_TESTBED_Host *host); 129GNUNET_TESTBED_host_get_cfg_ (const struct GNUNET_TESTBED_Host *host);
129 130
130 131
131/** 132/**
@@ -135,8 +136,9 @@ GNUNET_TESTBED_host_get_cfg_(const struct GNUNET_TESTBED_Host *host);
135 * @param new_cfg the new configuration to replace the old one 136 * @param new_cfg the new configuration to replace the old one
136 */ 137 */
137void 138void
138GNUNET_TESTBED_host_replace_cfg_(struct GNUNET_TESTBED_Host *host, 139GNUNET_TESTBED_host_replace_cfg_ (struct GNUNET_TESTBED_Host *host,
139 const struct GNUNET_CONFIGURATION_Handle *new_cfg); 140 const struct
141 GNUNET_CONFIGURATION_Handle *new_cfg);
140 142
141 143
142/** 144/**
@@ -146,9 +148,9 @@ GNUNET_TESTBED_host_replace_cfg_(struct GNUNET_TESTBED_Host *host,
146 * @param controller the controller at which this host is registered 148 * @param controller the controller at which this host is registered
147 */ 149 */
148void 150void
149GNUNET_TESTBED_mark_host_registered_at_(struct GNUNET_TESTBED_Host *host, 151GNUNET_TESTBED_mark_host_registered_at_ (struct GNUNET_TESTBED_Host *host,
150 const struct GNUNET_TESTBED_Controller 152 const struct GNUNET_TESTBED_Controller
151 *controller); 153 *controller);
152 154
153 155
154/** 156/**
@@ -158,9 +160,9 @@ GNUNET_TESTBED_mark_host_registered_at_(struct GNUNET_TESTBED_Host *host,
158 * @param controller the controller at which this host has to be unmarked 160 * @param controller the controller at which this host has to be unmarked
159 */ 161 */
160void 162void
161GNUNET_TESTBED_deregister_host_at_(struct GNUNET_TESTBED_Host *host, 163GNUNET_TESTBED_deregister_host_at_ (struct GNUNET_TESTBED_Host *host,
162 const struct GNUNET_TESTBED_Controller 164 const struct GNUNET_TESTBED_Controller
163 *const controller); 165 *const controller);
164 166
165 167
166/** 168/**
@@ -171,9 +173,9 @@ GNUNET_TESTBED_deregister_host_at_(struct GNUNET_TESTBED_Host *host,
171 * @return GNUNET_YES if registered; GNUNET_NO if not 173 * @return GNUNET_YES if registered; GNUNET_NO if not
172 */ 174 */
173int 175int
174GNUNET_TESTBED_is_host_registered_(const struct GNUNET_TESTBED_Host *host, 176GNUNET_TESTBED_is_host_registered_ (const struct GNUNET_TESTBED_Host *host,
175 const struct GNUNET_TESTBED_Controller 177 const struct GNUNET_TESTBED_Controller
176 *controller); 178 *controller);
177 179
178 180
179/** 181/**
@@ -185,8 +187,8 @@ GNUNET_TESTBED_is_host_registered_(const struct GNUNET_TESTBED_Host *host,
185 * queue 187 * queue
186 */ 188 */
187void 189void
188GNUNET_TESTBED_host_queue_oc_(struct GNUNET_TESTBED_Host *h, 190GNUNET_TESTBED_host_queue_oc_ (struct GNUNET_TESTBED_Host *h,
189 struct GNUNET_TESTBED_Operation *op); 191 struct GNUNET_TESTBED_Operation *op);
190 192
191 193
192/** 194/**
@@ -195,7 +197,7 @@ GNUNET_TESTBED_host_queue_oc_(struct GNUNET_TESTBED_Host *h,
195 * @param cproc the handle to the controller's helper process 197 * @param cproc the handle to the controller's helper process
196 */ 198 */
197void 199void
198GNUNET_TESTBED_controller_kill_(struct GNUNET_TESTBED_ControllerProc *cproc); 200GNUNET_TESTBED_controller_kill_ (struct GNUNET_TESTBED_ControllerProc *cproc);
199 201
200 202
201/** 203/**
@@ -204,8 +206,8 @@ GNUNET_TESTBED_controller_kill_(struct GNUNET_TESTBED_ControllerProc *cproc);
204 * @param cproc the handle to the controller's helper process 206 * @param cproc the handle to the controller's helper process
205 */ 207 */
206void 208void
207GNUNET_TESTBED_controller_destroy_(struct GNUNET_TESTBED_ControllerProc 209GNUNET_TESTBED_controller_destroy_ (struct GNUNET_TESTBED_ControllerProc
208 *cproc); 210 *cproc);
209 211
210 212
211/** 213/**
@@ -214,7 +216,7 @@ GNUNET_TESTBED_controller_destroy_(struct GNUNET_TESTBED_ControllerProc
214 * @param host the host whose hostname is to be resolved 216 * @param host the host whose hostname is to be resolved
215 */ 217 */
216void 218void
217GNUNET_TESTBED_host_resolve_(struct GNUNET_TESTBED_Host *host); 219GNUNET_TESTBED_host_resolve_ (struct GNUNET_TESTBED_Host *host);
218 220
219 221
220#endif 222#endif