Add hooks to be used by users' modules
Add hooks like before_kara
before the kara is loaded to be played. The user can specify actions to be done by using a custom module.
Hooks are called by commands, e.g. from functions only from the commands.h
file (because it's easier and more maintenable).
Actual hooks are the following:
-
kara_load
when a kara is loaded (on commandsplay
,playid
,next
andprevious
) -
queue_begin
when lektord is stopped and will load a kara (on commandsplay
andplayid
)
Modification effectuée par Kubat