A *lot* of the APIs are not covered in any tutorial I've read. "Use the
source" -- read Slim/Control/Request.pm. addDispatch() is one of the
better documented calls, IMO. I've used it for two main purposes:
1) "wrapping" existing commands. For instance, BottleRocket uses
addDispatch() to have its code run before some commands that can turn a
player on.
2) creating new commands. For instance, AllQuiet uses addDispatch() to
make a new command available through CLI, JSON, HTTP, etc.

-Peter


-- 
peterw

http://www.tux.org/~peterw/
free plugins: http://www.tux.org/~peterw/#slim
AllQuiet BlankSaver BottleRocket FuzzyTime SaverSwitcher SleepFade
StatusFirst VolumeLock
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=37763

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to