void NPN_ForceRedraw(NPP instance)
{
  GetNPNFuncs().forceredraw(instance);
}
NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name)
{
  return GetNPNFuncs().getstringidentifier(name);
}
void NPN_InvalidateRect(NPP instance, NPRect *invalidRect)
{
  GetNPNFuncs().invalidaterect(instance, invalidRect);
}
void NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion)
{
  GetNPNFuncs().invalidateregion(instance, invalidRegion);
}
NPError NPN_GetURL(NPP instance, const char *url, const char *target)
{
  NPError rv = GetNPNFuncs().geturl(instance, url, target);
  return rv;
}
NPError NPN_SetValue(NPP instance, NPPVariable variable, void *value)
{
  NPError rv = GetNPNFuncs().setvalue(instance, variable, value);
  return rv;
}
void NPN_MemFree(void* ptr)
{
  GetNPNFuncs().memfree(ptr);
}
bool NPN_IdentifierIsString(NPIdentifier identifier)
{
  return GetNPNFuncs().identifierisstring(identifier);
}
const char* NPN_UserAgent(NPP instance)
{
  const char * rv = NULL;
  rv = GetNPNFuncs().uagent(instance);
  return rv;
}
Example #10
0
void* NPN_MemAlloc(uint32 size)
{
  void * rv = NULL;
  rv = GetNPNFuncs().memalloc(size);
  return rv;
}
Example #11
0
void NPN_Status(NPP instance, const char *message)
{
  GetNPNFuncs().status(instance, message);
}
Example #12
0
NPError NPN_RequestRead(NPStream* stream, NPByteRange* rangeList)
{
  NPError rv = GetNPNFuncs().requestread(stream, rangeList);
  return rv;
}
Example #13
0
NPError NPN_PostURL(NPP instance, const char* url, const char* window,
                    uint32 len, const char* buf, NPBool file)
{
  NPError rv = GetNPNFuncs().posturl(instance, url, window, len, buf, file);
  return rv;
} 
Example #14
0
void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount,
                              NPIdentifier *identifiers)
{
  return GetNPNFuncs().getstringidentifiers(names, nameCount, identifiers);
}
Example #15
0
uint32 NPN_MemFlush(uint32 size)
{
  uint32 rv = GetNPNFuncs().memflush(size);
  return rv;
}
Example #16
0
NPIdentifier NPN_GetIntIdentifier(int32_t intid)
{
  return GetNPNFuncs().getintidentifier(intid);
}
Example #17
0
void NPN_ReloadPlugins(NPBool reloadPages)
{
  GetNPNFuncs().reloadplugins(reloadPages);
}
Example #18
0
NPUTF8 *NPN_UTF8FromIdentifier(NPIdentifier identifier)
{
  return GetNPNFuncs().utf8fromidentifier(identifier);
}
Example #19
0
	void    NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname);
	void    NPP_Print(NPP instance, NPPrint* platformPrint);
	int16   NPP_HandleEvent(NPP instance, void* event);
	void    NPP_URLNotify(NPP instance, const char* URL, NPReason reason, void* notifyData);
	NPError NP_GetValue(void*, NPPVariable variable, void *value);
	NPError	NPP_GetValue(NPP instance, NPPVariable variable, void *value);
	NPError	NPP_SetValue(NPP instance, NPNVariable variable, void *value);
};

NPError WINAPI NP_Initialize(NPNetscapeFuncs* browserFuncs NPINIT_ARG(pluginFuncs))
{

	Debug::println("NP_Initialize");

	SetNPNFuncs(browserFuncs);
	browser = &GetNPNFuncs();
	return NPERR_NO_ERROR;
}

NPError WINAPI NP_GetEntryPoints(NPPluginFuncs* pluginFuncs)
{
	Debug::println("NP_GetEntryPoints");
	if (pluginFuncs->size < sizeof(NPPluginFuncs)) {
		return NPERR_INVALID_FUNCTABLE_ERROR;
	}

	pluginFuncs->version = (NP_VERSION_MAJOR << 8) | NP_VERSION_MINOR;
	pluginFuncs->newp          = NPP_New;
	pluginFuncs->destroy       = NPP_Destroy;
	pluginFuncs->setwindow     = NPP_SetWindow;
	pluginFuncs->newstream     = NPP_NewStream;