Bugzilla – Bug 788
Plugins documentation should include Folder/Plugin.pm stuff
Last modified: 2008-08-18 10:53:01 UTC
You can build standalone plugins that have more than one file by creating a folder with a file called Plugin.pm in the plugins directory. Details on this trick should be added to the plugins documentation.
other bits missing from plugin docs: - how you can add a plugin to the Internet Radio, or Games submenu via addMenus(). - player plugins (isClient param). - shutdownPlugin() usage I can add docs for the first two, but I am out of the loop on teh intended use of shutdownPlugin.
shutdownPlugin() is a complement to initPlugin(). It is meant for any final cleanup necessary at SlimServer shutdown. This is particularly useful in cases where external processes need to be informed or resources need to be freed when the plugin is shut down.
Created attachment 360 [details] a few updates this updates a few changes to the plugin API, including adding menus, the new getDisplayName(), initPlugin(), shutdownPlugin(), defaultMap() and enabled()
Please commit this patch! Thanks!
committed r2696