aboutsummaryrefslogtreecommitdiff
path: root/src/experimentation/gnunet-daemon-experimentation.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-08-01 08:50:53 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-08-01 08:50:53 +0000
commite49a562f2dd56775f3d826272fd463493baa2d23 (patch)
treef0ea0ece1446714c4e5701dac14691918052e750 /src/experimentation/gnunet-daemon-experimentation.h
parent5c6533b2479a7ca8f1ab310c421ddb8ff474f98a (diff)
downloadgnunet-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.h62
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
211int 211int
212GNUNET_EXPERIMENTATION_nodes_rts (struct Node *n); 212GED_nodes_rts (struct Node *n);
213 213
214int 214int
215GNUNET_EXPERIMENTATION_nodes_request_start (struct Node *n, struct Experiment *e); 215GED_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 */
221void 221void
222GNUNET_EXPERIMENTATION_nodes_start (); 222GED_nodes_start ();
223 223
224 224
225/** 225/**
226 * Stop the nodes management 226 * Stop the nodes management
227 */ 227 */
228void 228void
229GNUNET_EXPERIMENTATION_nodes_stop (); 229GED_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 */
238const char * 238const char *
239GNUNET_EXPERIMENTATION_capability_to_str (uint32_t cap); 239GED_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 */
249int 249int
250GNUNET_EXPERIMENTATION_capabilities_have (uint32_t have, uint32_t desired); 250GED_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 */
256void 256void
257GNUNET_EXPERIMENTATION_capabilities_start (); 257GED_capabilities_start ();
258 258
259 259
260/** 260/**
261 * Stop the detecting capabilities 261 * Stop the detecting capabilities
262 */ 262 */
263void 263void
264GNUNET_EXPERIMENTATION_capabilities_stop (); 264GED_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 */
272int 272int
273GNUNET_EXPERIMENTATION_experiments_issuer_accepted (struct GNUNET_PeerIdentity *issuer_ID); 273GED_experiments_issuer_accepted (struct GNUNET_PeerIdentity *issuer_ID);
274 274
275 275
276typedef void (*GNUNET_EXPERIMENTATION_experiments_get_cb) (struct Node *n, struct Experiment *e); 276typedef void (*GNUNET_EXPERIMENTATION_experiments_get_cb) (struct Node *n, struct Experiment *e);
277 277
278void 278void
279GNUNET_EXPERIMENTATION_experiments_get (struct Node *n, 279GED_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 */
288int 288int
289GNUNET_EXPERIMENTATION_experiments_start (); 289GED_experiments_start ();
290 290
291 291
292/** 292/**
293 * Stop experiments management 293 * Stop experiments management
294 */ 294 */
295void 295void
296GNUNET_EXPERIMENTATION_experiments_stop (); 296GED_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 */
304void
305GED_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 */
314void
315GED_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 */
323void
324GED_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 */
302void 330void
303GNUNET_EXPERIMENTATION_scheduler_add (struct Node *n, struct Experiment *e); 331GED_scheduler_add (struct Node *n, struct Experiment *e);
304 332
305/** 333/**
306 * Start the scheduler component 334 * Start the scheduler component
307 */ 335 */
308void 336void
309GNUNET_EXPERIMENTATION_scheduler_start (); 337GED_scheduler_start ();
310 338
311 339
312/** 340/**
313 * Stop the scheduler component 341 * Stop the scheduler component
314 */ 342 */
315void 343void
316GNUNET_EXPERIMENTATION_scheduler_stop (); 344GED_scheduler_stop ();
317 345
318 346
319/** 347/**
320 * Start the storage component 348 * Start the storage component
321 */ 349 */
322void 350void
323GNUNET_EXPERIMENTATION_storage_start (); 351GED_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 */
330void 358void
331GNUNET_EXPERIMENTATION_storage_stop (); 359GED_storage_stop ();
332 360
333 361
334/* end of gnunet-daemon-experimentation.h */ 362/* end of gnunet-daemon-experimentation.h */