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; }
void* NPN_MemAlloc(uint32 size) { void * rv = NULL; rv = GetNPNFuncs().memalloc(size); return rv; }
void NPN_Status(NPP instance, const char *message) { GetNPNFuncs().status(instance, message); }
NPError NPN_RequestRead(NPStream* stream, NPByteRange* rangeList) { NPError rv = GetNPNFuncs().requestread(stream, rangeList); return rv; }
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; }
void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount, NPIdentifier *identifiers) { return GetNPNFuncs().getstringidentifiers(names, nameCount, identifiers); }
uint32 NPN_MemFlush(uint32 size) { uint32 rv = GetNPNFuncs().memflush(size); return rv; }
NPIdentifier NPN_GetIntIdentifier(int32_t intid) { return GetNPNFuncs().getintidentifier(intid); }
void NPN_ReloadPlugins(NPBool reloadPages) { GetNPNFuncs().reloadplugins(reloadPages); }
NPUTF8 *NPN_UTF8FromIdentifier(NPIdentifier identifier) { return GetNPNFuncs().utf8fromidentifier(identifier); }
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;