X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1f851881b5dfc8776b706070e31ac55dd986f563..6d17036094433f0304c29b6f57922cee32b0c67c:/src/include/simix/simix.h diff --git a/src/include/simix/simix.h b/src/include/simix/simix.h index d7be65110e..4fefabbe8c 100644 --- a/src/include/simix/simix.h +++ b/src/include/simix/simix.h @@ -11,6 +11,7 @@ #include "xbt/misc.h" #include "xbt/fifo.h" +#include "xbt/function_types.h" #include "simix/datatypes.h" #include "surf/surf.h" @@ -21,8 +22,8 @@ SG_BEGIN_DECL() XBT_PUBLIC(void) SIMIX_config(const char *name, va_list pa); XBT_PUBLIC(void) SIMIX_global_init(int *argc, char **argv); XBT_PUBLIC(void) SIMIX_clean(void); -XBT_PUBLIC(void) SIMIX_function_register(const char *name, smx_process_code_t code); -XBT_PUBLIC(smx_process_code_t) SIMIX_get_registered_function(const char *name); +XBT_PUBLIC(void) SIMIX_function_register(const char *name, xbt_main_func_t code); +XBT_PUBLIC(xbt_main_func_t) SIMIX_get_registered_function(const char *name); XBT_PUBLIC(void) SIMIX_launch_application(const char *file); @@ -38,7 +39,7 @@ XBT_PUBLIC(void) __SIMIX_main(void); /* User create and kill process, the function must accept the folling parameters: * const char *name: a name for the object. It is for user-level information and can be NULL - * smx_process_code_t code: is a function describing the behavior of the agent + * xbt_main_func_t code: is a function describing the behavior of the agent * void *data: data a pointer to any data one may want to attach to the new object. * smx_host_t host: the location where the new agent is executed * int argc, char **argv: parameters passed to code @@ -68,7 +69,7 @@ XBT_PUBLIC(int) SIMIX_host_get_state(smx_host_t host); /************************** Process handling *********************************/ XBT_PUBLIC(smx_process_t) SIMIX_process_create(const char *name, - smx_process_code_t code, void *data, + xbt_main_func_t code, void *data, const char * hostname, int argc, char **argv, void * clean_process_function);