Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
7f65062359eaf3ec9f4220f07e045427fbf20f95
[simgrid.git] / src / msg / msg_legacy.cpp
1 /* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include "src/msg/msg_private.hpp"
7
8 #define MSG_CALL(type, oldname, args)
9
10 /* ************************** Actors *************************** */
11 int MSG_process_get_PID(sg_actor_t actor)
12 {
13   return sg_actor_get_PID(actor);
14 }
15 int MSG_process_get_PPID(sg_actor_t actor)
16 {
17   return sg_actor_get_PPID(actor);
18 }
19 const char* MSG_process_get_name(sg_actor_t actor)
20 {
21   return sg_actor_get_name(actor);
22 }
23 sg_host_t MSG_process_get_host(sg_actor_t actor)
24 {
25   return sg_actor_get_host(actor);
26 }
27 xbt_dict_t MSG_process_get_properties(sg_actor_t actor)
28 {
29   return sg_actor_get_properties(actor);
30 }
31 const char* MSG_process_get_property_value(sg_actor_t actor, const char* name)
32 {
33   return sg_actor_get_property_value(actor, name);
34 }
35 void MSG_process_suspend(sg_actor_t actor)
36 {
37   sg_actor_suspend(actor);
38 }
39 void MSG_process_resume(sg_actor_t actor)
40 {
41   sg_actor_resume(actor);
42 }
43 int MSG_process_is_suspended(sg_actor_t actor)
44 {
45   return sg_actor_is_suspended(actor);
46 }
47 void MSG_process_restart(sg_actor_t actor)
48 {
49   sg_actor_restart(actor);
50 }
51 void MSG_process_daemonize(sg_actor_t actor)
52 {
53   sg_actor_daemonize(actor);
54 }
55 void MSG_process_migrate(sg_actor_t actor, sg_host_t host)
56 {
57   sg_actor_migrate(actor, host);
58 }
59 void MSG_process_join(sg_actor_t actor, double timeout)
60 {
61   sg_actor_join(actor, timeout);
62 }
63 void MSG_process_kill(sg_actor_t actor)
64 {
65   sg_actor_kill(actor);
66 }
67
68 void MSG_process_set_kill_time(sg_actor_t actor, double kill_time)
69 {
70   sg_actor_set_kill_time(actor, kill_time);
71 }
72
73 /* ************************** NetZones *************************** */
74 sg_netzone_t MSG_zone_get_root()
75 {
76   return sg_zone_get_root();
77 }
78 const char* MSG_zone_get_name(sg_netzone_t zone)
79 {
80   return sg_zone_get_name(zone);
81 }
82 sg_netzone_t MSG_zone_get_by_name(const char* name)
83 {
84   return sg_zone_get_by_name(name);
85 }
86 void MSG_zone_get_sons(sg_netzone_t zone, xbt_dict_t whereto)
87 {
88   return sg_zone_get_sons(zone, whereto);
89 }
90 const char* MSG_zone_get_property_value(sg_netzone_t zone, const char* name)
91 {
92   return sg_zone_get_property_value(zone, name);
93 }
94 void MSG_zone_set_property_value(sg_netzone_t zone, const char* name, char* value)
95 {
96   sg_zone_set_property_value(zone, name, value);
97 }
98 void MSG_zone_get_hosts(sg_netzone_t zone, xbt_dynar_t whereto)
99 {
100   sg_zone_get_hosts(zone, whereto);
101 }
102
103 /* ************************** Storages *************************** */
104 const char* MSG_storage_get_name(sg_storage_t storage)
105 {
106   return sg_storage_get_name(storage);
107 }
108 sg_storage_t MSG_storage_get_by_name(const char* name)
109 {
110   return sg_storage_get_by_name(name);
111 }
112 xbt_dict_t MSG_storage_get_properties(sg_storage_t storage)
113 {
114   return sg_storage_get_properties(storage);
115 }
116 void MSG_storage_set_property_value(sg_storage_t storage, const char* name, const char* value)
117 {
118   sg_storage_set_property_value(storage, name, value);
119 }
120 const char* MSG_storage_get_property_value(sg_storage_t storage, const char* name)
121 {
122   return sg_storage_get_property_value(storage, name);
123 }
124 xbt_dynar_t MSG_storages_as_dynar()
125 {
126   return sg_storages_as_dynar();
127 }
128 void MSG_storage_set_data(sg_storage_t storage, void* data)
129 {
130   sg_storage_set_data(storage, data);
131 }
132 void* MSG_storage_get_data(sg_storage_t storage)
133 {
134   return sg_storage_get_data(storage);
135 }
136 const char* MSG_storage_get_host(sg_storage_t storage)
137 {
138   return sg_storage_get_host(storage);
139 }
140 sg_size_t MSG_storage_read(sg_storage_t storage, sg_size_t size)
141 {
142   return sg_storage_read(storage, size);
143 }
144 sg_size_t MSG_storage_write(sg_storage_t storage, sg_size_t size)
145 {
146   return sg_storage_write(storage, size);
147 }
148
149 /* ************************** hosts *************************** */
150 xbt_dynar_t MSG_hosts_as_dynar()
151 {
152   return sg_hosts_as_dynar();
153 }
154 size_t MSG_get_host_number()
155 {
156   return sg_host_count();
157 }
158 sg_host_t MSG_get_host_by_name(const char* name)
159 {
160   return sg_host_by_name(name);
161 }
162 sg_host_t MSG_host_by_name(const char* name)
163 {
164   return sg_host_by_name(name);
165 }
166 const char* MSG_host_get_name(sg_host_t host)
167 {
168   return sg_host_get_name(host);
169 }
170 void* MSG_host_get_data(sg_host_t host)
171 {
172   return sg_host_user(host);
173 }
174 void MSG_host_set_data(sg_host_t host, void* data)
175 {
176   return sg_host_user_set(host, data);
177 }
178 xbt_dict_t MSG_host_get_mounted_storage_list(sg_host_t host)
179 {
180   return sg_host_get_mounted_storage_list(host);
181 }
182 xbt_dynar_t MSG_host_get_attached_storage_lists(sg_host_t host)
183 {
184   return sg_host_get_attached_storage_list(host);
185 }
186 double MSG_host_get_speed(sg_host_t host)
187 {
188   return sg_host_speed(host);
189 }
190 double MSG_host_get_power_peak_at(sg_host_t host, int pstate_index)
191 {
192   return sg_host_get_pstate_speed(host, pstate_index);
193 }
194 int MSG_host_get_core_number(sg_host_t host)
195 {
196   return sg_host_core_count(host);
197 }
198 int MSG_host_get_nb_pstates(sg_host_t host)
199 {
200   return sg_host_get_nb_pstates(host);
201 }
202 int MSG_host_get_pstate(sg_host_t host)
203 {
204   return sg_host_get_pstate(host);
205 }
206 void MSG_host_set_pstate(sg_host_t host, int pstate)
207 {
208   sg_host_set_pstate(host, pstate);
209 }
210 void MSG_host_on(sg_host_t h)
211 {
212   sg_host_turn_on(h);
213 }
214 void MSG_host_off(sg_host_t h)
215 {
216   sg_host_turn_off(h);
217 }
218 int MSG_host_is_on(sg_host_t h)
219 {
220   return sg_host_is_on(h);
221 }
222 int MSG_host_is_off(sg_host_t h)
223 {
224   return sg_host_is_off(h);
225 }
226 xbt_dict_t MSG_host_get_properties(sg_host_t host)
227 {
228   return sg_host_get_properties(host);
229 }
230 const char* MSG_host_get_property_value(sg_host_t host, const char* name)
231 {
232   return sg_host_get_property_value(host, name);
233 }
234 void MSG_host_set_property_value(sg_host_t host, const char* name, const char* value)
235 {
236   sg_host_set_property_value(host, name, value);
237 }
238 void MSG_host_get_process_list(sg_host_t host, xbt_dynar_t whereto)
239 {
240   sg_host_get_actor_list(host, whereto);
241 }
242 sg_host_t MSG_host_self()
243 {
244   return sg_host_self();
245 }
246 /* ************************** Virtual Machines *************************** */
247 sg_vm_t MSG_vm_create_core(sg_host_t pm, const char* name)
248 {
249   return sg_vm_create_core(pm, name);
250 }
251 sg_vm_t MSG_vm_create_multicore(sg_host_t pm, const char* name, int coreAmount)
252 {
253   return sg_vm_create_multicore(pm, name, coreAmount);
254 }
255 int MSG_vm_is_created(sg_vm_t vm)
256 {
257   return sg_vm_is_created(vm);
258 }
259 int MSG_vm_is_running(sg_vm_t vm)
260 {
261   return sg_vm_is_running(vm);
262 }
263 int MSG_vm_is_suspended(sg_vm_t vm)
264 {
265   return sg_vm_is_suspended(vm);
266 }
267 const char* MSG_vm_get_name(sg_vm_t vm)
268 {
269   return sg_vm_get_name(vm);
270 }
271 void MSG_vm_set_ramsize(sg_vm_t vm, size_t size)
272 {
273   sg_vm_set_ramsize(vm, size);
274 }
275 size_t MSG_vm_get_ramsize(sg_vm_t vm)
276 {
277   return sg_vm_get_ramsize(vm);
278 }
279 sg_host_t MSG_vm_get_pm(sg_vm_t vm)
280 {
281   return sg_vm_get_pm(vm);
282 }
283 void MSG_vm_set_bound(sg_vm_t vm, double bound)
284 {
285   sg_vm_set_bound(vm, bound);
286 }
287 void MSG_vm_start(sg_vm_t vm)
288 {
289   sg_vm_start(vm);
290 }
291 void MSG_vm_suspend(sg_vm_t vm)
292 {
293   sg_vm_suspend(vm);
294 }
295 void MSG_vm_resume(sg_vm_t vm)
296 {
297   sg_vm_resume(vm);
298 }
299 void MSG_vm_shutdown(sg_vm_t vm)
300 {
301   sg_vm_shutdown(vm);
302 }
303 void MSG_vm_destroy(sg_vm_t vm)
304 {
305   sg_vm_destroy(vm);
306 }