diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-01 08:50:53 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-01 08:50:53 +0000 |
commit | e49a562f2dd56775f3d826272fd463493baa2d23 (patch) | |
tree | f0ea0ece1446714c4e5701dac14691918052e750 /src/experimentation/gnunet-daemon-experimentation.h | |
parent | 5c6533b2479a7ca8f1ab310c421ddb8ff474f98a (diff) | |
download | gnunet-e49a562f2dd56775f3d826272fd463493baa2d23.tar.gz gnunet-e49a562f2dd56775f3d826272fd463493baa2d23.zip |
refactoring since names are too long
Diffstat (limited to 'src/experimentation/gnunet-daemon-experimentation.h')
-rw-r--r-- | src/experimentation/gnunet-daemon-experimentation.h | 62 |
1 files changed, 45 insertions, 17 deletions
diff --git a/src/experimentation/gnunet-daemon-experimentation.h b/src/experimentation/gnunet-daemon-experimentation.h index 649017c7f..9d2c62975 100644 --- a/src/experimentation/gnunet-daemon-experimentation.h +++ b/src/experimentation/gnunet-daemon-experimentation.h | |||
@@ -209,24 +209,24 @@ struct Experimentation_Response | |||
209 | }; | 209 | }; |
210 | 210 | ||
211 | int | 211 | int |
212 | GNUNET_EXPERIMENTATION_nodes_rts (struct Node *n); | 212 | GED_nodes_rts (struct Node *n); |
213 | 213 | ||
214 | int | 214 | int |
215 | GNUNET_EXPERIMENTATION_nodes_request_start (struct Node *n, struct Experiment *e); | 215 | GED_nodes_request_start (struct Node *n, struct Experiment *e); |
216 | 216 | ||
217 | 217 | ||
218 | /** | 218 | /** |
219 | * Start the nodes management | 219 | * Start the nodes management |
220 | */ | 220 | */ |
221 | void | 221 | void |
222 | GNUNET_EXPERIMENTATION_nodes_start (); | 222 | GED_nodes_start (); |
223 | 223 | ||
224 | 224 | ||
225 | /** | 225 | /** |
226 | * Stop the nodes management | 226 | * Stop the nodes management |
227 | */ | 227 | */ |
228 | void | 228 | void |
229 | GNUNET_EXPERIMENTATION_nodes_stop (); | 229 | GED_nodes_stop (); |
230 | 230 | ||
231 | 231 | ||
232 | /** | 232 | /** |
@@ -236,7 +236,7 @@ GNUNET_EXPERIMENTATION_nodes_stop (); | |||
236 | * @return the string to print | 236 | * @return the string to print |
237 | */ | 237 | */ |
238 | const char * | 238 | const char * |
239 | GNUNET_EXPERIMENTATION_capability_to_str (uint32_t cap); | 239 | GED_capability_to_str (uint32_t cap); |
240 | 240 | ||
241 | 241 | ||
242 | /** | 242 | /** |
@@ -247,21 +247,21 @@ GNUNET_EXPERIMENTATION_capability_to_str (uint32_t cap); | |||
247 | * @return GNUNET_YES or GNUNET_NO | 247 | * @return GNUNET_YES or GNUNET_NO |
248 | */ | 248 | */ |
249 | int | 249 | int |
250 | GNUNET_EXPERIMENTATION_capabilities_have (uint32_t have, uint32_t desired); | 250 | GED_capabilities_have (uint32_t have, uint32_t desired); |
251 | 251 | ||
252 | 252 | ||
253 | /** | 253 | /** |
254 | * Start the detecting capabilities | 254 | * Start the detecting capabilities |
255 | */ | 255 | */ |
256 | void | 256 | void |
257 | GNUNET_EXPERIMENTATION_capabilities_start (); | 257 | GED_capabilities_start (); |
258 | 258 | ||
259 | 259 | ||
260 | /** | 260 | /** |
261 | * Stop the detecting capabilities | 261 | * Stop the detecting capabilities |
262 | */ | 262 | */ |
263 | void | 263 | void |
264 | GNUNET_EXPERIMENTATION_capabilities_stop (); | 264 | GED_capabilities_stop (); |
265 | 265 | ||
266 | 266 | ||
267 | /** | 267 | /** |
@@ -270,13 +270,13 @@ GNUNET_EXPERIMENTATION_capabilities_stop (); | |||
270 | * @return GNUNET_YES or GNUNET_NO | 270 | * @return GNUNET_YES or GNUNET_NO |
271 | */ | 271 | */ |
272 | int | 272 | int |
273 | GNUNET_EXPERIMENTATION_experiments_issuer_accepted (struct GNUNET_PeerIdentity *issuer_ID); | 273 | GED_experiments_issuer_accepted (struct GNUNET_PeerIdentity *issuer_ID); |
274 | 274 | ||
275 | 275 | ||
276 | typedef void (*GNUNET_EXPERIMENTATION_experiments_get_cb) (struct Node *n, struct Experiment *e); | 276 | typedef void (*GNUNET_EXPERIMENTATION_experiments_get_cb) (struct Node *n, struct Experiment *e); |
277 | 277 | ||
278 | void | 278 | void |
279 | GNUNET_EXPERIMENTATION_experiments_get (struct Node *n, | 279 | GED_experiments_get (struct Node *n, |
280 | struct GNUNET_PeerIdentity *issuer, | 280 | struct GNUNET_PeerIdentity *issuer, |
281 | GNUNET_EXPERIMENTATION_experiments_get_cb get_cb); | 281 | GNUNET_EXPERIMENTATION_experiments_get_cb get_cb); |
282 | 282 | ||
@@ -286,41 +286,69 @@ GNUNET_EXPERIMENTATION_experiments_get (struct Node *n, | |||
286 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 286 | * @return GNUNET_OK on success, GNUNET_SYSERR on error |
287 | */ | 287 | */ |
288 | int | 288 | int |
289 | GNUNET_EXPERIMENTATION_experiments_start (); | 289 | GED_experiments_start (); |
290 | 290 | ||
291 | 291 | ||
292 | /** | 292 | /** |
293 | * Stop experiments management | 293 | * Stop experiments management |
294 | */ | 294 | */ |
295 | void | 295 | void |
296 | GNUNET_EXPERIMENTATION_experiments_stop (); | 296 | GED_experiments_stop (); |
297 | |||
298 | /** | ||
299 | * Handle a START message from a remote node | ||
300 | * | ||
301 | * @param n the node | ||
302 | * @param e the experiment | ||
303 | */ | ||
304 | void | ||
305 | GED_scheduler_handle_start (struct Node *n, struct Experiment *e); | ||
306 | |||
307 | |||
308 | /** | ||
309 | * Handle a START_ACL message from a remote node | ||
310 | * | ||
311 | * @param n the node | ||
312 | * @param e the experiment | ||
313 | */ | ||
314 | void | ||
315 | GED_scheduler_handle_start_ack (struct Node *n, struct Experiment *e); | ||
316 | |||
317 | /** | ||
318 | * Handle a STOP message from a remote node | ||
319 | * | ||
320 | * @param n the node | ||
321 | * @param e the experiment | ||
322 | */ | ||
323 | void | ||
324 | GED_scheduler_handle_stop (struct Node *n, struct Experiment *e); | ||
297 | 325 | ||
298 | 326 | ||
299 | /** | 327 | /** |
300 | * Start the scheduler component | 328 | * Start the scheduler component |
301 | */ | 329 | */ |
302 | void | 330 | void |
303 | GNUNET_EXPERIMENTATION_scheduler_add (struct Node *n, struct Experiment *e); | 331 | GED_scheduler_add (struct Node *n, struct Experiment *e); |
304 | 332 | ||
305 | /** | 333 | /** |
306 | * Start the scheduler component | 334 | * Start the scheduler component |
307 | */ | 335 | */ |
308 | void | 336 | void |
309 | GNUNET_EXPERIMENTATION_scheduler_start (); | 337 | GED_scheduler_start (); |
310 | 338 | ||
311 | 339 | ||
312 | /** | 340 | /** |
313 | * Stop the scheduler component | 341 | * Stop the scheduler component |
314 | */ | 342 | */ |
315 | void | 343 | void |
316 | GNUNET_EXPERIMENTATION_scheduler_stop (); | 344 | GED_scheduler_stop (); |
317 | 345 | ||
318 | 346 | ||
319 | /** | 347 | /** |
320 | * Start the storage component | 348 | * Start the storage component |
321 | */ | 349 | */ |
322 | void | 350 | void |
323 | GNUNET_EXPERIMENTATION_storage_start (); | 351 | GED_storage_start (); |
324 | 352 | ||
325 | 353 | ||
326 | 354 | ||
@@ -328,7 +356,7 @@ GNUNET_EXPERIMENTATION_storage_start (); | |||
328 | * Stop the storage component | 356 | * Stop the storage component |
329 | */ | 357 | */ |
330 | void | 358 | void |
331 | GNUNET_EXPERIMENTATION_storage_stop (); | 359 | GED_storage_stop (); |
332 | 360 | ||
333 | 361 | ||
334 | /* end of gnunet-daemon-experimentation.h */ | 362 | /* end of gnunet-daemon-experimentation.h */ |