⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 npupp.h

📁 独立flash播放器!This the developer’s wiki for Gnash and related projects. Content on these pages may not
💻 H
📖 第 1 页 / 共 2 页
字号:
// //   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.// // This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 3 of the License, or// (at your option) any later version.// // This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.// // You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA//#ifndef _NPUPP_H_#define _NPUPP_H_#if defined(__OS2__)#pragma pack(1)#endif#ifndef GENERATINGCFM#define GENERATINGCFM 0#endif#ifndef _NPAPI_H_#include "npapi.h"#endif#include "npruntime.h"#include "jri.h"/******************************************************************************************   plug-in function table macros 	        for each function in and out of the plugin API we define                    typedef NPP_FooUPP					#define NewNPP_FooProc					#define CallNPP_FooProc *******************************************************************************************//* NPP_Initialize */typedef void (* NP_LOADDS NPP_InitializeUPP)(void);#define NewNPP_InitializeProc(FUNC)		\		((NPP_InitializeUPP) (FUNC))#define CallNPP_InitializeProc(FUNC)		\		(*(FUNC))()/* NPP_Shutdown */typedef void (* NP_LOADDS NPP_ShutdownUPP)(void);#define NewNPP_ShutdownProc(FUNC)		\		((NPP_ShutdownUPP) (FUNC))#define CallNPP_ShutdownProc(FUNC)		\		(*(FUNC))()/* NPP_New */typedef NPError	(* NP_LOADDS NPP_NewUPP)(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved);#define NewNPP_NewProc(FUNC)		\		((NPP_NewUPP) (FUNC))#define CallNPP_NewProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7)		\		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5), (ARG6), (ARG7))/* NPP_Destroy */typedef NPError	(* NP_LOADDS NPP_DestroyUPP)(NPP instance, NPSavedData** save);#define NewNPP_DestroyProc(FUNC)		\		((NPP_DestroyUPP) (FUNC))#define CallNPP_DestroyProc(FUNC, ARG1, ARG2)		\		(*(FUNC))((ARG1), (ARG2))/* NPP_SetWindow */typedef NPError	(* NP_LOADDS NPP_SetWindowUPP)(NPP instance, NPWindow* window);#define NewNPP_SetWindowProc(FUNC)		\		((NPP_SetWindowUPP) (FUNC))#define CallNPP_SetWindowProc(FUNC, ARG1, ARG2)		\		(*(FUNC))((ARG1), (ARG2))/* NPP_NewStream */typedef NPError	(* NP_LOADDS NPP_NewStreamUPP)(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stype);#define NewNPP_NewStreamProc(FUNC)		\		((NPP_NewStreamUPP) (FUNC))#define CallNPP_NewStreamProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5) \		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5))/* NPP_DestroyStream */typedef NPError	(* NP_LOADDS NPP_DestroyStreamUPP)(NPP instance, NPStream* stream, NPReason reason);#define NewNPP_DestroyStreamProc(FUNC)		\		((NPP_DestroyStreamUPP) (FUNC))#define CallNPP_DestroyStreamProc(FUNC,  NPParg, NPStreamPtr, NPReasonArg)		\		(*(FUNC))((NPParg), (NPStreamPtr), (NPReasonArg))/* NPP_WriteReady */typedef int32 (* NP_LOADDS NPP_WriteReadyUPP)(NPP instance, NPStream* stream);#define NewNPP_WriteReadyProc(FUNC)		\		((NPP_WriteReadyUPP) (FUNC))#define CallNPP_WriteReadyProc(FUNC,  NPParg, NPStreamPtr)		\		(*(FUNC))((NPParg), (NPStreamPtr))/* NPP_Write */typedef int32 (* NP_LOADDS NPP_WriteUPP)(NPP instance, NPStream* stream, int32 offset, int32 len, void* buffer);#define NewNPP_WriteProc(FUNC)		\		((NPP_WriteUPP) (FUNC))#define CallNPP_WriteProc(FUNC,  NPParg, NPStreamPtr, offsetArg, lenArg, bufferPtr)		\		(*(FUNC))((NPParg), (NPStreamPtr), (offsetArg), (lenArg), (bufferPtr))/* NPP_StreamAsFile */typedef void (* NP_LOADDS NPP_StreamAsFileUPP)(NPP instance, NPStream* stream, const char* fname);#define NewNPP_StreamAsFileProc(FUNC)		\		((NPP_StreamAsFileUPP) (FUNC))#define CallNPP_StreamAsFileProc(FUNC,  ARG1, ARG2, ARG3)		\		(*(FUNC))((ARG1), (ARG2), (ARG3))/* NPP_Print */typedef void (* NP_LOADDS NPP_PrintUPP)(NPP instance, NPPrint* platformPrint);#define NewNPP_PrintProc(FUNC)		\		((NPP_PrintUPP) (FUNC))#define CallNPP_PrintProc(FUNC,  NPParg, NPPrintArg)		\		(*(FUNC))((NPParg), (NPPrintArg))/* NPP_HandleEvent */typedef int16 (* NP_LOADDS NPP_HandleEventUPP)(NPP instance, void* event);#define NewNPP_HandleEventProc(FUNC)		\		((NPP_HandleEventUPP) (FUNC))#define CallNPP_HandleEventProc(FUNC,  NPParg, voidPtr)		\		(*(FUNC))((NPParg), (voidPtr))/* NPP_URLNotify */typedef void (* NP_LOADDS NPP_URLNotifyUPP)(NPP instance, const char* url, NPReason reason, void* notifyData);#define NewNPP_URLNotifyProc(FUNC)		\		((NPP_URLNotifyUPP) (FUNC))#define CallNPP_URLNotifyProc(FUNC,  ARG1, ARG2, ARG3, ARG4)		\		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4))/* NPP_GetValue */typedef NPError	(* NP_LOADDS NPP_GetValueUPP)(NPP instance, NPPVariable variable, void *ret_alue);#define NewNPP_GetValueProc(FUNC)		\		((NPP_GetValueUPP) (FUNC))#define CallNPP_GetValueProc(FUNC, ARG1, ARG2, ARG3)		\		(*(FUNC))((ARG1), (ARG2), (ARG3))/* NPP_SetValue */typedef NPError	(* NP_LOADDS NPP_SetValueUPP)(NPP instance, NPNVariable variable, void *ret_alue);#define NewNPP_SetValueProc(FUNC)		\		((NPP_SetValueUPP) (FUNC))#define CallNPP_SetValueProc(FUNC, ARG1, ARG2, ARG3)		\		(*(FUNC))((ARG1), (ARG2), (ARG3))/* *  Netscape entry points *//* NPN_GetValue */typedef NPError	(* NP_LOADDS NPN_GetValueUPP)(NPP instance, NPNVariable variable, void *ret_alue);#define NewNPN_GetValueProc(FUNC)		\		((NPN_GetValueUPP) (FUNC))#define CallNPN_GetValueProc(FUNC, ARG1, ARG2, ARG3)		\		(*(FUNC))((ARG1), (ARG2), (ARG3))/* NPN_SetValue */typedef NPError	(* NP_LOADDS NPN_SetValueUPP)(NPP instance, NPPVariable variable, void *ret_alue);#define NewNPN_SetValueProc(FUNC)		\		((NPN_SetValueUPP) (FUNC))#define CallNPN_SetValueProc(FUNC, ARG1, ARG2, ARG3)		\		(*(FUNC))((ARG1), (ARG2), (ARG3))/* NPN_GetUrlNotify */typedef NPError	(* NP_LOADDS NPN_GetURLNotifyUPP)(NPP instance, const char* url, const char* window, void* notifyData);#define NewNPN_GetURLNotifyProc(FUNC)		\		((NPN_GetURLNotifyUPP) (FUNC))#define CallNPN_GetURLNotifyProc(FUNC, ARG1, ARG2, ARG3, ARG4)		\		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4))/* NPN_PostUrlNotify */typedef NPError (* NP_LOADDS NPN_PostURLNotifyUPP)(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file, void* notifyData);#define NewNPN_PostURLNotifyProc(FUNC)		\		((NPN_PostURLNotifyUPP) (FUNC))#define CallNPN_PostURLNotifyProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7) \		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5), (ARG6), (ARG7))/* NPN_GetUrl */typedef NPError	(* NP_LOADDS NPN_GetURLUPP)(NPP instance, const char* url, const char* window);#define NewNPN_GetURLProc(FUNC)		\		((NPN_GetURLUPP) (FUNC))#define CallNPN_GetURLProc(FUNC, ARG1, ARG2, ARG3)		\		(*(FUNC))((ARG1), (ARG2), (ARG3))/* NPN_PostUrl */typedef NPError (* NP_LOADDS NPN_PostURLUPP)(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file);#define NewNPN_PostURLProc(FUNC)		\		((NPN_PostURLUPP) (FUNC))#define CallNPN_PostURLProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6) \		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5), (ARG6))/* NPN_RequestRead */typedef NPError	(* NP_LOADDS NPN_RequestReadUPP)(NPStream* stream, NPByteRange* rangeList);#define NewNPN_RequestReadProc(FUNC)		\		((NPN_RequestReadUPP) (FUNC))#define CallNPN_RequestReadProc(FUNC, stream, range)		\		(*(FUNC))((stream), (range))/* NPN_NewStream */typedef NPError	(* NP_LOADDS NPN_NewStreamUPP)(NPP instance, NPMIMEType type, const char* window, NPStream** stream);#define NewNPN_NewStreamProc(FUNC)		\		((NPN_NewStreamUPP) (FUNC))#define CallNPN_NewStreamProc(FUNC, npp, type, window, stream)		\		(*(FUNC))((npp), (type), (window), (stream))/* NPN_Write */typedef int32 (* NP_LOADDS NPN_WriteUPP)(NPP instance, NPStream* stream, int32 len, void* buffer);#define NewNPN_WriteProc(FUNC)		\		((NPN_WriteUPP) (FUNC))#define CallNPN_WriteProc(FUNC, npp, stream, len, buffer)		\		(*(FUNC))((npp), (stream), (len), (buffer))/* NPN_DestroyStream */typedef NPError (* NP_LOADDS NPN_DestroyStreamUPP)(NPP instance, NPStream* stream, NPReason reason);#define NewNPN_DestroyStreamProc(FUNC)		\		((NPN_DestroyStreamUPP) (FUNC))#define CallNPN_DestroyStreamProc(FUNC, npp, stream, reason)		\		(*(FUNC))((npp), (stream), (reason))/* NPN_Status */typedef void (* NP_LOADDS NPN_StatusUPP)(NPP instance, const char* message);#define NewNPN_StatusProc(FUNC)		\		((NPN_StatusUPP) (FUNC))#define CallNPN_StatusProc(FUNC, npp, msg)		\		(*(FUNC))((npp), (msg))	/* NPN_UserAgent */typedef const char*	(* NP_LOADDS NPN_UserAgentUPP)(NPP instance);#define NewNPN_UserAgentProc(FUNC)              \                ((NPN_UserAgentUPP) (FUNC))#define CallNPN_UserAgentProc(FUNC, ARG1)               \                (*(FUNC))((ARG1))/* NPN_MemAlloc */typedef void* (* NP_LOADDS NPN_MemAllocUPP)(uint32 size);#define NewNPN_MemAllocProc(FUNC)		\		((NPN_MemAllocUPP) (FUNC))#define CallNPN_MemAllocProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))	/* NPN__MemFree */typedef void (* NP_LOADDS NPN_MemFreeUPP)(void* ptr);#define NewNPN_MemFreeProc(FUNC)		\		((NPN_MemFreeUPP) (FUNC))#define CallNPN_MemFreeProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))	/* NPN_MemFlush */typedef uint32 (* NP_LOADDS NPN_MemFlushUPP)(uint32 size);#define NewNPN_MemFlushProc(FUNC)		\		((NPN_MemFlushUPP) (FUNC))#define CallNPN_MemFlushProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))	/* NPN_ReloadPlugins */typedef void (* NP_LOADDS NPN_ReloadPluginsUPP)(NPBool reloadPages);#define NewNPN_ReloadPluginsProc(FUNC)		\		((NPN_ReloadPluginsUPP) (FUNC))#define CallNPN_ReloadPluginsProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))	/* NPN_GetJavaEnv */typedef JRIEnv* (* NP_LOADDS NPN_GetJavaEnvUPP)(void);#define NewNPN_GetJavaEnvProc(FUNC)		\		((NPN_GetJavaEnvUPP) (FUNC))#define CallNPN_GetJavaEnvProc(FUNC)		\		(*(FUNC))()	/* NPN_GetJavaPeer */typedef jref (* NP_LOADDS NPN_GetJavaPeerUPP)(NPP instance);#define NewNPN_GetJavaPeerProc(FUNC)		\		((NPN_GetJavaPeerUPP) (FUNC))#define CallNPN_GetJavaPeerProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))	/* NPN_InvalidateRect */typedef void (* NP_LOADDS NPN_InvalidateRectUPP)(NPP instance, NPRect *rect);#define NewNPN_InvalidateRectProc(FUNC)		\		((NPN_InvalidateRectUPP) (FUNC))#define CallNPN_InvalidateRectProc(FUNC, ARG1, ARG2)		\		(*(FUNC))((ARG1), (ARG2))	/* NPN_InvalidateRegion */typedef void (* NP_LOADDS NPN_InvalidateRegionUPP)(NPP instance, NPRegion region);#define NewNPN_InvalidateRegionProc(FUNC)		\		((NPN_InvalidateRegionUPP) (FUNC))#define CallNPN_InvalidateRegionProc(FUNC, ARG1, ARG2)		\		(*(FUNC))((ARG1), (ARG2))	/* NPN_ForceRedraw */typedef void (* NP_LOADDS NPN_ForceRedrawUPP)(NPP instance);#define NewNPN_ForceRedrawProc(FUNC)		\		((NPN_ForceRedrawUPP) (FUNC))#define CallNPN_ForceRedrawProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))	/* NPN_GetStringIdentifier */typedef NPIdentifier (* NP_LOADDS NPN_GetStringIdentifierUPP)(const NPUTF8* name);#define NewNPN_GetStringIdentifierProc(FUNC)		\		((NPN_GetStringIdentifierUPP) (FUNC))#define CallNPN_GetStringIdentifierProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))/* NPN_GetStringIdentifiers */typedef void (* NP_LOADDS NPN_GetStringIdentifiersUPP)(const NPUTF8** names,                                                 int32_t nameCount,                                                 NPIdentifier* identifiers);#define NewNPN_GetStringIdentifiersProc(FUNC)		\		((NPN_GetStringIdentifiersUPP) (FUNC))#define CallNPN_GetStringIdentifiersProc(FUNC, ARG1, ARG2, ARG3)		\		(*(FUNC))((ARG1), (ARG2), (ARG3))/* NPN_GetIntIdentifier */typedef NPIdentifier (* NP_LOADDS NPN_GetIntIdentifierUPP)(int32_t intid);#define NewNPN_GetIntIdentifierProc(FUNC)		\		((NPN_GetIntIdentifierUPP) (FUNC))#define CallNPN_GetIntIdentifierProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))/* NPN_IdentifierIsString */typedef bool (* NP_LOADDS NPN_IdentifierIsStringUPP)(NPIdentifier identifier);#define NewNPN_IdentifierIsStringProc(FUNC)		\		((NPN_IdentifierIsStringUPP) (FUNC))#define CallNPN_IdentifierIsStringProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))/* NPN_UTF8FromIdentifier */typedef NPUTF8* (* NP_LOADDS NPN_UTF8FromIdentifierUPP)(NPIdentifier identifier);#define NewNPN_UTF8FromIdentifierProc(FUNC)		\		((NPN_UTF8FromIdentifierUPP) (FUNC))#define CallNPN_UTF8FromIdentifierProc(FUNC, ARG1)		\		(*(FUNC))((ARG1))/* NPN_IntFromIdentifier */typedef int32_t (* NP_LOADDS NPN_IntFromIdentifierUPP)(NPIdentifier identifier);#define NewNPN_IntFromIdentifierProc(FUNC)		\		((NPN_IntFromIdentifierUPP) (FUNC))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -