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