mirror of
https://github.com/wiiu-env/libmappedmemory.git
synced 2024-11-22 09:49:19 +01:00
Replace alloc/free function export by data exports as function pointers.
This commit is contained in:
parent
640e8935c1
commit
e27ca247ae
@ -7,14 +7,14 @@ extern "C"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
extern void MemoryMappingFree(void* ptr);
|
||||
|
||||
extern void* MemoryMappingAlloc(uint32_t size, uint32_t align);
|
||||
|
||||
extern uint32_t MemoryMappingEffectiveToPhysical(uint32_t address);
|
||||
|
||||
extern uint32_t MemoryMappingPhysicalToEffective(uint32_t address);
|
||||
|
||||
extern void *(*MEMAllocFromMappedMemory)(uint32_t size);
|
||||
extern void *(*MEMAllocFromMappedMemoryEx)(uint32_t size, int32_t alignment);
|
||||
extern void (*MEMFreeToMappedMemory)(void *ptr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
@ -5,3 +5,8 @@ MemoryMappingFree
|
||||
MemoryMappingAlloc
|
||||
MemoryMappingEffectiveToPhysical
|
||||
MemoryMappingPhysicalToEffective
|
||||
|
||||
:DATA
|
||||
MEMAllocFromMappedMemory
|
||||
MEMAllocFromMappedMemoryEx
|
||||
MEMFreeToMappedMemory
|
Loading…
Reference in New Issue
Block a user