From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Winamp/MemoryManager.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Src/Winamp/MemoryManager.h (limited to 'Src/Winamp/MemoryManager.h') diff --git a/Src/Winamp/MemoryManager.h b/Src/Winamp/MemoryManager.h new file mode 100644 index 00000000..757f5a77 --- /dev/null +++ b/Src/Winamp/MemoryManager.h @@ -0,0 +1,23 @@ +#ifndef __MEMMGRAPI_H +#define __MEMMGRAPI_H + +#include + +class MemoryManager : public api_memmgr +{ +public: + static const char *getServiceName() { return "Memory Manager"; } + static const GUID getServiceGuid() { return memMgrApiServiceGuid; } +public: + void *Malloc(size_t size); + void Free(void *ptr); + void *Realloc(void *ptr, size_t newsize); + void MemChanged(void *ptr); + +protected: + RECVS_DISPATCH; +}; + +extern MemoryManager *memoryManager; + +#endif -- cgit