1
0

MemoryManager.h 475 B

1234567891011121314151617181920212223
  1. #ifndef __MEMMGRAPI_H
  2. #define __MEMMGRAPI_H
  3. #include <api/memmgr/api_memmgr.h>
  4. class MemoryManager : public api_memmgr
  5. {
  6. public:
  7. static const char *getServiceName() { return "Memory Manager"; }
  8. static const GUID getServiceGuid() { return memMgrApiServiceGuid; }
  9. public:
  10. void *Malloc(size_t size);
  11. void Free(void *ptr);
  12. void *Realloc(void *ptr, size_t newsize);
  13. void MemChanged(void *ptr);
  14. protected:
  15. RECVS_DISPATCH;
  16. };
  17. extern MemoryManager *memoryManager;
  18. #endif