summaryrefslogtreecommitdiff
path: root/np_sdk
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-06-05 22:55:02 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-05 22:58:11 +0200
commit2787968e044c0c83e7affb0a4c3375178dfa783c (patch)
treef0788f57bb11b88ef0044ecd04f82262e0d10ed5 /np_sdk
parentd8d004941ee0d82c5a3b6f14d46c59babf0cd63c (diff)
np_sdk: it looks like the NP_* functions need exporting
At least, that's what the documentation says, and they used to be exported before gbuildization of extensions/np_sdk. Change-Id: Id0bcfab65c30de96bc2c0c708885ae9ed51c3519 (cherry picked from commit 50cc97689e1ceb7754505d7c5b99510e48dbe674)
Diffstat (limited to 'np_sdk')
-rw-r--r--np_sdk/mozsrc/npunix.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/np_sdk/mozsrc/npunix.c b/np_sdk/mozsrc/npunix.c
index b99a5457a540..0b5ff3876161 100644
--- a/np_sdk/mozsrc/npunix.c
+++ b/np_sdk/mozsrc/npunix.c
@@ -51,6 +51,8 @@
*----------------------------------------------------------------------
*/
+#include <sal/types.h> // just for SAL_DLLPUBLIC_EXPORT
+
#define XP_UNIX 1
#include <stdio.h>
@@ -365,7 +367,7 @@ Private_GetJavaClass(void)
* - Netscape uses the return value to identify when an object instance
* of this plugin should be created.
*/
-char *
+SAL_DLLPUBLIC_EXPORT char *
NP_GetMIMEDescription(void)
{
return (char *)NPP_GetMIMEDescription();
@@ -377,7 +379,7 @@ NP_GetMIMEDescription(void)
* - Interfaces with plugin to get values for predefined variables
* that the navigator needs.
*/
-NPError
+SAL_DLLPUBLIC_EXPORT NPError
NP_GetValue(void* future, NPPVariable variable, void *value)
{
return NPP_GetValue(future, variable, value);
@@ -400,7 +402,7 @@ NP_GetValue(void* future, NPPVariable variable, void *value)
* library will use this function table to call the plugin.
*
*/
-NPError
+SAL_DLLPUBLIC_EXPORT NPError
NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
{
NPError err = NPERR_NO_ERROR;
@@ -496,7 +498,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
* the last object of this kind has been destroyed.
*
*/
-void
+SAL_DLLPUBLIC_EXPORT void
NP_Shutdown(void)
{
PLUGINDEBUGSTR("NP_Shutdown");