Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Also include the str.h header from main xbt.h
[simgrid.git] / include / gras / module.h
1
2 #ifndef GRAS_MODULE_H
3 #define GRAS_MODULE_H
4
5 #include <xbt.h>
6
7 /* Function users of module should use */
8 XBT_PUBLIC(void) gras_module_join(const char *name);
9 XBT_PUBLIC(void) gras_module_leave(const char *name);
10
11
12 /* Functions module implementor should use */
13 XBT_PUBLIC(void) gras_module_add(const char *name, unsigned int data_size, int *ID,
14                      void_f_void_t  init_f, void_f_void_t  exit_f,
15                      void_f_pvoid_t join_f, void_f_pvoid_t leave_f) ;
16
17
18 XBT_PUBLIC(void*)gras_moddata_by_id(unsigned int ID);
19
20
21 #endif /* GRAS_MODULE_H */