mirror of
https://github.com/wiiu-env/libmappedmemory.git
synced 2024-11-15 22:45:13 +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>
|
#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 MemoryMappingEffectiveToPhysical(uint32_t address);
|
||||||
|
|
||||||
extern uint32_t MemoryMappingPhysicalToEffective(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
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
#endif
|
#endif
|
@ -5,3 +5,8 @@ MemoryMappingFree
|
|||||||
MemoryMappingAlloc
|
MemoryMappingAlloc
|
||||||
MemoryMappingEffectiveToPhysical
|
MemoryMappingEffectiveToPhysical
|
||||||
MemoryMappingPhysicalToEffective
|
MemoryMappingPhysicalToEffective
|
||||||
|
|
||||||
|
:DATA
|
||||||
|
MEMAllocFromMappedMemory
|
||||||
|
MEMAllocFromMappedMemoryEx
|
||||||
|
MEMFreeToMappedMemory
|
Loading…
Reference in New Issue
Block a user