X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b1cea2b21e4a87c8fefbf5d44e9226ebe83ce37f..305fbc7b720f845588b22de910245576971a5f97:/src/gras/Virtu/virtu_interface.h?ds=sidebyside diff --git a/src/gras/Virtu/virtu_interface.h b/src/gras/Virtu/virtu_interface.h index e0a3fb16f5..a517ea4714 100644 --- a/src/gras/Virtu/virtu_interface.h +++ b/src/gras/Virtu/virtu_interface.h @@ -12,6 +12,7 @@ #ifndef GRAS_VIRTU_INTERFACE_H #define GRAS_VIRTU_INTERFACE_H + #include "xbt/function_types.h" #include "xbt/sysdep.h" #include "xbt/log.h" @@ -19,19 +20,30 @@ #include "gras/virtu.h" #include "gras/process.h" +SG_BEGIN_DECL() + /* shutdown the module mechanism (world-wide cleanups) */ -XBT_PUBLIC(void) gras_moddata_exit(void); +void gras_moddata_exit(void); /* shutdown this process wrt module mecanism (process-wide cleanups) */ -XBT_PUBLIC(void) gras_moddata_leave(void); +void gras_moddata_leave(void); -/* This is the old interface (deprecated) */ +/* Perform the various intialisations needed by gras. Each process must run it */ +XBT_PUBLIC(void) gras_process_init(void); + +/* Frees the memory allocated by gras. Processes should run it */ +XBT_PUBLIC(void) gras_process_exit(void); + + +/* This is the old interface (deprecated) */ /* declare a new process specific data (used by gras__register to make sure that gras_process_init will create it) */ -XBT_PUBLIC(int) gras_procdata_add(const char *name, pvoid_f_void_t creator,void_f_pvoid_t destructor); +int gras_procdata_add(const char *name, pvoid_f_void_t creator,void_f_pvoid_t destructor); + +void* gras_libdata_by_name(const char *name); +void* gras_libdata_by_id(int id); -XBT_PUBLIC(void*) gras_libdata_by_name(const char *name); -XBT_PUBLIC(void*) gras_libdata_by_id(int id); +SG_END_DECL() #endif /* GRAS_VIRTU_INTERFACE_H */