mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-18 22:05:51 +01:00
30 lines
722 B
C++
30 lines
722 B
C++
#ifndef _SVC_SCRIPTOBJECT_H
|
|
#define _SVC_SCRIPTOBJECT_H
|
|
|
|
#include <bfc/dispatch.h>
|
|
#include <api/service/services.h>
|
|
|
|
class ScriptObjectController;
|
|
|
|
class svc_scriptObject : public Dispatchable {
|
|
public:
|
|
static FOURCC getServiceType() { return WaSvc::SCRIPTOBJECT; }
|
|
ScriptObjectController *getController(int n);
|
|
void onRegisterClasses(ScriptObjectController *rootController);
|
|
|
|
enum {
|
|
GETCONTROLLER=10,
|
|
ONREGISTER=20,
|
|
};
|
|
};
|
|
|
|
inline ScriptObjectController *svc_scriptObject::getController(int n) {
|
|
return _call(GETCONTROLLER, (ScriptObjectController *)0, n);
|
|
}
|
|
|
|
inline void svc_scriptObject::onRegisterClasses(ScriptObjectController *rootController) {
|
|
_voidcall(ONREGISTER, rootController);
|
|
}
|
|
|
|
#endif
|