Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
C API: rename sg_engine_*() into simgrid_*()
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 13 Jul 2018 18:54:00 +0000 (20:54 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 13 Jul 2018 18:54:00 +0000 (20:54 +0200)
include/simgrid/engine.h
src/msg/msg_legacy.cpp
src/s4u/s4u_Engine.cpp

index 9c4b631..216127a 100644 (file)
 /* C interface */
 SG_BEGIN_DECL()
 XBT_PUBLIC void simgrid_init(int* argc, char** argv);
-XBT_PUBLIC void sg_engine_load_platform(const char* filename);
-XBT_PUBLIC void sg_engine_load_deployment(const char* filename);
-XBT_PUBLIC void sg_engine_run();
-XBT_PUBLIC void sg_engine_register_function(const char* name, int (*code)(int, char**));
+XBT_PUBLIC void simgrid_load_platform(const char* filename);
+XBT_PUBLIC void simgrid_load_deployment(const char* filename);
+XBT_PUBLIC void simgrid_run();
+XBT_PUBLIC void simgrid_register_function(const char* name, int (*code)(int, char**));
 XBT_PUBLIC void sg_engine_register_default(int (*code)(int, char**));
-XBT_PUBLIC double sg_engine_get_clock();
+XBT_PUBLIC double simgrid_get_clock();
 SG_END_DECL()
 
 #endif /* INCLUDE_SIMGRID_ENGINE_H_ */
index fc75415..72957ca 100644 (file)
 /* ************************** Engine *************************** */
 void MSG_create_environment(const char* filename)
 {
-  sg_engine_load_platform(filename);
+  simgrid_load_platform(filename);
 }
 
 void MSG_launch_application(const char* filename)
 {
-  sg_engine_load_deployment(filename);
+  simgrid_load_deployment(filename);
 }
 msg_error_t MSG_main()
 {
-  sg_engine_run();
+  simgrid_run();
   return MSG_OK;
 }
 void MSG_function_register(const char* name, xbt_main_func_t code)
 {
-  sg_engine_register_function(name, code);
+  simgrid_register_function(name, code);
 }
 void MSG_function_register_default(xbt_main_func_t code)
 {
@@ -32,7 +32,7 @@ void MSG_function_register_default(xbt_main_func_t code)
 }
 double MSG_get_clock()
 {
-  return sg_engine_get_clock();
+  return simgrid_get_clock();
 }
 
 /* ************************** Mailboxes ************************ */
index ae87560..2afeecb 100644 (file)
@@ -370,20 +370,20 @@ void simgrid_init(int* argc, char** argv)
 {
   simgrid::s4u::Engine e(argc, argv);
 }
-void sg_engine_load_platform(const char* file)
+void simgrid_load_platform(const char* file)
 {
   simgrid::s4u::Engine::get_instance()->load_platform(file);
 }
 
-void sg_engine_load_deployment(const char* file)
+void simgrid_load_deployment(const char* file)
 {
   simgrid::s4u::Engine::get_instance()->load_deployment(file);
 }
-void sg_engine_run()
+void simgrid_run()
 {
   simgrid::s4u::Engine::get_instance()->run();
 }
-void sg_engine_register_function(const char* name, int (*code)(int, char**))
+void simgrid_register_function(const char* name, int (*code)(int, char**))
 {
   simgrid::s4u::Engine::get_instance()->register_function(name, code);
 }
@@ -391,7 +391,7 @@ void sg_engine_register_default(int (*code)(int, char**))
 {
   simgrid::s4u::Engine::get_instance()->register_default(code);
 }
-double sg_engine_get_clock()
+double simgrid_get_clock()
 {
   return simgrid::s4u::Engine::get_clock();
 }