本文整理汇总了C++中NPNetscapeFuncs::newstream方法的典型用法代码示例。如果您正苦于以下问题:C++ NPNetscapeFuncs::newstream方法的具体用法?C++ NPNetscapeFuncs::newstream怎么用?C++ NPNetscapeFuncs::newstream使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NPNetscapeFuncs
的用法示例。
在下文中一共展示了NPNetscapeFuncs::newstream方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MyNPN_NewStream
static
NPError MyNPN_NewStream(NPP instance, NPMIMEType type,
const char* target, NPStream** stream)
{
NPError err;
DEB(ef, "-> NPN_NewStream( %x, %s, %s, 0x%x )\n", instance, type, target, stream);
err = gNetscapeFuncs.newstream( instance, type, target, stream );
DEB(ef, "<- NPN_NewStream = %d\n", err);
return err;
}
示例2: NPN_NewStream
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 = NPNFuncs.newstream(instance, type, target, stream);
else
rv = NPERR_INCOMPATIBLE_VERSION_ERROR;
return rv;
}
示例3: NPN_NewStream
NPError NPN_NewStream(NPP instance, NPMIMEType type, const char* target, NPStream** stream)
{
int navMinorVersion = NPNFuncs.version & 0xFF;
NPError rv = NPERR_NO_ERROR;
if(logger)
logger->logCall(action_npn_new_stream, (DWORD)instance, (DWORD)type, (DWORD)target, (DWORD)stream);
if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT )
rv = NPNFuncs.newstream(instance, type, target, stream);
else
rv = NPERR_INCOMPATIBLE_VERSION_ERROR;
if(logger)
logger->logReturn();
return rv;
}
示例4: NPN_NewStream
NPError NPN_NewStream(NPP instance, NPMIMEType type, const char* target, NPStream** stream)
{
return NPNFuncs.newstream(instance, type, target, stream);
}