3 /* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
11 typedef struct s_xbt_context *xbt_context_t;
12 typedef int(*xbt_context_function_t)(int argc, char *argv[]);
14 void xbt_context_init(void);
15 void xbt_context_exit(void);
16 void xbt_context_empty_trash(void);
17 xbt_context_t xbt_context_new(xbt_context_function_t code, int argc, char *argv[]);
18 void xbt_context_start(xbt_context_t context);
19 void xbt_context_yield(void);
20 void xbt_context_schedule(xbt_context_t context);
22 #endif /* _XBT_CONTEXT_H */