diff options
Diffstat (limited to 'libgm2/libm2iso/m2rts.h')
-rw-r--r-- | libgm2/libm2iso/m2rts.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/libgm2/libm2iso/m2rts.h b/libgm2/libm2iso/m2rts.h index 1f3bc2d..97612c1 100644 --- a/libgm2/libm2iso/m2rts.h +++ b/libgm2/libm2iso/m2rts.h @@ -25,19 +25,25 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#define str(X) #X + typedef void (*proc_con) (int, char **, char **); typedef void (*proc_dep) (void); -extern "C" void M2RTS_RequestDependant (const char *modulename, const char *dependancy); -extern "C" void M2RTS_RegisterModule (const char *modulename, +extern "C" void m2iso_M2RTS_RequestDependant (const char *modulename, const char *libname, const char *dependancy); +extern "C" void m2iso_M2RTS_RegisterModule (const char *modulename, const char *libname, + proc_con init, proc_con fini, proc_dep dependencies); +extern "C" void m2pim_M2RTS_RegisterModule (const char *modulename, const char *libname, + proc_con init, proc_con fini, proc_dep dependencies); +extern "C" void M2RTS_RegisterModule (const char *modulename, const char *libname, proc_con init, proc_con fini, proc_dep dependencies); -extern "C" void _M2_M2RTS_init (void); +extern "C" void m2iso_M2_M2RTS_init (void); -extern "C" void M2RTS_ConstructModules (const char *, - int argc, char *argv[], char *envp[]); -extern "C" void M2RTS_Terminate (void); -extern "C" void M2RTS_DeconstructModules (void); +extern "C" void m2iso_M2RTS_ConstructModules (const char *modulename, const char *libname, + int argc, char *argv[], char *envp[]); +extern "C" void m2iso_M2RTS_Terminate (void); +extern "C" void m2iso_M2RTS_DeconstructModules (void); -extern "C" void M2RTS_HaltC (const char *filename, int line, - const char *functionname, const char *desc) - __attribute__ ((noreturn)); +extern "C" void m2iso_M2RTS_HaltC (const char *filename, int line, + const char *functionname, const char *desc) + __attribute__ ((noreturn)); |