Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
deprecate some of simix.h C API
[simgrid.git] / src / simix / smx_deployment.cpp
index e18a281..d94d87f 100644 (file)
@@ -9,6 +9,7 @@
 #include "simgrid/s4u/Host.hpp"
 #include "smx_private.hpp"
 #include "src/surf/xml/platf_private.hpp" // FIXME: KILLME. There must be a better way than mimicking XML here
+#include <simgrid/engine.h>
 #include <xbt/ex.hpp>
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_deployment, simix, "Logging specific to SIMIX (deployment)");
@@ -56,6 +57,11 @@ void SIMIX_launch_application(std::string file)
   }
 }
 
+void SIMIX_launch_application(const char* file) // deprecated
+{
+  simgrid_load_deployment(file);
+}
+
 // Wrap a main() function into a ActorCodeFactory:
 static simgrid::simix::ActorCodeFactory toActorCodeFactory(xbt_main_func_t code)
 {
@@ -77,6 +83,11 @@ void SIMIX_function_register(std::string name, xbt_main_func_t code)
   simix_global->registered_functions[name] = toActorCodeFactory(code);
 }
 
+void SIMIX_function_register(const char* name, xbt_main_func_t code) // deprecated
+{
+  simgrid_register_function(name, code);
+}
+
 /**
  * \brief Registers a #xbt_main_func_t code as default value.
  *