coreinit: Add OSDynLoad_{Get,Set}TLSAllocator.

This commit is contained in:
James Benton 2018-05-30 13:10:57 +01:00
parent 65f03c5e62
commit 3c763b7a08
2 changed files with 20 additions and 2 deletions

View File

@ -93,11 +93,13 @@ OSGetUPID
DisassemblePPCRange
// coreinit/dynload.h
OSDynLoad_SetAllocator
OSDynLoad_GetAllocator
OSDynLoad_Acquire
OSDynLoad_FindExport
OSDynLoad_Release
OSDynLoad_SetAllocator
OSDynLoad_GetAllocator
OSDynLoad_SetTLSAllocator
OSDynLoad_GetTLSAllocator
// coreinit/event.h
OSInitEvent

View File

@ -81,6 +81,22 @@ OSDynLoad_Error
OSDynLoad_GetAllocator(OSDynLoadAllocFn *outAllocFn,
OSDynLoadFreeFn *outFreeFn);
/**
* Set the allocator functions to use for thread local storage.
*/
OSDynLoad_Error
OSDynLoad_SetTLSAllocator(OSDynLoadAllocFn allocFn,
OSDynLoadFreeFn freeFn);
/**
* Get the allocator functions used for thread local storage.
*/
OSDynLoad_Error
OSDynLoad_GetTLSAllocator(OSDynLoadAllocFn *outAllocFn,
OSDynLoadFreeFn *outFreeFn);
#ifdef __cplusplus
}
#endif