PS2SDK
PS2 Homebrew Libraries
xloadcore.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
16 #ifndef __XLOADCORE_H__
17 #define __XLOADCORE_H__
18 
19 #include <loadcore.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #define xloadcore_IMPORTS_start DECLARE_IMPORT_TABLE(loadcore, 1, 3)
26 #define xloadcore_IMPORTS_end END_IMPORT_TABLE
27 
28 // The following was introduced in export version 1.3 (around SDK 2.3.4)
29 extern void ApplyElfRelSection(void *buffer, const void *module, int element_count);
30 extern void CopyModInfo(FileInfo_t *ModuleInfo, ModuleInfo_t *ModInfo);
31 extern int SetRebootTimeLibraryHandlingMode(struct irx_export_table *exports, int mode);
32 
33 #define I_ApplyElfRelSection DECLARE_IMPORT(25, ApplyElfRelSection)
34 #define I_CopyModInfo DECLARE_IMPORT(26, CopyModInfo)
35 #define I_SetRebootTimeLibraryHandlingMode DECLARE_IMPORT(27, SetRebootTimeLibraryHandlingMode)
36 
37 // For backwards compatibility
38 #define InitLoadedModInfo(...) CopyModInfo(__VA_ARGS__)
39 #define I_InitLoadedModInfo I_CopyModInfo
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif /* __XLOADCORE_H__ */
loadcore.h
ModInfo
Definition: udnl.c:626
_FileInfo
Definition: loadcore.h:56
irx_export_table
Definition: irx.h:90
ModuleInfo
Definition: udnl.c:398
_ModuleInfo
Definition: loadcore.h:31