Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'browser-plugin')
-rw-r--r--browser-plugin/glue.cpp30
-rw-r--r--browser-plugin/plugin.h2
-rw-r--r--browser-plugin/scriptable.h2
3 files changed, 17 insertions, 17 deletions
diff --git a/browser-plugin/glue.cpp b/browser-plugin/glue.cpp
index 0b989d4..e0a72ab 100644
--- a/browser-plugin/glue.cpp
+++ b/browser-plugin/glue.cpp
@@ -118,19 +118,19 @@ NP_Initialize (NPNetscapeFuncs *aNPNFuncs, NPPluginFuncs *aNPPFuncs)
aNPPFuncs->size = sizeof (NPPluginFuncs);
aNPPFuncs->version = (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR;
- aNPPFuncs->newp = NewNPP_NewProc (NPP_New);
- aNPPFuncs->getvalue = NewNPP_GetValueProc (NPP_GetValue);
- aNPPFuncs->setvalue = NewNPP_SetValueProc (NPP_SetValue);
- aNPPFuncs->setwindow = NewNPP_SetWindowProc (NPP_SetWindow);
- aNPPFuncs->destroy = NewNPP_DestroyProc (NPP_Destroy);
- aNPPFuncs->newstream = NewNPP_NewStreamProc (NPP_NewStream);
- aNPPFuncs->destroystream = NewNPP_DestroyStreamProc (NPP_DestroyStream);
- aNPPFuncs->asfile = NewNPP_StreamAsFileProc (NPP_StreamAsFile);
- aNPPFuncs->writeready = NewNPP_WriteReadyProc (NPP_WriteReady);
- aNPPFuncs->write = NewNPP_WriteProc (NPP_Write);
- aNPPFuncs->print = NewNPP_PrintProc (NPP_Print);
- aNPPFuncs->event = NewNPP_HandleEventProc (NPP_HandleEvent);
- aNPPFuncs->urlnotify = NewNPP_URLNotifyProc (NPP_URLNotify);
+ aNPPFuncs->newp = NPP_New;
+ aNPPFuncs->getvalue = NPP_GetValue;
+ aNPPFuncs->setvalue = NPP_SetValue;
+ aNPPFuncs->setwindow = NPP_SetWindow;
+ aNPPFuncs->destroy = NPP_Destroy;
+ aNPPFuncs->newstream = NPP_NewStream;
+ aNPPFuncs->destroystream = NPP_DestroyStream;
+ aNPPFuncs->asfile = NPP_StreamAsFile;
+ aNPPFuncs->writeready = NPP_WriteReady;
+ aNPPFuncs->write = NPP_Write;
+ aNPPFuncs->print = NPP_Print;
+ aNPPFuncs->event = NPP_HandleEvent;
+ aNPPFuncs->urlnotify = NPP_URLNotify;
return NPERR_NO_ERROR;
}
@@ -356,12 +356,12 @@ void NPN_ReloadPlugins (NPBool reloadPages)
JRIEnv* NPN_GetJavaEnv (void)
{
- return NPNFuncs.getJavaEnv ();
+ return (JRIEnv *)NPNFuncs.getJavaEnv ();
}
jref NPN_GetJavaPeer (NPP instance)
{
- return NPNFuncs.getJavaPeer (instance);
+ return (jref)NPNFuncs.getJavaPeer (instance);
}
NPError NPN_GetValue (NPP instance, NPNVariable variable, void *value)
diff --git a/browser-plugin/plugin.h b/browser-plugin/plugin.h
index 3f4ba03..75b60ee 100644
--- a/browser-plugin/plugin.h
+++ b/browser-plugin/plugin.h
@@ -22,7 +22,7 @@
#define __PLUGIN_H__
#include <npapi.h>
-#include <npupp.h>
+#include <npfunctions.h>
#include "evince-view.h"
diff --git a/browser-plugin/scriptable.h b/browser-plugin/scriptable.h
index 8ab0917..01912fa 100644
--- a/browser-plugin/scriptable.h
+++ b/browser-plugin/scriptable.h
@@ -22,7 +22,7 @@
#define __SCRIPTABLE_PLUGIN_H__
#include <npapi.h>
-#include <npupp.h>
+#include <npfunctions.h>
NPObject *AllocateScriptablePluginObject (NPP npp, NPClass *aClass);
NPObject *AllocateConstructablePluginObject (NPP npp, NPClass *aClass);