diff options
Diffstat (limited to 'src/testbed/testbed_api_hosts.h')
-rw-r--r-- | src/testbed/testbed_api_hosts.h | 58 |
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 | */ |
38 | struct GNUNET_TESTBED_HostRegistrationHandle { | 38 | struct 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 | */ |
68 | struct GNUNET_TESTBED_Host * | 69 | struct GNUNET_TESTBED_Host * |
69 | GNUNET_TESTBED_host_lookup_by_id_(uint32_t id); | 70 | GNUNET_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 | */ |
84 | struct GNUNET_TESTBED_Host * | 85 | struct GNUNET_TESTBED_Host * |
85 | GNUNET_TESTBED_host_create_by_id_(uint32_t id, | 86 | GNUNET_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 | */ |
97 | uint32_t | 98 | uint32_t |
98 | GNUNET_TESTBED_host_get_id_(const struct GNUNET_TESTBED_Host *host); | 99 | GNUNET_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 | */ |
107 | const char * | 108 | const char * |
108 | GNUNET_TESTBED_host_get_username_(const struct GNUNET_TESTBED_Host *host); | 109 | GNUNET_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 | */ |
117 | uint16_t | 118 | uint16_t |
118 | GNUNET_TESTBED_host_get_ssh_port_(const struct GNUNET_TESTBED_Host *host); | 119 | GNUNET_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 | */ |
127 | const struct GNUNET_CONFIGURATION_Handle * | 128 | const struct GNUNET_CONFIGURATION_Handle * |
128 | GNUNET_TESTBED_host_get_cfg_(const struct GNUNET_TESTBED_Host *host); | 129 | GNUNET_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 | */ |
137 | void | 138 | void |
138 | GNUNET_TESTBED_host_replace_cfg_(struct GNUNET_TESTBED_Host *host, | 139 | GNUNET_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 | */ |
148 | void | 150 | void |
149 | GNUNET_TESTBED_mark_host_registered_at_(struct GNUNET_TESTBED_Host *host, | 151 | GNUNET_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 | */ |
160 | void | 162 | void |
161 | GNUNET_TESTBED_deregister_host_at_(struct GNUNET_TESTBED_Host *host, | 163 | GNUNET_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 | */ |
173 | int | 175 | int |
174 | GNUNET_TESTBED_is_host_registered_(const struct GNUNET_TESTBED_Host *host, | 176 | GNUNET_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 | */ |
187 | void | 189 | void |
188 | GNUNET_TESTBED_host_queue_oc_(struct GNUNET_TESTBED_Host *h, | 190 | GNUNET_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 | */ |
197 | void | 199 | void |
198 | GNUNET_TESTBED_controller_kill_(struct GNUNET_TESTBED_ControllerProc *cproc); | 200 | GNUNET_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 | */ |
206 | void | 208 | void |
207 | GNUNET_TESTBED_controller_destroy_(struct GNUNET_TESTBED_ControllerProc | 209 | GNUNET_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 | */ |
216 | void | 218 | void |
217 | GNUNET_TESTBED_host_resolve_(struct GNUNET_TESTBED_Host *host); | 219 | GNUNET_TESTBED_host_resolve_ (struct GNUNET_TESTBED_Host *host); |
218 | 220 | ||
219 | 221 | ||
220 | #endif | 222 | #endif |