Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Winamp/MemoryManager.h

24 lines
475 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#ifndef __MEMMGRAPI_H
#define __MEMMGRAPI_H
#include <api/memmgr/api_memmgr.h>
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