diff options
Diffstat (limited to 'gcc/m2/mc-boot/GM2RTS.h')
-rw-r--r-- | gcc/m2/mc-boot/GM2RTS.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/m2/mc-boot/GM2RTS.h b/gcc/m2/mc-boot/GM2RTS.h index 53428b8fdec..b8c950ad198 100644 --- a/gcc/m2/mc-boot/GM2RTS.h +++ b/gcc/m2/mc-boot/GM2RTS.h @@ -48,6 +48,28 @@ extern "C" { # define EXTERN extern # endif +typedef struct M2RTS_ArgCVEnvP_p M2RTS_ArgCVEnvP; + +typedef void (*M2RTS_ArgCVEnvP_t) (int, void *, void *); +struct M2RTS_ArgCVEnvP_p { M2RTS_ArgCVEnvP_t proc; }; + +EXTERN void M2RTS_ConstructModules (void * applicationmodule, int argc, void * argv, void * envp); +EXTERN void M2RTS_DeconstructModules (void * applicationmodule, int argc, void * argv, void * envp); + +/* + RegisterModule - adds module name to the list of outstanding + modules which need to have their dependencies + explored to determine initialization order. +*/ + +EXTERN void M2RTS_RegisterModule (void * name, M2RTS_ArgCVEnvP init, M2RTS_ArgCVEnvP fini, PROC dependencies); + +/* + RequestDependant - used to specify that modulename is dependant upon + module dependantmodule. +*/ + +EXTERN void M2RTS_RequestDependant (void * modulename, void * dependantmodule); /* ExecuteTerminationProcedures - calls each installed termination |