aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/MemoryManager.h
blob: 757f5a7710fd9daaf1869c20a4d354bfaf71ff19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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