int error = hw_SetTimerAdapter(hwPluginBase *self, ULONG flags, struct hwTagList *tags);
HWPLUG_CAPS_TIMERADAPTERcapability flag set. This function must only be called from inside your RequirePlugin() implementation. If this function succeeds, Hollywood's inbuilt timer handler will be completely replaced by the timer handler provided by your plugin and Hollywood will call into your plugin whenever it needs to work with timers. In the first parameter, you have to pass a pointer to the
hwPluginBasethat Hollywood has passed to your plugin's InitPlugin() function. The second parameter must be set to a combination of flags. The following flags are currently defined:
HWSTAFLAGS_PERMANENTis set, all subsequent calls to
hw_SetTimerAdapter()will fail and your timer adapter will persist.
See Timer adapter plugins for information on how to write timer adapter plugins.
hwPluginBasepointer passed to InitPlugin()