webpg-npapi 0.6.1
webpgPluginPtr webpgPluginAPI::getPlugin ( )

Gets a reference to the plugin that was passed in when the object was created. If the plugin has already been released then this will throw a FB::script_error that will be translated into a javascript exception in the page.

Definition at line 173 of file webpgPluginAPI.cpp.

Referenced by init().

{
    webpgPluginPtr plugin(m_plugin.lock());
    if (!plugin) {
        throw FB::script_error("The plugin is invalid");
    }
    return plugin;
}
 All Classes Functions