NPError NPN_NewStream(NPP instance, NPMIMEType type, const char *window, NPStream** stream_ptr) { return CallNPN_NewStreamProc(gNetscapeFuncs.newstream, instance, type, window, stream_ptr); }
NPError NPN_NewStream(NPP instance, NPMIMEType type, const char* target, NPStream** stream) { int navMinorVersion = NPNFuncs.version & 0xFF; NPError rv = NPERR_NO_ERROR; if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT ) rv = CallNPN_NewStreamProc(NPNFuncs.newstream, instance, type, target, stream); else rv = NPERR_INCOMPATIBLE_VERSION_ERROR; return rv; }