2 * moonlight.h: MoonLight browser plugin.
5 * Moonlight List (moonlight-list@lists.ximian.com)
7 * Copyright 2007 Novell, Inc. (http://www.novell.com)
9 * See the LICENSE file included with the distribution for details.
24 #define Region _XxRegion
25 #define Visual _XxVisual
26 #include "moz-sdk/npapi.h"
27 #include "moz-sdk/npfunctions.h"
28 #include "moz-sdk/npruntime.h"
34 #if GLIB_SIZEOF_VOID_P == 8
35 #define GDK_NATIVE_WINDOW_POINTER 1
43 #define MIME_SILVERLIGHT_1 "application/x-silverlight"
44 #define MIME_SILVERLIGHT_2 "application/x-silverlight-2"
45 #define PLUGIN_NAME "Silverlight Plug-In"
46 #define PLUGIN_VERSION VERSION
47 #define PLUGIN_OURNAME "Novell Moonlight"
48 #define PLUGIN_SUFFIX "Novell <a href=\"http://www.mono-project.com/Moonlight\">Moonlight</a> " VERSION " is Mono's Free/Open Source implementation of Silverlight."
50 # define PLUGIN_DESCRIPTION "3.0.40624.0"
51 # define MIME_TYPES_HANDLED MIME_SILVERLIGHT_1 ":xaml:Novell Moonlight;" MIME_SILVERLIGHT_2 "::Novell Moonlight"
53 # define PLUGIN_DESCRIPTION "1.0.30401.0"
54 # define MIME_TYPES_HANDLED MIME_SILVERLIGHT_1 ":scr:Novell Moonlight"
57 #define MAX_STREAM_SIZE 65536
59 #define USE_LIBMOONLOADER 1
62 #define LOADER_RENAMED_SYM(x) Plugin_##x
63 #define LOADER_QUOTE(x) #x
64 #define LOADER_RENAMED_NAME(x) LOADER_QUOTE(Plugin_##x)
67 char *LOADER_RENAMED_SYM(NP_GetMIMEDescription
) (void);
68 NPError
LOADER_RENAMED_SYM(NP_GetValue
) (void *future
, NPPVariable variable
, void *value
);
70 NPError OSCALL
LOADER_RENAMED_SYM(NP_Initialize
) (NPNetscapeFuncs
*mozilla_funcs
, NPPluginFuncs
*plugin_funcs
);
72 NPError OSCALL
LOADER_RENAMED_SYM(NP_Initialize
) (NPNetscapeFuncs
*mozilla_funcs
);
74 NPError OSCALL
LOADER_RENAMED_SYM(NP_Shutdown
) (void);
77 #define LOADER_RENAMED_SYM(x) x
78 #define LOADER_RENAMED_NAME(x) #x
85 #define G_LOG_DOMAIN "Moonlight"
87 #endif /* PLUGIN_CONFIG */