mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01:00
coreinit: add OSDynLoad_AddNotifyCallback and OSDynLoad_DelNotifyCallback
This commit is contained in:
parent
67d9211764
commit
3cb31a4cec
@ -67,6 +67,10 @@ WUT_CHECK_OFFSET(OSDynLoad_NotifyData, 0x20, readOffset);
|
||||
WUT_CHECK_OFFSET(OSDynLoad_NotifyData, 0x24, readSize);
|
||||
WUT_CHECK_SIZE(OSDynLoad_NotifyData, 0x28);
|
||||
|
||||
typedef void (*OSDynLoadNotifyFunc)(OSDynLoad_Module module,
|
||||
void *userContext,
|
||||
int isLoad,
|
||||
OSDynLoad_NotifyData *infos);
|
||||
|
||||
/**
|
||||
* Load a module.
|
||||
@ -170,6 +174,20 @@ OSDynLoad_GetRPLInfo(uint32_t first,
|
||||
OSDynLoad_NotifyData *outInfos);
|
||||
|
||||
|
||||
/**
|
||||
* Registers a callback that's called whenever a new .rpl is loaded
|
||||
**/
|
||||
OSDynLoad_Error
|
||||
OSDynLoad_AddNotifyCallback(OSDynLoadNotifyFunc notifyFn,
|
||||
void *userContext);
|
||||
|
||||
/**
|
||||
* Registers a callback that's called whenever a .rpl is unloaded
|
||||
**/
|
||||
OSDynLoad_Error
|
||||
OSDynLoad_DelNotifyCallback(OSDynLoadNotifyFunc notifyFn,
|
||||
void *userContext);
|
||||
|
||||
/**
|
||||
* The prototype for an RPL entry point.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user