X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=projects%2Fmozilla%2Fsupport%2Fnpunix.c;h=52096bc908f948d826e7e740b2e6929fac62c364;hb=28029c51a8f26ac22cc49ab3458620290d026724;hp=41ceff25a32eac47c87b641a7a8ba6dc3d390883;hpb=e783869a8dd6fcaf64dd8324c9938285f6b5c871;p=vlc diff --git a/projects/mozilla/support/npunix.c b/projects/mozilla/support/npunix.c index 41ceff25a3..52096bc908 100644 --- a/projects/mozilla/support/npunix.c +++ b/projects/mozilla/support/npunix.c @@ -100,6 +100,16 @@ NPN_Version(int* plugin_major, int* plugin_minor, *netscape_minor = gNetscapeFuncs.version & 0xFF; } +void +NPN_PluginThreadAsyncCall(NPP plugin, + void (*func)(void *), + void *userData) +{ +#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) >= 20) + return (*gNetscapeFuncs.pluginthreadasynccall)(plugin, func, userData); +#endif +} + NPError NPN_GetValue(NPP instance, NPNVariable variable, void *r_value) { @@ -846,6 +856,10 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs) gNetscapeFuncs.memfree = nsTable->memfree; gNetscapeFuncs.memflush = nsTable->memflush; gNetscapeFuncs.reloadplugins = nsTable->reloadplugins; +#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) >= 20) + gNetscapeFuncs.pluginthreadasynccall = + nsTable->pluginthreadasynccall; +#endif #ifdef OJI if( minor >= NPVERS_HAS_LIVECONNECT ) {