diff options
Diffstat (limited to 'browser-plugin/glue.cpp')
-rw-r--r-- | browser-plugin/glue.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/browser-plugin/glue.cpp b/browser-plugin/glue.cpp index e0a72ab..61f3880 100644 --- a/browser-plugin/glue.cpp +++ b/browser-plugin/glue.cpp @@ -150,7 +150,7 @@ NP_Shutdown (void) NPError NPP_NewStream (NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, - uint16* stype) + uint16_t* stype) { *stype = NP_ASFILEONLY; @@ -163,14 +163,14 @@ NPP_DestroyStream (NPP instance, NPStream* stream, NPReason reason) return NPERR_NO_ERROR; } -int32 +int32_t NPP_WriteReady (NPP instance, NPStream* stream) { return -1; } -int32 NPP_Write (NPP instance, NPStream* stream, - int32 offset, int32 len, void* buffer) +int32_t NPP_Write (NPP instance, NPStream* stream, + int32_t offset, int32_t len, void* buffer) { return -1; } @@ -190,7 +190,7 @@ void NPP_Print (NPP instance, NPPrint* platformPrint) { } -int16 NPP_HandleEvent (NPP instance, void* event) +int16_t NPP_HandleEvent (NPP instance, void* event) { return FALSE; } @@ -242,7 +242,7 @@ NPP_GetValue(NPP instance, NPPVariable variable, void *value) switch (variable) { case NPPVpluginNeedsXEmbed: - *(PRBool *)value = PR_TRUE; + *(bool *)value = TRUE; break; case NPPVpluginScriptableNPObject: *(NPObject **)value = plugin->GetScriptableNPObject (); @@ -329,7 +329,7 @@ const char* NPN_UserAgent(NPP instance) return NPNFuncs.uagent (instance); } -void* NPN_MemAlloc (uint32 size) +void* NPN_MemAlloc (uint32_t size) { return NPNFuncs.memalloc (size); } @@ -354,14 +354,14 @@ void NPN_ReloadPlugins (NPBool reloadPages) NPNFuncs.reloadplugins (reloadPages); } -JRIEnv* NPN_GetJavaEnv (void) +void* NPN_GetJavaEnv (void) { - return (JRIEnv *)NPNFuncs.getJavaEnv (); + return (void *)NPNFuncs.getJavaEnv (); } -jref NPN_GetJavaPeer (NPP instance) +void* NPN_GetJavaPeer (NPP instance) { - return (jref)NPNFuncs.getJavaPeer (instance); + return (void *)NPNFuncs.getJavaPeer (instance); } NPError NPN_GetValue (NPP instance, NPNVariable variable, void *value) @@ -502,18 +502,18 @@ void NPN_SetException (NPObject *obj, const NPUTF8 *message) NPNFuncs.setexception (obj, message); } -void* NPN_MemDup (const void *aMem, uint32 aLen) +void* NPN_MemDup (const void *aMem, uint32_t aLen) { - if (!aMem || !aLen) { - return NULL; - } + if (!aMem || !aLen) { + return NULL; + } - void *dup = NPN_MemAlloc (aLen); - if (!dup) { - return NULL; - } + void *dup = NPN_MemAlloc (aLen); + if (!dup) { + return NULL; + } - return memcpy (dup, aMem, aLen); + return memcpy (dup, aMem, aLen); } char* NPN_StrDup (const char *aString) |