Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'clean_events' of github.com:Takishipp/simgrid into clean_events
[simgrid.git] / src / simix / popping_accessors.h
1 /**********************************************************************/
2 /* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
3 /*                                                                    */
4 /*                    DO NOT EVER CHANGE THIS FILE                    */
5 /*                                                                    */
6 /* change simcalls specification in src/simix/simcalls.in             */
7 /* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved.    */
8 /**********************************************************************/
9
10 /*
11  * Note that the name comes from http://en.wikipedia.org/wiki/Popping
12  * Indeed, the control flow is doing a strange dance in there.
13  *
14  * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
15  */
16
17 #include "src/simix/popping_private.h"
18 static inline smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall) {
19   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
20 }
21 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_actor_t arg) {
22     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
23 }
24
25 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall) {
26   return simgrid::simix::unmarshal<int>(simcall->args[0]);
27 }
28 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg) {
29     simgrid::simix::marshal<int>(simcall->args[0], arg);
30 }
31
32 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall) {
33   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
34 }
35 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg) {
36     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
37 }
38
39 static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall) {
40   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
41 }
42 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_actor_t arg) {
43     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
44 }
45
46 static inline smx_actor_t simcall_process_resume__get__process(smx_simcall_t simcall) {
47   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
48 }
49 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_actor_t arg) {
50     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
51 }
52
53 static inline smx_actor_t simcall_process_set_host__get__process(smx_simcall_t simcall) {
54   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
55 }
56 static inline void simcall_process_set_host__set__process(smx_simcall_t simcall, smx_actor_t arg) {
57     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
58 }
59 static inline sg_host_t simcall_process_set_host__get__dest(smx_simcall_t simcall) {
60   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
61 }
62 static inline void simcall_process_set_host__set__dest(smx_simcall_t simcall, sg_host_t arg) {
63     simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
64 }
65
66 static inline smx_actor_t simcall_process_is_suspended__get__process(smx_simcall_t simcall) {
67   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
68 }
69 static inline void simcall_process_is_suspended__set__process(smx_simcall_t simcall, smx_actor_t arg) {
70     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
71 }
72 static inline int simcall_process_is_suspended__get__result(smx_simcall_t simcall){
73     return simgrid::simix::unmarshal<int>(simcall->result);
74 }
75 static inline void simcall_process_is_suspended__set__result(smx_simcall_t simcall, int result){
76     simgrid::simix::marshal<int>(simcall->result, result);
77 }
78
79 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall) {
80   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
81 }
82 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg) {
83     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
84 }
85 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall) {
86   return simgrid::simix::unmarshal<double>(simcall->args[1]);
87 }
88 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg) {
89     simgrid::simix::marshal<double>(simcall->args[1], arg);
90 }
91 static inline int simcall_process_join__get__result(smx_simcall_t simcall){
92     return simgrid::simix::unmarshal<int>(simcall->result);
93 }
94 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
95     simgrid::simix::marshal<int>(simcall->result, result);
96 }
97
98 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall) {
99   return simgrid::simix::unmarshal<double>(simcall->args[0]);
100 }
101 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg) {
102     simgrid::simix::marshal<double>(simcall->args[0], arg);
103 }
104 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall){
105     return simgrid::simix::unmarshal<int>(simcall->result);
106 }
107 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
108     simgrid::simix::marshal<int>(simcall->result, result);
109 }
110
111 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall) {
112   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
113 }
114 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg) {
115     simgrid::simix::marshal<const char*>(simcall->args[0], arg);
116 }
117 static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall) {
118   return simgrid::simix::unmarshal<double>(simcall->args[1]);
119 }
120 static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg) {
121     simgrid::simix::marshal<double>(simcall->args[1], arg);
122 }
123 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall) {
124   return simgrid::simix::unmarshal<double>(simcall->args[2]);
125 }
126 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg) {
127     simgrid::simix::marshal<double>(simcall->args[2], arg);
128 }
129 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall) {
130   return simgrid::simix::unmarshal<double>(simcall->args[3]);
131 }
132 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg) {
133     simgrid::simix::marshal<double>(simcall->args[3], arg);
134 }
135 static inline smx_activity_t simcall_execution_start__get__result(smx_simcall_t simcall){
136     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
137 }
138 static inline void simcall_execution_start__set__result(smx_simcall_t simcall, smx_activity_t result){
139     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
140 }
141
142 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) {
143   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
144 }
145 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) {
146     simgrid::simix::marshal<const char*>(simcall->args[0], arg);
147 }
148 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) {
149   return simgrid::simix::unmarshal<int>(simcall->args[1]);
150 }
151 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) {
152     simgrid::simix::marshal<int>(simcall->args[1], arg);
153 }
154 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) {
155   return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
156 }
157 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) {
158     simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
159 }
160 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) {
161   return simgrid::simix::unmarshal<double*>(simcall->args[3]);
162 }
163 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) {
164     simgrid::simix::marshal<double*>(simcall->args[3], arg);
165 }
166 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) {
167   return simgrid::simix::unmarshal<double*>(simcall->args[4]);
168 }
169 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) {
170     simgrid::simix::marshal<double*>(simcall->args[4], arg);
171 }
172 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall) {
173   return simgrid::simix::unmarshal<double>(simcall->args[5]);
174 }
175 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg) {
176     simgrid::simix::marshal<double>(simcall->args[5], arg);
177 }
178 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) {
179   return simgrid::simix::unmarshal<double>(simcall->args[6]);
180 }
181 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) {
182     simgrid::simix::marshal<double>(simcall->args[6], arg);
183 }
184 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) {
185   return simgrid::simix::unmarshal<double>(simcall->args[7]);
186 }
187 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) {
188     simgrid::simix::marshal<double>(simcall->args[7], arg);
189 }
190 static inline smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
191     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
192 }
193 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_activity_t result){
194     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
195 }
196
197 static inline smx_activity_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
198   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
199 }
200 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
201     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
202 }
203
204 static inline smx_activity_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
205   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
206 }
207 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
208     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
209 }
210 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
211   return simgrid::simix::unmarshal<double>(simcall->args[1]);
212 }
213 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
214     simgrid::simix::marshal<double>(simcall->args[1], arg);
215 }
216
217 static inline smx_activity_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
218   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
219 }
220 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
221     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
222 }
223 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
224   return simgrid::simix::unmarshal<double>(simcall->args[1]);
225 }
226 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
227     simgrid::simix::marshal<double>(simcall->args[1], arg);
228 }
229
230 static inline smx_activity_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
231   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
232 }
233 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
234     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
235 }
236 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
237     return simgrid::simix::unmarshal<int>(simcall->result);
238 }
239 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
240     simgrid::simix::marshal<int>(simcall->result, result);
241 }
242
243 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
244   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
245 }
246 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg) {
247     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
248 }
249 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
250   return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
251 }
252 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
253     simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
254 }
255 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
256   return simgrid::simix::unmarshal<void*>(simcall->args[2]);
257 }
258 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
259     simgrid::simix::marshal<void*>(simcall->args[2], arg);
260 }
261
262 static inline smx_actor_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
263   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
264 }
265 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_actor_t arg) {
266     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
267 }
268 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
269   return simgrid::simix::unmarshal<int>(simcall->args[1]);
270 }
271 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
272     simgrid::simix::marshal<int>(simcall->args[1], arg);
273 }
274
275 static inline smx_actor_t simcall_process_restart__get__process(smx_simcall_t simcall) {
276   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
277 }
278 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_actor_t arg) {
279     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
280 }
281 static inline smx_actor_t simcall_process_restart__get__result(smx_simcall_t simcall){
282     return simgrid::simix::unmarshal<smx_actor_t>(simcall->result);
283 }
284 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_actor_t result){
285     simgrid::simix::marshal<smx_actor_t>(simcall->result, result);
286 }
287
288 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
289   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
290 }
291 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
292     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
293 }
294 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
295   return simgrid::simix::unmarshal<int>(simcall->args[1]);
296 }
297 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
298     simgrid::simix::marshal<int>(simcall->args[1], arg);
299 }
300 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
301   return simgrid::simix::unmarshal<int>(simcall->args[2]);
302 }
303 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
304     simgrid::simix::marshal<int>(simcall->args[2], arg);
305 }
306 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
307   return simgrid::simix::unmarshal<int>(simcall->args[3]);
308 }
309 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
310     simgrid::simix::marshal<int>(simcall->args[3], arg);
311 }
312 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
313   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
314 }
315 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
316     simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
317 }
318 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
319   return simgrid::simix::unmarshal<void*>(simcall->args[5]);
320 }
321 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
322     simgrid::simix::marshal<void*>(simcall->args[5], arg);
323 }
324 static inline smx_activity_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
325     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
326 }
327 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_activity_t result){
328     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
329 }
330
331 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
332   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
333 }
334 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
335     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
336 }
337 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
338   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
339 }
340 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
341     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
342 }
343 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
344   return simgrid::simix::unmarshal<double>(simcall->args[2]);
345 }
346 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
347     simgrid::simix::marshal<double>(simcall->args[2], arg);
348 }
349 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
350   return simgrid::simix::unmarshal<double>(simcall->args[3]);
351 }
352 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
353     simgrid::simix::marshal<double>(simcall->args[3], arg);
354 }
355 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
356   return simgrid::simix::unmarshal<void*>(simcall->args[4]);
357 }
358 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
359     simgrid::simix::marshal<void*>(simcall->args[4], arg);
360 }
361 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
362   return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
363 }
364 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
365     simgrid::simix::marshal<size_t>(simcall->args[5], arg);
366 }
367 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
368   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
369 }
370 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
371     simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
372 }
373 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
374   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
375 }
376 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
377     simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
378 }
379 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
380   return simgrid::simix::unmarshal<void*>(simcall->args[8]);
381 }
382 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
383     simgrid::simix::marshal<void*>(simcall->args[8], arg);
384 }
385 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
386   return simgrid::simix::unmarshal<double>(simcall->args[9]);
387 }
388 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
389     simgrid::simix::marshal<double>(simcall->args[9], arg);
390 }
391
392 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
393   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
394 }
395 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
396     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
397 }
398 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
399   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
400 }
401 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
402     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
403 }
404 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
405   return simgrid::simix::unmarshal<double>(simcall->args[2]);
406 }
407 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
408     simgrid::simix::marshal<double>(simcall->args[2], arg);
409 }
410 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
411   return simgrid::simix::unmarshal<double>(simcall->args[3]);
412 }
413 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
414     simgrid::simix::marshal<double>(simcall->args[3], arg);
415 }
416 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
417   return simgrid::simix::unmarshal<void*>(simcall->args[4]);
418 }
419 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
420     simgrid::simix::marshal<void*>(simcall->args[4], arg);
421 }
422 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
423   return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
424 }
425 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
426     simgrid::simix::marshal<size_t>(simcall->args[5], arg);
427 }
428 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
429   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
430 }
431 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
432     simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
433 }
434 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
435   return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
436 }
437 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
438     simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
439 }
440 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
441   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
442 }
443 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
444     simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
445 }
446 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
447   return simgrid::simix::unmarshal<void*>(simcall->args[9]);
448 }
449 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
450     simgrid::simix::marshal<void*>(simcall->args[9], arg);
451 }
452 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
453   return simgrid::simix::unmarshal<int>(simcall->args[10]);
454 }
455 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
456     simgrid::simix::marshal<int>(simcall->args[10], arg);
457 }
458 static inline smx_activity_t simcall_comm_isend__get__result(smx_simcall_t simcall){
459     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
460 }
461 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_activity_t result){
462     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
463 }
464
465 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
466   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
467 }
468 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
469     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
470 }
471 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
472   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
473 }
474 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
475     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
476 }
477 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
478   return simgrid::simix::unmarshal<void*>(simcall->args[2]);
479 }
480 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
481     simgrid::simix::marshal<void*>(simcall->args[2], arg);
482 }
483 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
484   return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
485 }
486 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
487     simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
488 }
489 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
490   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
491 }
492 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
493     simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
494 }
495 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
496   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
497 }
498 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
499     simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
500 }
501 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
502   return simgrid::simix::unmarshal<void*>(simcall->args[6]);
503 }
504 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
505     simgrid::simix::marshal<void*>(simcall->args[6], arg);
506 }
507 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
508   return simgrid::simix::unmarshal<double>(simcall->args[7]);
509 }
510 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
511     simgrid::simix::marshal<double>(simcall->args[7], arg);
512 }
513 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
514   return simgrid::simix::unmarshal<double>(simcall->args[8]);
515 }
516 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
517     simgrid::simix::marshal<double>(simcall->args[8], arg);
518 }
519
520 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
521   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
522 }
523 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
524     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
525 }
526 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
527   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
528 }
529 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
530     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
531 }
532 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
533   return simgrid::simix::unmarshal<void*>(simcall->args[2]);
534 }
535 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
536     simgrid::simix::marshal<void*>(simcall->args[2], arg);
537 }
538 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
539   return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
540 }
541 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
542     simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
543 }
544 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
545   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
546 }
547 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
548     simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
549 }
550 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
551   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
552 }
553 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
554     simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
555 }
556 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
557   return simgrid::simix::unmarshal<void*>(simcall->args[6]);
558 }
559 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
560     simgrid::simix::marshal<void*>(simcall->args[6], arg);
561 }
562 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
563   return simgrid::simix::unmarshal<double>(simcall->args[7]);
564 }
565 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
566     simgrid::simix::marshal<double>(simcall->args[7], arg);
567 }
568 static inline smx_activity_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
569     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
570 }
571 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_activity_t result){
572     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
573 }
574
575 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
576   return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
577 }
578 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
579     simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
580 }
581 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
582   return simgrid::simix::unmarshal<double>(simcall->args[1]);
583 }
584 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
585     simgrid::simix::marshal<double>(simcall->args[1], arg);
586 }
587 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
588     return simgrid::simix::unmarshal<int>(simcall->result);
589 }
590 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
591     simgrid::simix::marshal<int>(simcall->result, result);
592 }
593
594 static inline smx_activity_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
595   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
596 }
597 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
598     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
599 }
600 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
601   return simgrid::simix::unmarshal<double>(simcall->args[1]);
602 }
603 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
604     simgrid::simix::marshal<double>(simcall->args[1], arg);
605 }
606
607 static inline smx_activity_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
608   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
609 }
610 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
611     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
612 }
613 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
614     return simgrid::simix::unmarshal<int>(simcall->result);
615 }
616 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
617     simgrid::simix::marshal<int>(simcall->result, result);
618 }
619
620 static inline smx_activity_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
621   return simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]);
622 }
623 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_activity_t* arg) {
624     simgrid::simix::marshal<smx_activity_t*>(simcall->args[0], arg);
625 }
626 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
627   return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
628 }
629 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
630     simgrid::simix::marshal<size_t>(simcall->args[1], arg);
631 }
632 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
633     return simgrid::simix::unmarshal<int>(simcall->result);
634 }
635 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
636     simgrid::simix::marshal<int>(simcall->result, result);
637 }
638
639 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
640     return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
641 }
642 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
643     simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
644 }
645
646 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
647   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
648 }
649 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
650     simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
651 }
652
653 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
654   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
655 }
656 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
657     simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
658 }
659 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
660     return simgrid::simix::unmarshal<int>(simcall->result);
661 }
662 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
663     simgrid::simix::marshal<int>(simcall->result, result);
664 }
665
666 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
667   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
668 }
669 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
670     simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
671 }
672
673 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
674     return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
675 }
676 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
677     simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
678 }
679
680 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
681   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
682 }
683 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
684     simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
685 }
686
687 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
688   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
689 }
690 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
691     simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
692 }
693 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
694   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
695 }
696 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
697     simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
698 }
699
700 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
701   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
702 }
703 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
704     simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
705 }
706 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
707   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
708 }
709 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
710     simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
711 }
712 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
713   return simgrid::simix::unmarshal<double>(simcall->args[2]);
714 }
715 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
716     simgrid::simix::marshal<double>(simcall->args[2], arg);
717 }
718
719 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
720   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
721 }
722 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
723     simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
724 }
725
726 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
727   return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
728 }
729 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
730     simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
731 }
732 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
733     return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
734 }
735 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
736     simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
737 }
738
739 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
740   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
741 }
742 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
743     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
744 }
745
746 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
747   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
748 }
749 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
750     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
751 }
752 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
753     return simgrid::simix::unmarshal<int>(simcall->result);
754 }
755 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
756     simgrid::simix::marshal<int>(simcall->result, result);
757 }
758
759 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
760   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
761 }
762 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
763     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
764 }
765
766 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
767   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
768 }
769 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
770     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
771 }
772 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
773   return simgrid::simix::unmarshal<double>(simcall->args[1]);
774 }
775 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
776     simgrid::simix::marshal<double>(simcall->args[1], arg);
777 }
778
779 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
780   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
781 }
782 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
783     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
784 }
785 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
786     return simgrid::simix::unmarshal<int>(simcall->result);
787 }
788 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
789     simgrid::simix::marshal<int>(simcall->result, result);
790 }
791
792 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
793   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
794 }
795 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, smx_file_t arg) {
796     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
797 }
798 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall) {
799   return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
800 }
801 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg) {
802     simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
803 }
804 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall) {
805   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
806 }
807 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg) {
808     simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
809 }
810 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
811     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
812 }
813 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
814     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
815 }
816
817 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
818   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
819 }
820 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
821     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
822 }
823 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
824   return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
825 }
826 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
827     simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
828 }
829 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
830   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
831 }
832 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
833     simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
834 }
835 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
836     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
837 }
838 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
839     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
840 }
841
842 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
843   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
844 }
845 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
846     simgrid::simix::marshal<const char*>(simcall->args[0], arg);
847 }
848 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
849   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
850 }
851 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
852     simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
853 }
854 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
855     return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
856 }
857 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
858     simgrid::simix::marshal<smx_file_t>(simcall->result, result);
859 }
860
861 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
862   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
863 }
864 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
865     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
866 }
867 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
868   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
869 }
870 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
871     simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
872 }
873 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
874     return simgrid::simix::unmarshal<int>(simcall->result);
875 }
876 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
877     simgrid::simix::marshal<int>(simcall->result, result);
878 }
879
880 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
881   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
882 }
883 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
884     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
885 }
886 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
887   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
888 }
889 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
890     simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
891 }
892 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
893     return simgrid::simix::unmarshal<int>(simcall->result);
894 }
895 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
896     simgrid::simix::marshal<int>(simcall->result, result);
897 }
898
899 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
900   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
901 }
902 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
903     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
904 }
905 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
906     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
907 }
908 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
909     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
910 }
911
912 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
913   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
914 }
915 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
916     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
917 }
918 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
919     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
920 }
921 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
922     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
923 }
924
925 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
926   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
927 }
928 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
929     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
930 }
931 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
932   return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
933 }
934 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
935     simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
936 }
937 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
938   return simgrid::simix::unmarshal<int>(simcall->args[2]);
939 }
940 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
941     simgrid::simix::marshal<int>(simcall->args[2], arg);
942 }
943 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
944     return simgrid::simix::unmarshal<int>(simcall->result);
945 }
946 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
947     simgrid::simix::marshal<int>(simcall->result, result);
948 }
949
950 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
951   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
952 }
953 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
954     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
955 }
956 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
957     return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
958 }
959 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
960     simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
961 }
962
963 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
964   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
965 }
966 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
967     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
968 }
969 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
970   return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
971 }
972 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
973     simgrid::simix::marshal<const char*>(simcall->args[1], arg);
974 }
975 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
976     return simgrid::simix::unmarshal<int>(simcall->result);
977 }
978 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
979     simgrid::simix::marshal<int>(simcall->result, result);
980 }
981
982 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
983   return simgrid::simix::unmarshal<int>(simcall->args[0]);
984 }
985 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
986     simgrid::simix::marshal<int>(simcall->args[0], arg);
987 }
988 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
989   return simgrid::simix::unmarshal<int>(simcall->args[1]);
990 }
991 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
992     simgrid::simix::marshal<int>(simcall->args[1], arg);
993 }
994 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
995     return simgrid::simix::unmarshal<int>(simcall->result);
996 }
997 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
998     simgrid::simix::marshal<int>(simcall->result, result);
999 }
1000
1001 static inline smx_activity_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1002   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
1003 }
1004 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_activity_t arg) {
1005     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
1006 }
1007 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1008   return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1009 }
1010 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1011     simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1012 }
1013
1014 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1015   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1016 }
1017 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1018     simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1019 }
1020
1021 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1022   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1023 }
1024 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1025     simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1026 }
1027
1028 /* The prototype of all simcall handlers, automatically generated for you */
1029
1030 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process);
1031 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1032 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1033 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_actor_t process, sg_host_t dest);
1034 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1035 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1036 XBT_PRIVATE smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound);
1037 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t execution);
1038 XBT_PRIVATE smx_actor_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_actor_t process);
1039 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_iprobe(smx_simcall_t simcall, smx_mailbox_t mbox, int type, int src, int tag, simix_match_func_t match_fun, void* data);
1040 XBT_PRIVATE void simcall_HANDLER_comm_send(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout);
1041 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_clean_func_t clean_fun, simix_copy_data_func_t copy_data_fun, void* data, int detached);
1042 XBT_PRIVATE void simcall_HANDLER_comm_recv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout, double rate);
1043 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double rate);
1044 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1045 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t comm, double timeout);
1046 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_activity_t comm);
1047 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_activity_t* comms, size_t count);
1048 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1049 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1050 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1051 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1052 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1053 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1054 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1055 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1056 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1057 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1058 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1059 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1060 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1061 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1062 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1063 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1064 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1065 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1066 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1067 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1068 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);