mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-04 19:41:02 -05:00
29 lines
595 B
C++
29 lines
595 B
C++
#include "ScriptObjectService.h"
|
|
#include <api/script/objects/rootobjcontroller.h>
|
|
#include "STimer.h"
|
|
|
|
ScriptObjectController *script_root=0;
|
|
extern TimerScriptController _timerController;
|
|
|
|
|
|
ScriptObjectController *ScriptObjectService::getController(int n)
|
|
{
|
|
if (n == 0)
|
|
return &_timerController;
|
|
return 0;
|
|
}
|
|
|
|
|
|
void ScriptObjectService::onRegisterClasses(ScriptObjectController *rootController)
|
|
{
|
|
script_root = rootController;
|
|
}
|
|
|
|
|
|
|
|
#define CBCLASS ScriptObjectService
|
|
START_DISPATCH;
|
|
CB(GETCONTROLLER, getController);
|
|
VCB(ONREGISTER, onRegisterClasses);
|
|
END_DISPATCH;
|
|
#undef CBCLASS
|