A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename a function, and kill 2 dead prototypes
[simgrid.git]
/
src
/
bindings
/
lua
/
lua_platf.c
diff --git
a/src/bindings/lua/lua_platf.c
b/src/bindings/lua/lua_platf.c
index
088f9a9
..
4f7507b
100644
(file)
--- a/
src/bindings/lua/lua_platf.c
+++ b/
src/bindings/lua/lua_platf.c
@@
-14,8
+14,7
@@
#include <ctype.h>
#include <lauxlib.h>
#include <ctype.h>
#include <lauxlib.h>
-#include "src/msg/msg_private.h"
-#include "src/simix/smx_host_private.h"
+#include <simgrid/host.h>
#include "src/surf/surf_private.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(lua_platf, bindings, "Lua bindings (platform module)");
#include "src/surf/surf_private.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(lua_platf, bindings, "Lua bindings (platform module)");
@@
-183,7
+182,7
@@
int console_add_host(lua_State *L) {
XBT_ERROR("Attribute 'speed' must be specified for host and must either be a string (in the correct format; check documentation) or a number.");
}
host.speed_peak = xbt_dynar_new(sizeof(double), NULL);
XBT_ERROR("Attribute 'speed' must be specified for host and must either be a string (in the correct format; check documentation) or a number.");
}
host.speed_peak = xbt_dynar_new(sizeof(double), NULL);
- xbt_dynar_push_as(host.speed_peak, double,
get
_cpu_speed(lua_tostring(L, -1)));
+ xbt_dynar_push_as(host.speed_peak, double,
parse
_cpu_speed(lua_tostring(L, -1)));
lua_pop(L, 1);
// get core
lua_pop(L, 1);
// get core
@@
-555,12
+554,12
@@
int console_host_set_property(lua_State *L) {
prop_value = lua_tostring(L,-1);
lua_pop(L, 1);
prop_value = lua_tostring(L,-1);
lua_pop(L, 1);
-
msg_host_t host = MSG
_host_by_name(name);
+
sg_host_t host = sg
_host_by_name(name);
if (!host) {
XBT_ERROR("no host '%s' found",name);
return -1;
}
if (!host) {
XBT_ERROR("no host '%s' found",name);
return -1;
}
- xbt_dict_t props =
MSG
_host_get_properties(host);
+ xbt_dict_t props =
sg
_host_get_properties(host);
xbt_dict_set(props,prop_id,xbt_strdup(prop_value),NULL);
return 0;
xbt_dict_set(props,prop_id,xbt_strdup(prop_value),NULL);
return 0;