X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/149c63f36e15b8500b1e826bda5138318ff7ba2b..e00fda5df723b84fcc28b5d9b03adc76b36c5bf4:/include/simgrid/engine.h diff --git a/include/simgrid/engine.h b/include/simgrid/engine.h index 736ba3b770..30be8afc41 100644 --- a/include/simgrid/engine.h +++ b/include/simgrid/engine.h @@ -7,6 +7,7 @@ #define INCLUDE_SIMGRID_ENGINE_H_ #include +#include SG_BEGIN_DECL /* C interface */ /** Initialize the SimGrid engine, taking the command line parameters of your main function. */ @@ -29,13 +30,13 @@ XBT_PUBLIC void simgrid_load_deployment(const char* filename); /** Run the simulation after initialization */ XBT_PUBLIC void simgrid_run(); /** Registers the main function of an actor that will be launched from the deployment file */ -XBT_PUBLIC void simgrid_register_function(const char* name, int (*code)(int, char**)); +XBT_PUBLIC void simgrid_register_function(const char* name, void (*code)(int, char**)); /** Registers a function as the default main function of actors * * It will be used as fallback when the function requested from the deployment file was not registered. * It is used for trace-based simulations (see examples/s4u/replay-comms and similar). */ -XBT_PUBLIC void simgrid_register_default(int (*code)(int, char**)); +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 */