Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add MSG_process_join [#13601]
[simgrid.git] / src / simix / simcalls_generated_res_getter_setter.h
1 /*********************************************
2  * File Generated by src/simix/simcalls.py   *
3  *                from src/simix/simcalls.in *
4  * Do not modify this file, add new simcalls *
5  * in src/simix/simcalls.in                  *
6  *********************************************/
7
8 static inline smx_host_t simcall_host_get_by_name__get__result(smx_simcall_t simcall){
9   return (smx_host_t) simcall->result.dp;
10 }
11 static inline void simcall_host_get_by_name__set__result(smx_simcall_t simcall, void* result){
12     simcall->result.dp = result;
13 }
14 static inline const char* simcall_host_get_name__get__result(smx_simcall_t simcall){
15   return  simcall->result.cc;
16 }
17 static inline void simcall_host_get_name__set__result(smx_simcall_t simcall, const char* result){
18     simcall->result.cc = result;
19 }
20
21
22
23
24 static inline xbt_dict_t simcall_host_get_properties__get__result(smx_simcall_t simcall){
25   return (xbt_dict_t) simcall->result.dp;
26 }
27 static inline void simcall_host_get_properties__set__result(smx_simcall_t simcall, void* result){
28     simcall->result.dp = result;
29 }
30 static inline int simcall_host_get_core__get__result(smx_simcall_t simcall){
31   return  simcall->result.i;
32 }
33 static inline void simcall_host_get_core__set__result(smx_simcall_t simcall, int result){
34     simcall->result.i = result;
35 }
36 static inline xbt_swag_t simcall_host_get_process_list__get__result(smx_simcall_t simcall){
37   return (xbt_swag_t) simcall->result.dp;
38 }
39 static inline void simcall_host_get_process_list__set__result(smx_simcall_t simcall, void* result){
40     simcall->result.dp = result;
41 }
42 static inline double simcall_host_get_speed__get__result(smx_simcall_t simcall){
43   return  simcall->result.d;
44 }
45 static inline void simcall_host_get_speed__set__result(smx_simcall_t simcall, double result){
46     simcall->result.d = result;
47 }
48 static inline double simcall_host_get_available_speed__get__result(smx_simcall_t simcall){
49   return  simcall->result.d;
50 }
51 static inline void simcall_host_get_available_speed__set__result(smx_simcall_t simcall, double result){
52     simcall->result.d = result;
53 }
54 static inline int simcall_host_get_state__get__result(smx_simcall_t simcall){
55   return  simcall->result.i;
56 }
57 static inline void simcall_host_get_state__set__result(smx_simcall_t simcall, int result){
58     simcall->result.i = result;
59 }
60 static inline double simcall_host_get_current_power_peak__get__result(smx_simcall_t simcall){
61   return  simcall->result.d;
62 }
63 static inline void simcall_host_get_current_power_peak__set__result(smx_simcall_t simcall, double result){
64     simcall->result.d = result;
65 }
66 static inline double simcall_host_get_power_peak_at__get__result(smx_simcall_t simcall){
67   return  simcall->result.d;
68 }
69 static inline void simcall_host_get_power_peak_at__set__result(smx_simcall_t simcall, double result){
70     simcall->result.d = result;
71 }
72 static inline int simcall_host_get_nb_pstates__get__result(smx_simcall_t simcall){
73   return  simcall->result.i;
74 }
75 static inline void simcall_host_get_nb_pstates__set__result(smx_simcall_t simcall, int result){
76     simcall->result.i = result;
77 }
78
79
80 static inline double simcall_host_get_consumed_energy__get__result(smx_simcall_t simcall){
81   return  simcall->result.d;
82 }
83 static inline void simcall_host_get_consumed_energy__set__result(smx_simcall_t simcall, double result){
84     simcall->result.d = result;
85 }
86 static inline smx_action_t simcall_host_execute__get__result(smx_simcall_t simcall){
87   return (smx_action_t) simcall->result.dp;
88 }
89 static inline void simcall_host_execute__set__result(smx_simcall_t simcall, void* result){
90     simcall->result.dp = result;
91 }
92 static inline smx_action_t simcall_host_parallel_execute__get__result(smx_simcall_t simcall){
93   return (smx_action_t) simcall->result.dp;
94 }
95 static inline void simcall_host_parallel_execute__set__result(smx_simcall_t simcall, void* result){
96     simcall->result.dp = result;
97 }
98
99
100
101
102 static inline double simcall_host_execution_get_remains__get__result(smx_simcall_t simcall){
103   return  simcall->result.d;
104 }
105 static inline void simcall_host_execution_get_remains__set__result(smx_simcall_t simcall, double result){
106     simcall->result.d = result;
107 }
108 static inline int simcall_host_execution_get_state__get__result(smx_simcall_t simcall){
109   return  simcall->result.i;
110 }
111 static inline void simcall_host_execution_get_state__set__result(smx_simcall_t simcall, int result){
112     simcall->result.i = result;
113 }
114
115
116
117
118
119
120 static inline int simcall_host_execution_wait__get__result(smx_simcall_t simcall){
121   return  simcall->result.i;
122 }
123 static inline void simcall_host_execution_wait__set__result(smx_simcall_t simcall, int result){
124     simcall->result.i = result;
125 }
126 static inline xbt_dict_t simcall_host_get_mounted_storage_list__get__result(smx_simcall_t simcall){
127   return (xbt_dict_t) simcall->result.dp;
128 }
129 static inline void simcall_host_get_mounted_storage_list__set__result(smx_simcall_t simcall, void* result){
130     simcall->result.dp = result;
131 }
132 static inline xbt_dynar_t simcall_host_get_attached_storage_list__get__result(smx_simcall_t simcall){
133   return (xbt_dynar_t) simcall->result.dp;
134 }
135 static inline void simcall_host_get_attached_storage_list__set__result(smx_simcall_t simcall, void* result){
136     simcall->result.dp = result;
137 }
138
139
140
141
142 static inline void* simcall_vm_create__get__result(smx_simcall_t simcall){
143   return  simcall->result.dp;
144 }
145 static inline void simcall_vm_create__set__result(smx_simcall_t simcall, void* result){
146     simcall->result.dp = result;
147 }
148
149
150 static inline int simcall_vm_get_state__get__result(smx_simcall_t simcall){
151   return  simcall->result.i;
152 }
153 static inline void simcall_vm_get_state__set__result(smx_simcall_t simcall, int result){
154     simcall->result.i = result;
155 }
156
157
158 static inline void* simcall_vm_get_pm__get__result(smx_simcall_t simcall){
159   return  simcall->result.dp;
160 }
161 static inline void simcall_vm_get_pm__set__result(smx_simcall_t simcall, void* result){
162     simcall->result.dp = result;
163 }
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194 static inline int simcall_process_count__get__result(smx_simcall_t simcall){
195   return  simcall->result.i;
196 }
197 static inline void simcall_process_count__set__result(smx_simcall_t simcall, int result){
198     simcall->result.i = result;
199 }
200 static inline int simcall_process_get_PID__get__result(smx_simcall_t simcall){
201   return  simcall->result.i;
202 }
203 static inline void simcall_process_get_PID__set__result(smx_simcall_t simcall, int result){
204     simcall->result.i = result;
205 }
206 static inline int simcall_process_get_PPID__get__result(smx_simcall_t simcall){
207   return  simcall->result.i;
208 }
209 static inline void simcall_process_get_PPID__set__result(smx_simcall_t simcall, int result){
210     simcall->result.i = result;
211 }
212 static inline void* simcall_process_get_data__get__result(smx_simcall_t simcall){
213   return  simcall->result.dp;
214 }
215 static inline void simcall_process_get_data__set__result(smx_simcall_t simcall, void* result){
216     simcall->result.dp = result;
217 }
218
219
220 static inline smx_host_t simcall_process_get_host__get__result(smx_simcall_t simcall){
221   return (smx_host_t) simcall->result.dp;
222 }
223 static inline void simcall_process_get_host__set__result(smx_simcall_t simcall, void* result){
224     simcall->result.dp = result;
225 }
226 static inline const char* simcall_process_get_name__get__result(smx_simcall_t simcall){
227   return  simcall->result.cc;
228 }
229 static inline void simcall_process_get_name__set__result(smx_simcall_t simcall, const char* result){
230     simcall->result.cc = result;
231 }
232 static inline int simcall_process_is_suspended__get__result(smx_simcall_t simcall){
233   return  simcall->result.i;
234 }
235 static inline void simcall_process_is_suspended__set__result(smx_simcall_t simcall, int result){
236     simcall->result.i = result;
237 }
238 static inline xbt_dict_t simcall_process_get_properties__get__result(smx_simcall_t simcall){
239   return (xbt_dict_t) simcall->result.dp;
240 }
241 static inline void simcall_process_get_properties__set__result(smx_simcall_t simcall, void* result){
242     simcall->result.dp = result;
243 }
244 static inline int simcall_process_join__get__result(smx_simcall_t simcall){
245   return  simcall->result.i;
246 }
247 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
248     simcall->result.i = result;
249 }
250 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall){
251   return  simcall->result.i;
252 }
253 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
254     simcall->result.i = result;
255 }
256
257
258
259
260 static inline smx_process_t simcall_process_restart__get__result(smx_simcall_t simcall){
261   return (smx_process_t) simcall->result.dp;
262 }
263 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, void* result){
264     simcall->result.dp = result;
265 }
266 static inline smx_rdv_t simcall_rdv_create__get__result(smx_simcall_t simcall){
267   return (smx_rdv_t) simcall->result.dp;
268 }
269 static inline void simcall_rdv_create__set__result(smx_simcall_t simcall, void* result){
270     simcall->result.dp = result;
271 }
272
273
274 static inline unsigned int simcall_rdv_comm_count_by_host__get__result(smx_simcall_t simcall){
275   return  simcall->result.ui;
276 }
277 static inline void simcall_rdv_comm_count_by_host__set__result(smx_simcall_t simcall, unsigned int result){
278     simcall->result.ui = result;
279 }
280 static inline smx_action_t simcall_rdv_get_head__get__result(smx_simcall_t simcall){
281   return (smx_action_t) simcall->result.dp;
282 }
283 static inline void simcall_rdv_get_head__set__result(smx_simcall_t simcall, void* result){
284     simcall->result.dp = result;
285 }
286
287
288 static inline smx_process_t simcall_rdv_get_receiver__get__result(smx_simcall_t simcall){
289   return (smx_process_t) simcall->result.dp;
290 }
291 static inline void simcall_rdv_get_receiver__set__result(smx_simcall_t simcall, void* result){
292     simcall->result.dp = result;
293 }
294 static inline smx_action_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
295   return (smx_action_t) simcall->result.dp;
296 }
297 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, void* result){
298     simcall->result.dp = result;
299 }
300
301
302 static inline smx_action_t simcall_comm_isend__get__result(smx_simcall_t simcall){
303   return (smx_action_t) simcall->result.dp;
304 }
305 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, void* result){
306     simcall->result.dp = result;
307 }
308
309
310 static inline smx_action_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
311   return (smx_action_t) simcall->result.dp;
312 }
313 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, void* result){
314     simcall->result.dp = result;
315 }
316
317
318 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
319   return  simcall->result.i;
320 }
321 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
322     simcall->result.i = result;
323 }
324
325
326 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
327   return  simcall->result.i;
328 }
329 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
330     simcall->result.i = result;
331 }
332 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
333   return  simcall->result.i;
334 }
335 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
336     simcall->result.i = result;
337 }
338 static inline double simcall_comm_get_remains__get__result(smx_simcall_t simcall){
339   return  simcall->result.d;
340 }
341 static inline void simcall_comm_get_remains__set__result(smx_simcall_t simcall, double result){
342     simcall->result.d = result;
343 }
344 static inline int simcall_comm_get_state__get__result(smx_simcall_t simcall){
345   return  simcall->result.i;
346 }
347 static inline void simcall_comm_get_state__set__result(smx_simcall_t simcall, int result){
348     simcall->result.i = result;
349 }
350 static inline void* simcall_comm_get_src_data__get__result(smx_simcall_t simcall){
351   return  simcall->result.dp;
352 }
353 static inline void simcall_comm_get_src_data__set__result(smx_simcall_t simcall, void* result){
354     simcall->result.dp = result;
355 }
356 static inline void* simcall_comm_get_dst_data__get__result(smx_simcall_t simcall){
357   return  simcall->result.dp;
358 }
359 static inline void simcall_comm_get_dst_data__set__result(smx_simcall_t simcall, void* result){
360     simcall->result.dp = result;
361 }
362 static inline smx_process_t simcall_comm_get_src_proc__get__result(smx_simcall_t simcall){
363   return (smx_process_t) simcall->result.dp;
364 }
365 static inline void simcall_comm_get_src_proc__set__result(smx_simcall_t simcall, void* result){
366     simcall->result.dp = result;
367 }
368 static inline smx_process_t simcall_comm_get_dst_proc__get__result(smx_simcall_t simcall){
369   return (smx_process_t) simcall->result.dp;
370 }
371 static inline void simcall_comm_get_dst_proc__set__result(smx_simcall_t simcall, void* result){
372     simcall->result.dp = result;
373 }
374 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
375   return (smx_mutex_t) simcall->result.dp;
376 }
377 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, void* result){
378     simcall->result.dp = result;
379 }
380
381
382
383
384 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
385   return  simcall->result.i;
386 }
387 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
388     simcall->result.i = result;
389 }
390
391
392 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
393   return (smx_cond_t) simcall->result.dp;
394 }
395 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, void* result){
396     simcall->result.dp = result;
397 }
398
399
400
401
402
403
404
405
406
407
408 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
409   return (smx_sem_t) simcall->result.dp;
410 }
411 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, void* result){
412     simcall->result.dp = result;
413 }
414
415
416
417
418 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
419   return  simcall->result.i;
420 }
421 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
422     simcall->result.i = result;
423 }
424
425
426
427
428 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
429   return  simcall->result.i;
430 }
431 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
432     simcall->result.i = result;
433 }
434 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
435   return  simcall->result.sgsz;
436 }
437 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
438     simcall->result.sgsz = result;
439 }
440 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
441   return  simcall->result.sgsz;
442 }
443 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
444     simcall->result.sgsz = result;
445 }
446 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
447   return (smx_file_t) simcall->result.dp;
448 }
449 static inline void simcall_file_open__set__result(smx_simcall_t simcall, void* result){
450     simcall->result.dp = result;
451 }
452 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
453   return  simcall->result.i;
454 }
455 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
456     simcall->result.i = result;
457 }
458 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
459   return  simcall->result.i;
460 }
461 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
462     simcall->result.i = result;
463 }
464 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
465   return  simcall->result.sgsz;
466 }
467 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
468     simcall->result.sgsz = result;
469 }
470 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
471   return  simcall->result.sgsz;
472 }
473 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
474     simcall->result.sgsz = result;
475 }
476 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
477   return  simcall->result.i;
478 }
479 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
480     simcall->result.i = result;
481 }
482 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
483   return (xbt_dynar_t) simcall->result.dp;
484 }
485 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, void* result){
486     simcall->result.dp = result;
487 }
488 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
489   return  simcall->result.i;
490 }
491 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
492     simcall->result.i = result;
493 }
494 static inline sg_size_t simcall_storage_get_free_size__get__result(smx_simcall_t simcall){
495   return  simcall->result.sgsz;
496 }
497 static inline void simcall_storage_get_free_size__set__result(smx_simcall_t simcall, sg_size_t result){
498     simcall->result.sgsz = result;
499 }
500 static inline sg_size_t simcall_storage_get_used_size__get__result(smx_simcall_t simcall){
501   return  simcall->result.sgsz;
502 }
503 static inline void simcall_storage_get_used_size__set__result(smx_simcall_t simcall, sg_size_t result){
504     simcall->result.sgsz = result;
505 }
506 static inline xbt_dict_t simcall_storage_get_properties__get__result(smx_simcall_t simcall){
507   return (xbt_dict_t) simcall->result.dp;
508 }
509 static inline void simcall_storage_get_properties__set__result(smx_simcall_t simcall, void* result){
510     simcall->result.dp = result;
511 }
512 static inline xbt_dict_t simcall_storage_get_content__get__result(smx_simcall_t simcall){
513   return (xbt_dict_t) simcall->result.dp;
514 }
515 static inline void simcall_storage_get_content__set__result(smx_simcall_t simcall, void* result){
516     simcall->result.dp = result;
517 }
518 static inline xbt_dict_t simcall_asr_get_properties__get__result(smx_simcall_t simcall){
519   return (xbt_dict_t) simcall->result.dp;
520 }
521 static inline void simcall_asr_get_properties__set__result(smx_simcall_t simcall, void* result){
522     simcall->result.dp = result;
523 }
524 #ifdef HAVE_LATENCY_BOUND_TRACKING
525 static inline int simcall_comm_is_latency_bounded__get__result(smx_simcall_t simcall){
526   return  simcall->result.i;
527 }
528 static inline void simcall_comm_is_latency_bounded__set__result(smx_simcall_t simcall, int result){
529     simcall->result.i = result;
530 }
531 #endif
532
533 #ifdef HAVE_TRACING
534
535
536 #endif
537
538 #ifdef HAVE_MC
539 static inline void* simcall_mc_snapshot__get__result(smx_simcall_t simcall){
540   return  simcall->result.dp;
541 }
542 static inline void simcall_mc_snapshot__set__result(smx_simcall_t simcall, void* result){
543     simcall->result.dp = result;
544 }
545 static inline int simcall_mc_compare_snapshots__get__result(smx_simcall_t simcall){
546   return  simcall->result.i;
547 }
548 static inline void simcall_mc_compare_snapshots__set__result(smx_simcall_t simcall, int result){
549     simcall->result.i = result;
550 }
551 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
552   return  simcall->result.i;
553 }
554 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
555     simcall->result.i = result;
556 }
557 #endif