11 #define NP_LOADDS _System
19 #ifdef MOZ_WIDGET_ANDROID
29 typedef int32_t (*
NP_LOADDS NPP_WriteProcPtr)(
NPP instance,
NPStream* stream, int32_t offset, int32_t len,
void* buffer);
30 typedef void (*
NP_LOADDS NPP_StreamAsFileProcPtr)(
NPP instance,
NPStream* stream,
const char* fname);
32 typedef int16_t (*
NP_LOADDS NPP_HandleEventProcPtr)(
NPP instance,
void* event);
33 typedef void (*
NP_LOADDS NPP_URLNotifyProcPtr)(
NPP instance,
const char* url,
NPReason reason,
void* notifyData);
39 typedef void (*
NP_LOADDS NPP_LostFocusPtr)(
NPP instance);
40 typedef void (*
NP_LOADDS NPP_URLRedirectNotifyPtr)(
NPP instance,
const char* url, int32_t status,
void* notifyData);
41 typedef NPError (*
NP_LOADDS NPP_ClearSiteDataPtr)(
const char* site, uint64_t flags, uint64_t maxAge);
42 typedef char** (*
NP_LOADDS NPP_GetSitesWithDataPtr)(
void);
43 typedef void (*
NP_LOADDS NPP_DidCompositePtr)(
NPP instance);
58 typedef const char* (*NPN_UserAgentProcPtr)(
NPP instance);
59 typedef void* (*NPN_MemAllocProcPtr)(uint32_t
size);
63 typedef void* (*NPN_GetJavaEnvProcPtr)(void);
64 typedef void* (*NPN_GetJavaPeerProcPtr)(
NPP instance);
94 typedef NPError (*
NPN_GetAuthenticationInfoPtr)(
NPP npp,
const char *protocol,
const char *host, int32_t port,
const char *scheme,
const char *realm,
char **username, uint32_t *ulen,
char **password, uint32_t *plen);
205 kBPSupportedMIMETypesStructVers_1 = 1
207 typedef struct _BPSupportedMIMETypes
209 SInt32 structVersion;
212 } BPSupportedMIMETypes;
213 OSErr BP_GetSupportedMIMETypes(BPSupportedMIMETypes *mimeInfo,
UInt32 flags);
214 #define NP_GETMIMEDESCRIPTION_NAME "NP_GetMIMEDescription"
215 typedef const char* (*NP_GetMIMEDescriptionProcPtr)(void);
216 typedef OSErr (*BP_GetSupportedMIMETypesProcPtr)(BPSupportedMIMETypes*,
UInt32);
220 #define OSCALL WINAPI
223 #define OSCALL _System
231 #if defined(__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
232 #define NP_VISIBILITY_DEFAULT __attribute__((visibility("default")))
233 #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
234 #define NP_VISIBILITY_DEFAULT __global
236 #define NP_VISIBILITY_DEFAULT
238 #define NP_EXPORT(__type) NP_VISIBILITY_DEFAULT __type
241 #if defined(_WIN32) || defined (__OS2__)
247 typedef struct _NPPluginData {
250 char *pFileOpenTemplate;
252 char *pProductDescription;
253 unsigned long dwProductVersionMS;
254 unsigned long dwProductVersionLS;
256 typedef NPError (
OSCALL *NP_GetPluginDataFunc)(NPPluginData*);
265 typedef const char* (*NP_GetMIMEDescriptionFunc)(void);
280 typedef char* (*NP_GetPluginVersionFunc)(void);
281 NP_EXPORT(
char*) NP_GetPluginVersion(
void);
282 typedef const
char* (*NP_GetMIMEDescriptionFunc)(
void);
288 NP_EXPORT(
NPError) NP_GetEntryPoints(NPPluginFuncs* pFuncs);
290 #ifdef MOZ_WIDGET_ANDROID
294 typedef NPError (*NP_InitializeFunc)(NPNetscapeFuncs*, NPPluginFuncs*);
298 typedef NPError (*NP_ShutdownFunc)(void);