blob: c178e1d525ed11ec2f55f4449043fbcd35ee86f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
--- PluginSDK30b5/examples/UnixTemplate/Source/UnixShell.c.orig Fri Jul 12 15:10:28 1996
+++ PluginSDK30b5/examples/UnixTemplate/Source/UnixShell.c Thu Nov 21 15:38:24 2002
@@ -48,7 +48,7 @@
char*
NPP_GetMIMEDescription(void)
{
- return("mime/type:sample:Template Only");
+ return("application/x-shockwave-flash:null flash:Dummy flash plugin");
}
NPError
@@ -58,12 +58,11 @@
switch (variable) {
case NPPVpluginNameString:
- *((char **)value) = "Template plugin";
+ *((char **)value) = "Dummy flash plugin";
break;
case NPPVpluginDescriptionString:
*((char **)value) =
- "This plugins handles nothing. This is only"
- " a template.";
+ "This is a dummy flash plugin";
break;
default:
err = NPERR_GENERIC_ERROR;
--- PluginSDK30b5/examples/UnixTemplate/Unix/makefile.freebsd.orig Thu Jan 1 09:30:00 1970
+++ PluginSDK30b5/examples/UnixTemplate/Unix/makefile.freebsd Thu Nov 21 15:39:02 2002
@@ -0,0 +1,49 @@
+#!make
+################################################################################
+# Copyright (c) 1996 Netscape Communications. All rights reserved.
+################################################################################
+#
+# Template plugin makefile
+#
+# Platform: SunOS 4.1
+#
+# The output of the make process will be nptemplate.so
+# Install this file either in
+# /usr/lib/netscape/plugins/
+# (or)
+# ~/.netscape/plugins/
+# (or) in any convenient directory and point environment variable
+# NPX_PLUGIN_PATH to point to the directory. It is advisable
+# that the plugins (.so) are the only files in that directory.
+#
+# This makefile contains some of our defines for the compiler:
+#
+# XP_UNIX This needs to get defined for npapi.h on unix platforms.
+# PLUGIN_TRACE Enable this define to get debug prints whenever the plugin
+# api gets control.
+
+# PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE
+PLUGIN_DEFINES= -DXP_UNIX -I../../../include -I../Source/_gen -I${X11BASE}/include
+
+CC= gcc
+OPTIMIZER= -g
+CFLAGS= $(OPTIMIZER) -fPIC $(PLUGIN_DEFINES) -I. -I$(ROOT)/usr/include
+
+SRC= ../Source/UnixShell.c ../Source/stubs.c
+OBJ= UnixShell.o stubs.o
+
+SHAREDTARGET=dummyflash.so
+
+default all: $(SHAREDTARGET)
+
+$(SHAREDTARGET): $(OBJ)
+ $(LD) -shared -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
+
+UnixShell.o: ../Source/UnixShell.c
+ $(CC) -c $(CFLAGS) ../Source/UnixShell.c
+
+stubs.o: ../Source/stubs.c
+ $(CC) -c $(CFLAGS) ../Source/stubs.c
+
+clean:
+ $(RM) $(OBJ) $(SHAREDTARGET)
|