winamp/Src/Wasabi/api/syscb/callbacks/gccb.h

32 lines
651 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#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