3 /* virtu[alization] - speciafic parts for each OS and for SG */
5 /* module's public interface exported within GRAS, but not to end user. */
7 /* Copyright (c) 2004 Martin Quinson. All rights reserved. */
9 /* This program is free software; you can redistribute it and/or modify it
10 * under the terms of the license (GNU LGPL) which comes with this package. */
12 #ifndef GRAS_VIRTU_INTERFACE_H
13 #define GRAS_VIRTU_INTERFACE_H
15 #include "xbt/sysdep.h"
18 #include "gras/virtu.h"
19 #include "gras/process.h"
21 /* declare a new process specific data
22 (used by gras_<module>_register to make sure that gras_process_init will create it) */
24 typedef void* (pvoid_f_void_t)(void); /* FIXME: find a better place for it */
26 int gras_procdata_add(const char *name, pvoid_f_void_t creator,void_f_pvoid_t destructor);
27 void *gras_libdata_by_name(const char *name);
28 void *gras_libdata_by_id(int id);
30 #endif /* GRAS_VIRTU_INTERFACE_H */