X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/25d577cd1732a672eb06cb4f24c5b9eacd2df5d0..6c521ec8a61f9cc04fd88ede4af09b78fe196018:/src/include/xbt/context.h diff --git a/src/include/xbt/context.h b/src/include/xbt/context.h index 3ab0dbce97..018bef6991 100644 --- a/src/include/xbt/context.h +++ b/src/include/xbt/context.h @@ -9,7 +9,8 @@ #define _XBT_CONTEXT_H #include "xbt/misc.h" -#include "xbt/dynar.h" /* void_f_pvoid_t */ +#include "xbt/function_types.h" +#include "xbt_modinter.h" /* init/exit of this module */ /** @addtogroup XBT_context * @@ -31,16 +32,14 @@ /* @}*/ -void xbt_context_init(void); -void xbt_context_exit(void); void xbt_context_empty_trash(void); -xbt_context_t xbt_context_new(xbt_context_function_t code, - void_f_pvoid_t startup_func, void *startup_arg, - void_f_pvoid_t cleanup_func, void *cleanup_arg, - int argc, char *argv[]); -void xbt_context_free(xbt_context_t context); -void xbt_context_start(xbt_context_t context); -void xbt_context_yield(void); -void xbt_context_schedule(xbt_context_t context); +XBT_PUBLIC(xbt_context_t) xbt_context_new(xbt_context_function_t code, + void_f_pvoid_t startup_func, void *startup_arg, + void_f_pvoid_t cleanup_func, void *cleanup_arg, + int argc, char *argv[]); +XBT_PUBLIC(void) xbt_context_kill(xbt_context_t context); +XBT_PUBLIC(void) xbt_context_start(xbt_context_t context); +XBT_PUBLIC(void) xbt_context_yield(void); +XBT_PUBLIC(void) xbt_context_schedule(xbt_context_t context); /* @} */ #endif /* _XBT_CONTEXT_H */