X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d947ff7466b473eeec602007934f8336a9b17f3c..076aada113aa0566c059211416cd9214a54d763d:/src/bindings/lua/lua_platf.c diff --git a/src/bindings/lua/lua_platf.c b/src/bindings/lua/lua_platf.c index 7514c7121d..581b06de68 100644 --- a/src/bindings/lua/lua_platf.c +++ b/src/bindings/lua/lua_platf.c @@ -41,9 +41,8 @@ static const luaL_reg platf_functions[] = { int console_open(lua_State *L) { sg_platf_init(); sg_platf_begin(); - surf_parse_init_callbacks(); - - storage_register_callbacks(); + + storage_register_callbacks(); routing_register_callbacks(); gpu_register_callbacks(); @@ -321,7 +320,6 @@ int console_AS_open(lua_State *L) { else if(!strcmp(mode,"Floyd")) mode_int = A_surfxml_AS_routing_Floyd; else if(!strcmp(mode,"Dijkstra")) mode_int = A_surfxml_AS_routing_Dijkstra; else if(!strcmp(mode,"DijkstraCache")) mode_int = A_surfxml_AS_routing_DijkstraCache; - else if(!strcmp(mode,"RuleBased")) mode_int = A_surfxml_AS_routing_RuleBased; else if(!strcmp(mode,"Vivaldi")) mode_int = A_surfxml_AS_routing_Vivaldi; else if(!strcmp(mode,"Cluster")) mode_int = A_surfxml_AS_routing_Cluster; else if(!strcmp(mode,"none")) mode_int = A_surfxml_AS_routing_None; @@ -365,7 +363,7 @@ int console_set_function(lua_State *L) { //get args lua_pushstring(L,"args"); lua_gettable(L, -2); - args = xbt_str_split_quoted( lua_tostring(L,-1) ); + args = xbt_str_split_str( lua_tostring(L,-1) , ","); lua_pop(L, 1); // FIXME: hackish to go under MSG that way @@ -375,6 +373,7 @@ int console_set_function(lua_State *L) { return -1; } + // FIXME: use sg_platf_new_process directly (warning: find a way to check hostname) MSG_set_function(host_id, function_id, args); return 0;