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
Merge branches 'auto_restart' and 'auto_restart' of framagit.org:simgrid/simgrid
[simgrid.git]
/
src
/
s4u
/
s4u_Engine.cpp
diff --git
a/src/s4u/s4u_Engine.cpp
b/src/s4u/s4u_Engine.cpp
index 6f5e4d65c8dfca81a62801ff9826df266717740e..3f8d5677e87edf0d98ae644a6ed8780edfd64715 100644
(file)
--- a/
src/s4u/s4u_Engine.cpp
+++ b/
src/s4u/s4u_Engine.cpp
@@
-80,6
+80,10
@@
void Engine::register_function(std::string name, int (*code)(int, char**))
{
SIMIX_function_register(name, code);
}
+void Engine::register_function(std::string name, void (*code)(std::vector<std::string>))
+{
+ SIMIX_function_register(name, code);
+}
void Engine::register_default(int (*code)(int, char**))
{
SIMIX_function_register_default(code);
@@
-102,7
+106,6
@@
void Engine::getHostList(std::vector<Host*>* list)
list->push_back(kv.second);
}
-/** @brief Returns the list of all hosts found in the platform */
std::vector<Host*> Engine::get_all_hosts()
{
std::vector<Host*> res;