コード例 #1
0
ファイル: wrapper.c プロジェクト: vishesh/kde-baseapps
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
0
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
0
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
0
NPError NPN_NewStream(NPP instance, NPMIMEType type, const char* target, NPStream** stream)
{
  return NPNFuncs.newstream(instance, type, target, stream);
}