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

git-svn-id: svn://10.0.0.236/trunk@107996 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
av%netscape.com 2001-11-14 01:47:28 +00:00
parent 4d7fae424c
commit 899918a8be

View File

@ -40,6 +40,17 @@
#include "npplat.h"
struct nsPluginCreateData
{
NPP instance;
NPMIMEType type;
uint16 mode;
int16 argc;
char** argn;
char** argv;
NPSavedData* saved;
};
class nsPluginInstanceBase
{
public:
@ -70,7 +81,7 @@ public:
// functions that should be implemented for each specific plugin
// creation and destruction of the object of the derived class
nsPluginInstanceBase * NS_NewPluginInstance(NPP aInstance);
nsPluginInstanceBase * NS_NewPluginInstance(nsPluginCreateData * aCreateDataStruct);
void NS_DestroyPluginInstance(nsPluginInstanceBase * aPlugin);
// global plugin initialization and shutdown