When the user chooses to activate an installed plugin, the following functions inside that plugin will be called (if implemented):
mumble_setMumbleInfo- Tells the plugin about which version of Mumble is about to load itmumble_getAPIVersion- Ask the plugin which API version it is usingmumble_registerAPIFunctions- Provides the Mumble-API functions to the pluginmumble_init- Actually initialize the plugin
Most notably: The plugin will always receive the Mumble-API function before mumble_init is called. Therefore the API can already be used in
mumble_init, if required.
When deactivating a plugin, mumble_shutdown will be called. Note that during this shutdown method it is still safe to use the Mumble-API. As soon as
this function returns though, the Mumble-API that was given to the plugin must be considered invalid and must no longer be used. This is important if
your plugin has spawned a separate thread that might end asynchronously.