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/Wasabi/api/syscb/callbacks/gccb.h
2024-09-24 14:54:57 +02:00

32 lines
651 B
C++

#ifndef _GCCB_H
#define _GCCB_H
#include "syscbi.h"
namespace GarbageCollectCallback {
enum {
GARBAGECOLLECT=1,
};
};
#define GARBAGECOLLECTCALLBACK_PARENT SysCallbackI
class GarbageCollectCallbackI : public GARBAGECOLLECTCALLBACK_PARENT {
protected:
GarbageCollectCallbackI() {}
public:
virtual int gccb_onGarbageCollect() { return 0; }
private:
virtual FOURCC syscb_getEventType() { return SysCallback::GC; }
virtual int syscb_notify(int msg, intptr_t param1=0, intptr_t param2=0) {
switch (msg) {
case GarbageCollectCallback::GARBAGECOLLECT:
return gccb_onGarbageCollect();
}
return 0;
}
};
#endif