aboutsummaryrefslogtreecommitdiff
path: root/src/experimentation
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
parent5c6533b2479a7ca8f1ab310c421ddb8ff474f98a (diff)
downloadgnunet-e49a562f2dd56775f3d826272fd463493baa2d23.tar.gz
gnunet-e49a562f2dd56775f3d826272fd463493baa2d23.zip
refactoring since names are too long
Diffstat (limited to 'src/experimentation')
-rw-r--r--src/experimentation/gnunet-daemon-experimentation.c20
-rw-r--r--src/experimentation/gnunet-daemon-experimentation.h62
-rw-r--r--src/experimentation/gnunet-daemon-experimentation_capabilities.c12
-rw-r--r--src/experimentation/gnunet-daemon-experimentation_experiments.c10
-rw-r--r--src/experimentation/gnunet-daemon-experimentation_nodes.c28
-rw-r--r--src/experimentation/gnunet-daemon-experimentation_scheduler.c41
-rw-r--r--src/experimentation/gnunet-daemon-experimentation_storage.c4
7 files changed, 112 insertions, 65 deletions
diff --git a/src/experimentation/gnunet-daemon-experimentation.c b/src/experimentation/gnunet-daemon-experimentation.c
index cd8806985..3a2b71c83 100644
--- a/src/experimentation/gnunet-daemon-experimentation.c
+++ b/src/experimentation/gnunet-daemon-experimentation.c
@@ -55,11 +55,11 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
55{ 55{
56 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Experimentation daemon shutting down ...\n")); 56 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Experimentation daemon shutting down ...\n"));
57 57
58 GNUNET_EXPERIMENTATION_scheduler_stop (); 58 GED_scheduler_stop ();
59 GNUNET_EXPERIMENTATION_nodes_stop (); 59 GED_nodes_stop ();
60 GNUNET_EXPERIMENTATION_experiments_stop (); 60 GED_experiments_stop ();
61 GNUNET_EXPERIMENTATION_storage_stop (); 61 GED_storage_stop ();
62 GNUNET_EXPERIMENTATION_capabilities_stop (); 62 GED_capabilities_stop ();
63} 63}
64 64
65 65
@@ -85,18 +85,18 @@ run (void *cls, char *const *args, const char *cfgfile,
85 return; 85 return;
86 } 86 }
87 87
88 GNUNET_EXPERIMENTATION_capabilities_start (); 88 GED_capabilities_start ();
89 89
90 GNUNET_EXPERIMENTATION_storage_start (); 90 GED_storage_start ();
91 91
92 if (GNUNET_SYSERR == GNUNET_EXPERIMENTATION_experiments_start ()) 92 if (GNUNET_SYSERR == GED_experiments_start ())
93 { 93 {
94 GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); 94 GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
95 return; 95 return;
96 } 96 }
97 97
98 GNUNET_EXPERIMENTATION_nodes_start (); 98 GED_nodes_start ();
99 GNUNET_EXPERIMENTATION_scheduler_start (); 99 GED_scheduler_start ();
100 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, 100 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task,
101 NULL); 101 NULL);
102} 102}
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 */
diff --git a/src/experimentation/gnunet-daemon-experimentation_capabilities.c b/src/experimentation/gnunet-daemon-experimentation_capabilities.c
index 6d8396b96..d2570d387 100644
--- a/src/experimentation/gnunet-daemon-experimentation_capabilities.c
+++ b/src/experimentation/gnunet-daemon-experimentation_capabilities.c
@@ -57,7 +57,7 @@ uint32_t GSE_node_capabilities;
57 * @return the string to print 57 * @return the string to print
58 */ 58 */
59const char * 59const char *
60GNUNET_EXPERIMENTATION_capability_to_str (uint32_t cap) 60GED_capability_to_str (uint32_t cap)
61{ 61{
62 char * capstr[] = GNUNET_EXPERIMENTATION_capabilities_string; 62 char * capstr[] = GNUNET_EXPERIMENTATION_capabilities_string;
63 unsigned index = 0; 63 unsigned index = 0;
@@ -89,7 +89,7 @@ GNUNET_EXPERIMENTATION_capability_to_str (uint32_t cap)
89 * @return GNUNET_YES or GNUNET_NO 89 * @return GNUNET_YES or GNUNET_NO
90 */ 90 */
91int 91int
92GNUNET_EXPERIMENTATION_capabilities_have (uint32_t have, uint32_t desired) 92GED_capabilities_have (uint32_t have, uint32_t desired)
93{ 93{
94 if (desired == (desired & have)) 94 if (desired == (desired & have))
95 return GNUNET_YES; 95 return GNUNET_YES;
@@ -102,7 +102,7 @@ GNUNET_EXPERIMENTATION_capabilities_have (uint32_t have, uint32_t desired)
102 * Start the detecting capabilities 102 * Start the detecting capabilities
103 */ 103 */
104void 104void
105GNUNET_EXPERIMENTATION_capabilities_start () 105GED_capabilities_start ()
106{ 106{
107 char *plugins; 107 char *plugins;
108 char *pos; 108 char *pos;
@@ -152,10 +152,10 @@ GNUNET_EXPERIMENTATION_capabilities_start ()
152 { 152 {
153 index = 1; 153 index = 1;
154 index = index << c1; 154 index = index << c1;
155 if (GNUNET_YES == GNUNET_EXPERIMENTATION_capabilities_have (GSE_node_capabilities, index)) 155 if (GNUNET_YES == GED_capabilities_have (GSE_node_capabilities, index))
156 { 156 {
157 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "We have `%s'\n", 157 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "We have `%s'\n",
158 GNUNET_EXPERIMENTATION_capability_to_str(index)); 158 GED_capability_to_str(index));
159 } 159 }
160 } 160 }
161} 161}
@@ -165,7 +165,7 @@ GNUNET_EXPERIMENTATION_capabilities_start ()
165 * Stop the detecting capabilities 165 * Stop the detecting capabilities
166 */ 166 */
167void 167void
168GNUNET_EXPERIMENTATION_capabilities_stop () 168GED_capabilities_stop ()
169{ 169{
170 170
171} 171}
diff --git a/src/experimentation/gnunet-daemon-experimentation_experiments.c b/src/experimentation/gnunet-daemon-experimentation_experiments.c
index bf8bc7df5..a39192c57 100644
--- a/src/experimentation/gnunet-daemon-experimentation_experiments.c
+++ b/src/experimentation/gnunet-daemon-experimentation_experiments.c
@@ -133,7 +133,7 @@ int create_issuer (void *cls,
133 * @return GNUNET_YES or GNUNET_NO 133 * @return GNUNET_YES or GNUNET_NO
134 */ 134 */
135int 135int
136GNUNET_EXPERIMENTATION_experiments_issuer_accepted (struct GNUNET_PeerIdentity *issuer_ID) 136GED_experiments_issuer_accepted (struct GNUNET_PeerIdentity *issuer_ID)
137{ 137{
138 if (GNUNET_CONTAINER_multihashmap_contains (valid_issuers, &issuer_ID->hashPubKey)) 138 if (GNUNET_CONTAINER_multihashmap_contains (valid_issuers, &issuer_ID->hashPubKey))
139 return GNUNET_YES; 139 return GNUNET_YES;
@@ -164,7 +164,7 @@ get_it (void *cls,
164 164
165 165
166void 166void
167GNUNET_EXPERIMENTATION_experiments_get (struct Node *n, 167GED_experiments_get (struct Node *n,
168 struct GNUNET_PeerIdentity *issuer, 168 struct GNUNET_PeerIdentity *issuer,
169 GNUNET_EXPERIMENTATION_experiments_get_cb get_cb) 169 GNUNET_EXPERIMENTATION_experiments_get_cb get_cb)
170{ 170{
@@ -355,7 +355,7 @@ load_file (const char * file)
355 * Start experiments management 355 * Start experiments management
356 */ 356 */
357int 357int
358GNUNET_EXPERIMENTATION_experiments_start () 358GED_experiments_start ()
359{ 359{
360 struct Issuer *i; 360 struct Issuer *i;
361 char *issuers; 361 char *issuers;
@@ -395,7 +395,7 @@ GNUNET_EXPERIMENTATION_experiments_start ()
395 if (0 == GNUNET_CONTAINER_multihashmap_size (valid_issuers)) 395 if (0 == GNUNET_CONTAINER_multihashmap_size (valid_issuers))
396 { 396 {
397 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("No valid experiment issuers configured! Set value to peer id of issuer! Exit...\n")); 397 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("No valid experiment issuers configured! Set value to peer id of issuer! Exit...\n"));
398 GNUNET_EXPERIMENTATION_experiments_stop (); 398 GED_experiments_stop ();
399 return GNUNET_SYSERR; 399 return GNUNET_SYSERR;
400 } 400 }
401 GNUNET_STATISTICS_set (GSE_stats, "# issuer", GNUNET_CONTAINER_multihashmap_size (valid_issuers), GNUNET_NO); 401 GNUNET_STATISTICS_set (GSE_stats, "# issuer", GNUNET_CONTAINER_multihashmap_size (valid_issuers), GNUNET_NO);
@@ -444,7 +444,7 @@ GNUNET_EXPERIMENTATION_experiments_start ()
444 * Stop experiments management 444 * Stop experiments management
445 */ 445 */
446void 446void
447GNUNET_EXPERIMENTATION_experiments_stop () 447GED_experiments_stop ()
448{ 448{
449 if (NULL != GSE_my_issuer) 449 if (NULL != GSE_my_issuer)
450 { 450 {
diff --git a/src/experimentation/gnunet-daemon-experimentation_nodes.c b/src/experimentation/gnunet-daemon-experimentation_nodes.c
index 0782e7ff1..f5e2faf4c 100644
--- a/src/experimentation/gnunet-daemon-experimentation_nodes.c
+++ b/src/experimentation/gnunet-daemon-experimentation_nodes.c
@@ -316,7 +316,7 @@ get_experiments_cb (struct Node *n, struct Experiment *e)
316 GNUNET_i2s (&n->id)); 316 GNUNET_i2s (&n->id));
317 317
318 /* Tell the scheduler to add a node with an experiment */ 318 /* Tell the scheduler to add a node with an experiment */
319 GNUNET_EXPERIMENTATION_scheduler_add (n, e); 319 GED_scheduler_add (n, e);
320 counter ++; 320 counter ++;
321} 321}
322 322
@@ -338,7 +338,7 @@ static void node_make_active (struct Node *n)
338 for (c1 = 0; c1 < n->issuer_count; c1++) 338 for (c1 = 0; c1 < n->issuer_count; c1++)
339 { 339 {
340 340
341 GNUNET_EXPERIMENTATION_experiments_get (n, &n->issuer_id[c1], &get_experiments_cb); 341 GED_experiments_get (n, &n->issuer_id[c1], &get_experiments_cb);
342 } 342 }
343} 343}
344 344
@@ -416,7 +416,7 @@ static void handle_request (const struct GNUNET_PeerIdentity *peer,
416 ic_accepted = 0; 416 ic_accepted = 0;
417 for (c1 = 0; c1 < ic; c1++) 417 for (c1 = 0; c1 < ic; c1++)
418 { 418 {
419 if (GNUNET_YES == GNUNET_EXPERIMENTATION_experiments_issuer_accepted(&rmi[c1].issuer_id)) 419 if (GNUNET_YES == GED_experiments_issuer_accepted(&rmi[c1].issuer_id))
420 ic_accepted ++; 420 ic_accepted ++;
421 } 421 }
422 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Request from peer `%s' with %u issuers, we accepted %u issuer \n"), 422 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Request from peer `%s' with %u issuers, we accepted %u issuer \n"),
@@ -426,7 +426,7 @@ static void handle_request (const struct GNUNET_PeerIdentity *peer,
426 c2 = 0; 426 c2 = 0;
427 for (c1 = 0; c1 < ic; c1++) 427 for (c1 = 0; c1 < ic; c1++)
428 { 428 {
429 if (GNUNET_YES == GNUNET_EXPERIMENTATION_experiments_issuer_accepted(&rmi[c1].issuer_id)) 429 if (GNUNET_YES == GED_experiments_issuer_accepted(&rmi[c1].issuer_id))
430 { 430 {
431 n->issuer_id[c2] = rmi[c1].issuer_id; 431 n->issuer_id[c2] = rmi[c1].issuer_id;
432 c2 ++; 432 c2 ++;
@@ -524,7 +524,7 @@ static void handle_response (const struct GNUNET_PeerIdentity *peer,
524 ic_accepted = 0; 524 ic_accepted = 0;
525 for (c1 = 0; c1 < ic; c1++) 525 for (c1 = 0; c1 < ic; c1++)
526 { 526 {
527 if (GNUNET_YES == GNUNET_EXPERIMENTATION_experiments_issuer_accepted(&rmi[c1].issuer_id)) 527 if (GNUNET_YES == GED_experiments_issuer_accepted(&rmi[c1].issuer_id))
528 ic_accepted ++; 528 ic_accepted ++;
529 } 529 }
530 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Response from peer `%s' with %u issuers, we accepted %u issuer \n"), 530 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Response from peer `%s' with %u issuers, we accepted %u issuer \n"),
@@ -534,7 +534,7 @@ static void handle_response (const struct GNUNET_PeerIdentity *peer,
534 c2 = 0; 534 c2 = 0;
535 for (c1 = 0; c1 < ic; c1++) 535 for (c1 = 0; c1 < ic; c1++)
536 { 536 {
537 if (GNUNET_YES == GNUNET_EXPERIMENTATION_experiments_issuer_accepted(&rmi[c1].issuer_id)) 537 if (GNUNET_YES == GED_experiments_issuer_accepted(&rmi[c1].issuer_id))
538 { 538 {
539 n->issuer_id[c2] = rmi[c1].issuer_id; 539 n->issuer_id[c2] = rmi[c1].issuer_id;
540 c2 ++; 540 c2 ++;
@@ -555,9 +555,7 @@ static void handle_response (const struct GNUNET_PeerIdentity *peer,
555static void handle_start (const struct GNUNET_PeerIdentity *peer, 555static void handle_start (const struct GNUNET_PeerIdentity *peer,
556 const struct GNUNET_MessageHeader *message) 556 const struct GNUNET_MessageHeader *message)
557{ 557{
558fprintf (stderr, "FIXME\n"); 558 GED_scheduler_handle_start (NULL, NULL);
559 GNUNET_STATISTICS_update (GSE_stats, "# experiments running",
560 1, GNUNET_NO);
561} 559}
562 560
563/** 561/**
@@ -569,7 +567,7 @@ fprintf (stderr, "FIXME\n");
569static void handle_start_ack (const struct GNUNET_PeerIdentity *peer, 567static void handle_start_ack (const struct GNUNET_PeerIdentity *peer,
570 const struct GNUNET_MessageHeader *message) 568 const struct GNUNET_MessageHeader *message)
571{ 569{
572 570 GED_scheduler_handle_start_ack (NULL, NULL);
573} 571}
574 572
575/** 573/**
@@ -581,7 +579,7 @@ static void handle_start_ack (const struct GNUNET_PeerIdentity *peer,
581static void handle_stop (const struct GNUNET_PeerIdentity *peer, 579static void handle_stop (const struct GNUNET_PeerIdentity *peer,
582 const struct GNUNET_MessageHeader *message) 580 const struct GNUNET_MessageHeader *message)
583{ 581{
584 582 GED_scheduler_handle_stop (NULL, NULL);
585} 583}
586 584
587/** 585/**
@@ -712,7 +710,7 @@ size_t node_experiment_start_cb (void *cls, size_t bufsize, void *buf)
712} 710}
713 711
714int 712int
715GNUNET_EXPERIMENTATION_nodes_rts (struct Node *n) 713GED_nodes_rts (struct Node *n)
716{ 714{
717 if (NULL == n->cth) 715 if (NULL == n->cth)
718 return GNUNET_YES; 716 return GNUNET_YES;
@@ -727,7 +725,7 @@ GNUNET_EXPERIMENTATION_nodes_rts (struct Node *n)
727 * @return GNUNET_NO if core was busy with sending, GNUNET_OK otherwise 725 * @return GNUNET_NO if core was busy with sending, GNUNET_OK otherwise
728 */ 726 */
729int 727int
730GNUNET_EXPERIMENTATION_nodes_request_start (struct Node *n, struct Experiment *e) 728GED_nodes_request_start (struct Node *n, struct Experiment *e)
731{ 729{
732 struct ExperimentStartCtx *e_ctx; 730 struct ExperimentStartCtx *e_ctx;
733 731
@@ -762,7 +760,7 @@ GNUNET_EXPERIMENTATION_nodes_request_start (struct Node *n, struct Experiment *e
762 * Start the nodes management 760 * Start the nodes management
763 */ 761 */
764void 762void
765GNUNET_EXPERIMENTATION_nodes_start () 763GED_nodes_start ()
766{ 764{
767 /* Connecting to core service to find partners */ 765 /* Connecting to core service to find partners */
768 ch = GNUNET_CORE_connect (GSE_cfg, NULL, 766 ch = GNUNET_CORE_connect (GSE_cfg, NULL,
@@ -787,7 +785,7 @@ GNUNET_EXPERIMENTATION_nodes_start ()
787 * Stop the nodes management 785 * Stop the nodes management
788 */ 786 */
789void 787void
790GNUNET_EXPERIMENTATION_nodes_stop () 788GED_nodes_stop ()
791{ 789{
792 if (NULL != ch) 790 if (NULL != ch)
793 { 791 {
diff --git a/src/experimentation/gnunet-daemon-experimentation_scheduler.c b/src/experimentation/gnunet-daemon-experimentation_scheduler.c
index eb438fa96..1a3a8cdbb 100644
--- a/src/experimentation/gnunet-daemon-experimentation_scheduler.c
+++ b/src/experimentation/gnunet-daemon-experimentation_scheduler.c
@@ -104,7 +104,7 @@ static void start_experiment (void *cls,const struct GNUNET_SCHEDULER_TaskContex
104 104
105 se->task = GNUNET_SCHEDULER_NO_TASK; 105 se->task = GNUNET_SCHEDULER_NO_TASK;
106 106
107 if (GNUNET_NO == GNUNET_EXPERIMENTATION_nodes_rts (se->n)) 107 if (GNUNET_NO == GED_nodes_rts (se->n))
108 { 108 {
109 se->state = BUSY; 109 se->state = BUSY;
110 backoff = GNUNET_TIME_UNIT_SECONDS; 110 backoff = GNUNET_TIME_UNIT_SECONDS;
@@ -120,7 +120,7 @@ static void start_experiment (void *cls,const struct GNUNET_SCHEDULER_TaskContex
120 if (NOT_RUNNING == se->state) 120 if (NOT_RUNNING == se->state)
121 { 121 {
122 /* Send start message */ 122 /* Send start message */
123 GNUNET_EXPERIMENTATION_nodes_request_start (se->n, se->e); 123 GED_nodes_request_start (se->n, se->e);
124 se->state = REQUESTED; 124 se->state = REQUESTED;
125 se->task = GNUNET_SCHEDULER_add_delayed (EXP_RESPONSE_TIMEOUT, &request_timeout, se); 125 se->task = GNUNET_SCHEDULER_add_delayed (EXP_RESPONSE_TIMEOUT, &request_timeout, se);
126 126
@@ -161,29 +161,50 @@ static void start_experiment (void *cls,const struct GNUNET_SCHEDULER_TaskContex
161} 161}
162 162
163/** 163/**
164 * Start the scheduler component 164 * Handle a START message from a remote node
165 *
166 * @param n the node
167 * @param e the experiment
168 */
169void
170GED_scheduler_handle_start (struct Node *n, struct Experiment *e)
171{
172
173}
174
175/**
176 * Handle a START_ACL message from a remote node
177 *
178 * @param n the node
179 * @param e the experiment
165 */ 180 */
166void 181void
167GNUNET_EXPERIMENTATION_scheduler_handle_start (struct Node *n, struct Experiment *e) 182GED_scheduler_handle_start_ack (struct Node *n, struct Experiment *e)
168{ 183{
169 184
170} 185}
171 186
172 187
173/** 188/**
174 * Start the scheduler component 189 * Handle a STOP message from a remote node
190 *
191 * @param n the node
192 * @param e the experiment
175 */ 193 */
176void 194void
177GNUNET_EXPERIMENTATION_scheduler_handle_stop (struct Node *n, struct Experiment *e) 195GED_scheduler_handle_stop (struct Node *n, struct Experiment *e)
178{ 196{
179 197
180} 198}
181 199
182/** 200/**
183 * Start the scheduler component 201 * Add a new experiment for a node
202 *
203 * @param n the node
204 * @param e the experiment
184 */ 205 */
185void 206void
186GNUNET_EXPERIMENTATION_scheduler_add (struct Node *n, struct Experiment *e) 207GED_scheduler_add (struct Node *n, struct Experiment *e)
187{ 208{
188 struct ScheduledExperiment *se; 209 struct ScheduledExperiment *se;
189 struct GNUNET_TIME_Relative start; 210 struct GNUNET_TIME_Relative start;
@@ -216,7 +237,7 @@ GNUNET_EXPERIMENTATION_scheduler_add (struct Node *n, struct Experiment *e)
216 * Start the scheduler component 237 * Start the scheduler component
217 */ 238 */
218void 239void
219GNUNET_EXPERIMENTATION_scheduler_start () 240GED_scheduler_start ()
220{ 241{
221 experiments_requested = 0; 242 experiments_requested = 0;
222 experiments_scheduled = 0; 243 experiments_scheduled = 0;
@@ -227,7 +248,7 @@ GNUNET_EXPERIMENTATION_scheduler_start ()
227 * Stop the scheduler component 248 * Stop the scheduler component
228 */ 249 */
229void 250void
230GNUNET_EXPERIMENTATION_scheduler_stop () 251GED_scheduler_stop ()
231{ 252{
232 struct ScheduledExperiment *cur; 253 struct ScheduledExperiment *cur;
233 struct ScheduledExperiment *next; 254 struct ScheduledExperiment *next;
diff --git a/src/experimentation/gnunet-daemon-experimentation_storage.c b/src/experimentation/gnunet-daemon-experimentation_storage.c
index 8382eaa6f..641915e66 100644
--- a/src/experimentation/gnunet-daemon-experimentation_storage.c
+++ b/src/experimentation/gnunet-daemon-experimentation_storage.c
@@ -36,7 +36,7 @@
36 * Start the storage component 36 * Start the storage component
37 */ 37 */
38void 38void
39GNUNET_EXPERIMENTATION_storage_start () 39GED_storage_start ()
40{ 40{
41 41
42} 42}
@@ -46,7 +46,7 @@ GNUNET_EXPERIMENTATION_storage_start ()
46 * Stop the storage component 46 * Stop the storage component
47 */ 47 */
48void 48void
49GNUNET_EXPERIMENTATION_storage_stop () 49GED_storage_stop ()
50{ 50{
51 51
52} 52}