Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
these are variables, not functions. Use the right macro
[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,
14                                  int *ID, void_f_void_t init_f,
15                                  void_f_void_t exit_f, void_f_pvoid_t join_f,
16                                  void_f_pvoid_t leave_f);
17
18
19 XBT_PUBLIC(void *) gras_moddata_by_id(unsigned int ID);
20
21
22 #endif /* GRAS_MODULE_H */