Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
23
Src/Winamp/MemoryManager.h
Normal file
23
Src/Winamp/MemoryManager.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue