Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
added support for test s4u-network-ns3-wifi
[simgrid.git] / include / simgrid / engine.h
index 95b9ae48ca05e80e0127fd636cbb432e9a7423d7..66e74f561da79111eac8f4e71f106005875ec0d8 100644 (file)
@@ -7,10 +7,13 @@
 #define INCLUDE_SIMGRID_ENGINE_H_
 
 #include <simgrid/forward.h>
+#include <stddef.h>
 
 SG_BEGIN_DECL /* C interface */
-/** Initialize the SimGrid engine, taking the command line parameters of your main function. */
-XBT_PUBLIC void simgrid_init(int* argc, char** argv);
+
+    /** Initialize the SimGrid engine, taking the command line parameters of your main function. */
+    XBT_PUBLIC void
+    simgrid_init(int* argc, char** argv);
 
 /** Creates a new platform, including hosts, links, and the routing table.
  *
@@ -39,7 +42,7 @@ XBT_PUBLIC void simgrid_register_default(void (*code)(int, char**));
 /** Retrieve the simulation time (in seconds) */
 XBT_PUBLIC double simgrid_get_clock();
 /** Retrieve the number of actors in the simulation */
-XBT_PUBLIC int simgrid_get_actor_count();
+XBT_ATTRIB_DEPRECATED_v330("Please use sg_actor_count()") XBT_PUBLIC int simgrid_get_actor_count();
 
 /** @brief Allow other libraries to react to the --help flag, too
  *