Kaydet (Commit) 23b1ba96 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Fix npshell build on Windows.

üst ef160221
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
#include "boost/scoped_array.hpp" #include "boost/scoped_array.hpp"
#include "tools/pathutils.hxx" #include "tools/pathutils.hxx"
#include "npapi.h" #include <npsdk/npapi.h>
#include "npshell.hxx" #include "npshell.hxx"
#include "so_env.hxx" #include "so_env.hxx"
#include "so_msg.hxx" #include "so_msg.hxx"
...@@ -361,7 +361,7 @@ MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII ":odp:OpenDocument Presentation;" ...@@ -361,7 +361,7 @@ MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII ":odp:OpenDocument Presentation;"
MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII ":otp:OpenDocument Presentation Template;" MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII ":otp:OpenDocument Presentation Template;"
MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII ":odf:OpenDocument Formula;" ); MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII ":odf:OpenDocument Formula;" );
SAL_DLLPUBLIC_EXPORT char* char*
NPP_GetMIMEDescription(void) NPP_GetMIMEDescription(void)
{ {
debug_fprintf(NSP_LOG_APPEND, "print by Netscape Plugin, NPP_GetMIMEDescription:%s.\n", pMimeTypes); debug_fprintf(NSP_LOG_APPEND, "print by Netscape Plugin, NPP_GetMIMEDescription:%s.\n", pMimeTypes);
...@@ -435,7 +435,7 @@ NPP_Shutdown(void) ...@@ -435,7 +435,7 @@ NPP_Shutdown(void)
#endif #endif
} }
SAL_DLLPUBLIC_EXPORT NPError NPError NP_LOADDS
NPP_New(NPMIMEType pluginType, NPP_New(NPMIMEType pluginType,
NPP instance, NPP instance,
uint16_t mode, uint16_t mode,
...@@ -487,7 +487,7 @@ NPP_New(NPMIMEType pluginType, ...@@ -487,7 +487,7 @@ NPP_New(NPMIMEType pluginType,
return NPERR_NO_ERROR; return NPERR_NO_ERROR;
} }
SAL_DLLPUBLIC_EXPORT NPError NPError NP_LOADDS
NPP_Destroy(NPP instance, NPSavedData** /*save*/) NPP_Destroy(NPP instance, NPSavedData** /*save*/)
{ {
debug_fprintf(NSP_LOG_APPEND, "print by Nsplugin, enter NPP_Destroy.\n"); debug_fprintf(NSP_LOG_APPEND, "print by Nsplugin, enter NPP_Destroy.\n");
...@@ -532,7 +532,7 @@ NPP_Destroy(NPP instance, NPSavedData** /*save*/) ...@@ -532,7 +532,7 @@ NPP_Destroy(NPP instance, NPSavedData** /*save*/)
} }
SAL_DLLPUBLIC_EXPORT NPError NPError NP_LOADDS
NPP_SetWindow(NPP instance, NPWindow* window) NPP_SetWindow(NPP instance, NPWindow* window)
{ {
PluginInstance* This; PluginInstance* This;
...@@ -626,7 +626,7 @@ NPP_SetWindow(NPP instance, NPWindow* window) ...@@ -626,7 +626,7 @@ NPP_SetWindow(NPP instance, NPWindow* window)
} }
SAL_DLLPUBLIC_EXPORT NPError NPError NP_LOADDS
NPP_NewStream(NPP instance, NPP_NewStream(NPP instance,
NPMIMEType /*type*/, NPMIMEType /*type*/,
NPStream* /*stream*/, NPStream* /*stream*/,
...@@ -648,21 +648,21 @@ int32_t STREAMBUFSIZE = 0X0FFFFFFF; ...@@ -648,21 +648,21 @@ int32_t STREAMBUFSIZE = 0X0FFFFFFF;
* mode so we can take any size stream in our * mode so we can take any size stream in our
* write call (since we ignore it) */ * write call (since we ignore it) */
SAL_DLLPUBLIC_EXPORT int32_t int32_t NP_LOADDS
NPP_WriteReady(NPP /*instance*/, NPStream* /*stream*/) NPP_WriteReady(NPP /*instance*/, NPStream* /*stream*/)
{ {
return STREAMBUFSIZE; return STREAMBUFSIZE;
} }
SAL_DLLPUBLIC_EXPORT int32_t int32_t NP_LOADDS
NPP_Write(NPP /*instance*/, NPStream* /*stream*/, int32_t /*offset*/, int32_t len, void* /*buffer*/) NPP_Write(NPP /*instance*/, NPStream* /*stream*/, int32_t /*offset*/, int32_t len, void* /*buffer*/)
{ {
return len; /* The number of bytes accepted */ return len; /* The number of bytes accepted */
} }
SAL_DLLPUBLIC_EXPORT NPError NPError NP_LOADDS
NPP_DestroyStream(NPP instance, NPStream* /*stream*/, NPError /*reason*/) NPP_DestroyStream(NPP instance, NPStream* /*stream*/, NPError /*reason*/)
{ {
if (instance == NULL) if (instance == NULL)
...@@ -671,7 +671,7 @@ NPP_DestroyStream(NPP instance, NPStream* /*stream*/, NPError /*reason*/) ...@@ -671,7 +671,7 @@ NPP_DestroyStream(NPP instance, NPStream* /*stream*/, NPError /*reason*/)
} }
// save fname to another file with the original file name // save fname to another file with the original file name
SAL_DLLPUBLIC_EXPORT void void NP_LOADDS
NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname) NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
{ {
debug_fprintf(NSP_LOG_APPEND, "Into Stream\n"); debug_fprintf(NSP_LOG_APPEND, "Into Stream\n");
...@@ -812,14 +812,14 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname) ...@@ -812,14 +812,14 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
debug_fprintf(NSP_LOG_APPEND, "NPP_StreamAsFile send SO_SET_WINDOW return failure \n"); debug_fprintf(NSP_LOG_APPEND, "NPP_StreamAsFile send SO_SET_WINDOW return failure \n");
} }
SAL_DLLPUBLIC_EXPORT void void NP_LOADDS
NPP_URLNotify(NPP /*instance*/, const char* /*url*/, NPP_URLNotify(NPP /*instance*/, const char* /*url*/,
NPReason /*reason*/, void* /*notifyData*/) NPReason /*reason*/, void* /*notifyData*/)
{ {
} }
SAL_DLLPUBLIC_EXPORT void void NP_LOADDS
NPP_Print(NPP instance, NPPrint* printInfo) NPP_Print(NPP instance, NPPrint* printInfo)
{ {
if(printInfo == NULL) if(printInfo == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment