109973 -- passing plugin creation parameters to the plugin instance, not part of the build

git-svn-id: svn://10.0.0.236/trunk@107999 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
av%netscape.com
2001-11-14 01:54:11 +00:00
parent d3a1b4c5f8
commit feeeb9c6e5
7 changed files with 41 additions and 13 deletions

View File

@@ -58,9 +58,12 @@ void NS_PluginShutdown()
//
// construction and destruction of our plugin instance object
//
nsPluginInstanceBase * NS_NewPluginInstance(NPP aInstance)
nsPluginInstanceBase * NS_NewPluginInstance(nsPluginCreateData * aCreateDataStruct)
{
nsPluginInstance * plugin = new nsPluginInstance(aInstance);
if(!aCreateDataStruct)
return NULL;
nsPluginInstance * plugin = new nsPluginInstance(aCreateDataStruct->instance);
return plugin;
}