diff -ruNd devel/plugin_sdk/Makefile devel/plugin_sdk/Makefile --- devel/plugin_sdk/Makefile Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/Makefile Sat Jan 10 03:50:39 1998 @@ -0,0 +1,56 @@ +# New ports collection makefile for: plugin_sdk +# Version required: 3.0b5 +# Date created: 6 Jan 1998 +# Whom: babolo +# +# $Id: ports.devel.plugin_sdk.patch,v 1.1.1.1 2001/02/22 00:27:21 babolo Exp $ +# + +DISTNAME= PluginSDK30b5 +CATEGORIES= devel +MASTER_SITES= ftp://ftp.netscape.com/pub/sdk/plugin/unix/ +DISTFILES= unix-sdk-3.0b5.tar.Z + +MAINTAINER= babolo@relcom.eu.net + +NETSCAPE?= netscape +PKGNAME= plugin_sdk-3.0b5 + +do-build: + cd ${WRKSRC}/examples/UnixTemplate/Unix && make + cd ${WRKSRC}/examples/simple/Unix && make + +test: build + install -d -m 755 ${HOME}/.netscape/plugins + install -c -m 444 ${WRKSRC}/examples/UnixTemplate/Unix/nptemplate.so ${HOME}/.netscape/plugins + install -c -m 444 ${WRKSRC}/examples/simple/Unix/npsimple.so ${HOME}/.netscape/plugins + install -c -m 444 ${WRKSRC}/classes/moz3_0.zip ${HOME}/.netscape/ + ${NETSCAPE} ${WRKSRC}/examples/UnixTemplate/Testing/Test.html + ${NETSCAPE} ${WRKSRC}/examples/simple/Testing/SimpleExample.html + ${RM} -f ${HOME}/.netscape/plugins/nptemplate.so + ${RM} -f ${HOME}/.netscape/plugins/npsimple.so + ${RM} -f ${HOME}/.netscape/plugins/moz3_0.zip + ${RM} -f ${HOME}/.netscape/plugin-list + touch ${WRKSRC}/.test_done + +do-install: + install -d -m 755 -o bin -g bin ${LOCALBASE}/include/NP ${LOCALBASE}/share/PluginSDK +.for file in common/npunix.c include/jri.h include/jri_md.h include/jritypes.h include/npapi.h include/npupp.h + ${INSTALL_DATA} ${WRKSRC}/${file} ${LOCALBASE}/include/NP/ +.endfor +.for file in Documentation bin classes examples + ${CP} -R ${WRKSRC}/${file} ${PREFIX}/share/PluginSDK/ +.endfor + cd ${PREFIX}/share/PluginSDK/examples/UnixTemplate/Unix && make clean + cd ${PREFIX}/share/PluginSDK/examples/simple/Unix && make clean +# cd ${PREFIX}/share/PluginSDK && patch < ${WRKDIR}/../files/post-patch + cd ${PREFIX}/share/PluginSDK && patch < ${FILESDIR}/post-patch + find ${PREFIX}/share/PluginSDK -name \*.orig -exec ${RM} {} \; + chown -R bin.bin ${PREFIX}/share/PluginSDK + find ${PREFIX}/share/PluginSDK -type f -exec chmod 444 {} \; +# find ${PREFIX}/share/PluginSDK -type d -exec chmod 555 {} \; + ${RM} -f ${HOME}/.netscape/plugins/nptemplate.so + ${RM} -f ${HOME}/.netscape/plugins/npsimple.so + +.include + diff -ruNd devel/plugin_sdk/files/md5 devel/plugin_sdk/files/md5 --- devel/plugin_sdk/files/md5 Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/files/md5 Wed Jan 7 02:42:05 1998 @@ -0,0 +1 @@ +MD5 (unix-sdk-3.0b5.tar.Z) = 1e43785d5697c60937e8d6236e7d7d7e diff -ruNd devel/plugin_sdk/files/post-patch devel/plugin_sdk/files/post-patch --- devel/plugin_sdk/files/post-patch Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/files/post-patch Wed Jan 7 20:55:09 1998 @@ -0,0 +1,457 @@ +--- examples/simple/Source/_gen/Simple.h.orig Wed Jan 7 19:44:27 1998 ++++ examples/simple/Source/_gen/Simple.h Wed Jan 7 20:35:55 1998 +@@ -1,5 +1,5 @@ + /* DO NOT EDIT THIS FILE - it is machine generated */ +-#include "jri.h" ++#include + + /* Header for class Simple */ + +--- examples/simple/Source/_gen/netscape_plugin_Plugin.h.orig Wed Jan 7 19:44:27 1998 ++++ examples/simple/Source/_gen/netscape_plugin_Plugin.h Wed Jan 7 20:36:43 1998 +@@ -1,5 +1,5 @@ + /* DO NOT EDIT THIS FILE - it is machine generated */ +-#include "jri.h" ++#include + + /* Header for class netscape/plugin/Plugin */ + +--- examples/simple/Source/_stubs/Simple.c.orig Wed Jan 7 19:44:27 1998 ++++ examples/simple/Source/_stubs/Simple.c Wed Jan 7 20:38:13 1998 +@@ -1,5 +1,5 @@ + /* DO NOT EDIT THIS FILE - it is machine generated */ +-#include "jri.h" ++#include + + /* Stubs for class Simple */ + +--- examples/simple/Source/_stubs/netscape_plugin_Plugin.c.orig Wed Jan 7 19:44:27 1998 ++++ examples/simple/Source/_stubs/netscape_plugin_Plugin.c Wed Jan 7 20:38:52 1998 +@@ -1,5 +1,5 @@ + /* DO NOT EDIT THIS FILE - it is machine generated */ +-#include "jri.h" ++#include + + /* Stubs for class netscape/plugin/Plugin */ + +--- examples/simple/Source/npsimple.c.orig Wed Jan 7 19:44:27 1998 ++++ examples/simple/Source/npsimple.c Wed Jan 7 20:33:24 1998 +@@ -25,7 +25,7 @@ + + #include + #include +-#include "npapi.h" ++#include + + /* + ** Define IMPLEMENT_Simple before including Simple.h to state that we're +@@ -33,21 +33,14 @@ + ** need to access it's protected and private memebers. + */ + #define IMPLEMENT_Simple +-#include "Simple.h" +- +-/* Windows Includes */ +-#ifdef _WINDOWS +-#include +-#endif /* _WINDOWS */ ++#include "Simple.h" + + /* + ** Stuff for the NPP_SetWindow method: + */ +-#ifdef XP_UNIX + #include + #include + #include +-#endif /* XP_UNIX */ + + /******************************************************************************* + * Instance state information about the plugin. +@@ -62,58 +55,25 @@ + NPWindow* fWindow; + uint16 fMode; + +-/* Windows data members */ +-#ifdef _WINDOWS +- HWND fhWnd; +- WNDPROC fDefaultWindowProc; +-#endif /* _WINDOWS */ +- + /* UNIX data members */ +-#ifdef XP_UNIX + Window window; + Display *display; + uint32 x, y; + uint32 width, height; +-#endif /* XP_UNIX */ + } PluginInstance; + + void DisplayJavaMessage(NPP instance, char* msg, int len); + + /******************************************************************************* +- * Windows-only declarations +- ******************************************************************************/ +- +-#ifdef _WINDOWS +-LRESULT CALLBACK PluginWindowProc( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); +-const char* gInstanceLookupString = "instance->pdata"; +-#endif +- +-/******************************************************************************* +- * Mac-only declarations +- ******************************************************************************/ +- +-#ifdef macintosh +-NPBool StartDraw(NPWindow* window); +-void EndDraw(NPWindow* window); +-void DoDraw(PluginInstance* This); +-CGrafPort gSavePort; +-CGrafPtr gOldPort; +-#endif +- +-/******************************************************************************* + * Unix-only declarations + ******************************************************************************/ + +-#ifdef XP_UNIX + void Redraw(Widget w, XtPointer closure, XEvent *event); +-#endif /* XP_UNIX */ + + /******************************************************************************* + * UNIX-only API calls + ******************************************************************************/ + +-#ifdef XP_UNIX +- + char* + NPP_GetMIMEDescription(void) + { +@@ -136,7 +96,6 @@ + + return err; + } +-#endif /* XP_UNIX */ + + /******************************************************************************* + * General Plug-in Calls +@@ -269,14 +228,7 @@ + /* mode is NP_EMBED, NP_FULL, or NP_BACKGROUND (see npapi.h) */ + This->fWindow = NULL; + This->fMode = mode; +- +-#ifdef XP_UNIX + This->window = 0; +-#endif /* XP_UNIX */ +-#ifdef _WINDOWS +- This->fhWnd = NULL; +- This->fDefaultWindowProc = NULL; +-#endif /* _WIDOWS */ + + /* PLUGIN DEVELOPERS: + * Initialize fields of your plugin +@@ -358,7 +310,6 @@ + * size changes, etc. + */ + +-#ifdef XP_UNIX + { + Widget netscape_widget; + +@@ -373,59 +324,6 @@ + XtAddEventHandler(netscape_widget, ExposureMask, FALSE, (XtEventHandler)Redraw, This); + Redraw(netscape_widget, (XtPointer)This, NULL); + } +-#endif /* XP_UNIX */ +-#ifdef _WINDOWS +- { +- if( This->fWindow != NULL ) // If we already have a window, clean +- // it up before trying to subclass +- // the new window. +- { +- if( (window == NULL) || ( window->window == NULL ) ) { +- // There is now no window to use. get rid of the old +- // one and exit. +- SetWindowLong( This->fhWnd, GWL_WNDPROC, (LONG)This->fDefaultWindowProc); +- This->fDefaultWindowProc = NULL; +- This->fhWnd = NULL; +- return NPERR_NO_ERROR; +- } +- +- else if ( This->fWindow->window == window->window ) { +- // The new window is the same as the old one. Exit now. +- return NPERR_NO_ERROR; +- } +- else { +- // Clean up the old window, so that we can subclass the new +- // one later. +- SetWindowLong( This->fhWnd, GWL_WNDPROC, (LONG)This->fDefaultWindowProc); +- This->fDefaultWindowProc = NULL; +- This->fhWnd = NULL; +- } +- } +- else if( (window == NULL) || ( window->window == NULL ) ) { +- // We can just get out of here if there is no current +- // window and there is no new window to use. +- return NPERR_NO_ERROR; +- } +- +- // At this point, we will subclass +- // window->window so that we can begin drawing and +- // receiving window messages. +- This->fDefaultWindowProc = (WNDPROC)SetWindowLong( (HWND)window->window, GWL_WNDPROC, (LONG)PluginWindowProc); +- This->fhWnd = (HWND) window->window; +- SetProp( This->fhWnd, gInstanceLookupString, (HANDLE)This); +- +- InvalidateRect( This->fhWnd, NULL, TRUE ); +- UpdateWindow( This->fhWnd ); +- } +-#endif /* _WINDOWS */ +- +-#ifdef macintosh +- This->fWindow = window; +- if( StartDraw( window ) ) { +- DoDraw(This); +- EndDraw( window ); +- } +-#endif /* macintosh */ + + This->fWindow = window; + return result; +@@ -626,52 +524,10 @@ + // return TRUE if you handle the event and FALSE if you ignore the event. + ******************************************************************************/ + +-#ifndef XP_UNIX +- +-int16 +-NPP_HandleEvent(NPP instance, void* event) +-{ +- int16 eventHandled = FALSE; +- +-#ifdef macintosh +- PluginInstance* This = (PluginInstance*) instance->pdata; +- EventRecord* ev = (EventRecord*) event; +- +- if (instance == NULL) +- return eventHandled; +- +- if (This != NULL && event != NULL) +- { +- switch (ev->what) +- { +- // +- // Draw ourselves on update events +- // +- case updateEvt: +- if( StartDraw( This->fWindow ) ) { +- DoDraw(This); +- EndDraw( This->fWindow ); +- } +- eventHandled = true; +- break; +- +- default: +- break; +- } +- +- } +-#endif /* macintosh */ +- +- return eventHandled; +-} +- +-#endif /* ndef XP_UNIX */ +- + /******************************************************************************* + * UNIX-only methods + ******************************************************************************/ + +-#ifdef XP_UNIX + void + Redraw(Widget w, XtPointer closure, XEvent *event) + { +@@ -690,116 +546,5 @@ + This->width/2 - 100, This->height/2, + text, strlen(text)); + } +-#endif /* XP_UNIX */ +- +-/******************************************************************************* +- * Windows-only methods +- ******************************************************************************/ +- +-#ifdef _WINDOWS +-LRESULT CALLBACK PluginWindowProc( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) +-{ +- PluginInstance* This = (PluginInstance*) GetProp(hWnd, gInstanceLookupString); +- +- switch( Msg ) { +- case WM_PAINT: +- { +- PAINTSTRUCT paintStruct; +- HDC hdc; +- +- hdc = BeginPaint( hWnd, &paintStruct ); +- TextOut(hdc, 0, 0, "Hello, World!", 15); +- +- EndPaint( hWnd, &paintStruct ); +- break; +- } +- default: +- { +- This->fDefaultWindowProc( hWnd, Msg, wParam, lParam); +- } +- } +- return 0; +-} +-#endif /* _WINDOWS */ +- +-/******************************************************************************* +- * Mac-only methods +- ******************************************************************************/ +- +-#ifdef macintosh +- +-NPBool +-StartDraw(NPWindow* window) +-{ +- NP_Port* port; +- Rect clipRect; +- RGBColor col; +- +- if (window == NULL) +- return FALSE; +- port = (NP_Port*) window->window; +- if (window->clipRect.left < window->clipRect.right) +- { +- // Preserve the old port +- GetPort((GrafPtr*)&gOldPort); +- SetPort((GrafPtr)port->port); +- // Preserve the old drawing environment +- gSavePort.portRect = port->port->portRect; +- gSavePort.txFont = port->port->txFont; +- gSavePort.txFace = port->port->txFace; +- gSavePort.txMode = port->port->txMode; +- gSavePort.rgbFgColor = port->port->rgbFgColor; +- gSavePort.rgbBkColor = port->port->rgbBkColor; +- GetClip(gSavePort.clipRgn); +- // Setup our drawing environment +- clipRect.top = window->clipRect.top + port->porty; +- clipRect.left = window->clipRect.left + port->portx; +- clipRect.bottom = window->clipRect.bottom + port->porty; +- clipRect.right = window->clipRect.right + port->portx; +- SetOrigin(port->portx,port->porty); +- ClipRect(&clipRect); +- clipRect.top = clipRect.left = 0; +- TextSize(12); +- TextFont(geneva); +- TextMode(srcCopy); +- col.red = col.green = col.blue = 0; +- RGBForeColor(&col); +- col.red = col.green = col.blue = 65000; +- RGBBackColor(&col); +- return TRUE; +- } +- else +- return FALSE; +-} +- +-void +-EndDraw(NPWindow* window) +-{ +- CGrafPtr myPort; +- NP_Port* port = (NP_Port*) window->window; +- SetOrigin(gSavePort.portRect.left, gSavePort.portRect.top); +- SetClip(gSavePort.clipRgn); +- GetPort((GrafPtr*)&myPort); +- myPort->txFont = gSavePort.txFont; +- myPort->txFace = gSavePort.txFace; +- myPort->txMode = gSavePort.txMode; +- RGBForeColor(&gSavePort.rgbFgColor); +- RGBBackColor(&gSavePort.rgbBkColor); +- SetPort((GrafPtr)gOldPort); +-} +- +-void +-DoDraw(PluginInstance* This) +-{ +- Rect drawRect; +- drawRect.top = 0; +- drawRect.left = 0; +- drawRect.bottom = drawRect.top + This->fWindow->height; +- drawRect.right = drawRect.left + This->fWindow->width; +- EraseRect( &drawRect ); +- MoveTo( 2, 12 ); +- DrawString("\pHello, World!"); +-} +-#endif /* macintosh */ + + /******************************************************************************/ +--- examples/simple/Source/stubs.c.orig Wed Jan 7 19:44:27 1998 ++++ examples/simple/Source/stubs.c Wed Jan 7 20:28:30 1998 +@@ -9,9 +9,7 @@ + ** doing it here to avoid some fancy make rules. First pull in the common + ** glue code: + */ +-#ifdef XP_UNIX +-#include "../../../common/npunix.c" +-#endif ++#include + + /* + ** Next, define IMPLEMENT_Simple in order to pull the stub code in when +@@ -27,10 +25,5 @@ + ** take advantage of the diagnostic code that javah creates for + ** you. Otherwise your life will be hell. + */ +-#ifdef XP_UNIX + #include "_stubs/Simple.c" + #include "_stubs/netscape_plugin_Plugin.c" +-#else +-#include "Simple.c" +-#include "netscape_plugin_Plugin.c" +-#endif +--- examples/UnixTemplate/Source/UnixShell.c.orig Wed Jan 7 19:44:28 1998 ++++ examples/UnixTemplate/Source/UnixShell.c Wed Jan 7 19:53:19 1998 +@@ -19,7 +19,7 @@ + */ + + #include +-#include "npapi.h" ++#include + + /*********************************************************************** + * Instance state information about the plugin. +--- examples/UnixTemplate/Source/stubs.c.orig Wed Jan 7 19:44:28 1998 ++++ examples/UnixTemplate/Source/stubs.c Wed Jan 7 19:54:50 1998 +@@ -9,6 +9,4 @@ + ** doing it here to avoid some fancy make rules. First pull in the common + ** glue code: + */ +-#ifdef XP_UNIX +-#include "../../../common/npunix.c" +-#endif ++#include +--- examples/simple/Unix/Makefile.orig Wed Jan 7 19:44:27 1998 ++++ examples/simple/Unix/Makefile Wed Jan 7 20:50:57 1998 +@@ -27,7 +27,7 @@ + # + + # PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE +-PLUGIN_DEFINES= -DXP_UNIX -I../../../include -I../Source/_gen ++PLUGIN_DEFINES= -I/usr/local/include -I../Source/_gen + + RM= /bin/rm + CC= gcc +--- examples/UnixTemplate/Unix/Makefile.orig Wed Jan 7 19:44:28 1998 ++++ examples/UnixTemplate/Unix/Makefile Wed Jan 7 20:48:58 1998 +@@ -27,7 +27,7 @@ + # + + # PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE +-PLUGIN_DEFINES= -DXP_UNIX -I../../../include -I../Source/_gen ++PLUGIN_DEFINES= -I/usr/local/include -I../Source/_gen + + RM= /bin/rm + CC= gcc diff -ruNd devel/plugin_sdk/patches/patch-aa devel/plugin_sdk/patches/patch-aa --- devel/plugin_sdk/patches/patch-aa Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/patches/patch-aa Wed Jan 7 19:00:28 1998 @@ -0,0 +1,104 @@ +--- Documentation/pi2.htm.orig Tue Jul 16 08:21:53 1996 ++++ Documentation/pi2.htm Wed Jan 7 02:07:30 1998 +@@ -344,7 +344,7 @@ + void NPP_Shutdown(void); + +

See also

+-NPP_Initialize ++NPP_Initialize +

+ +


+--- Documentation/pi3.htm.orig Tue Jul 16 08:21:53 1996 ++++ Documentation/pi3.htm Wed Jan 7 02:04:08 1998 +@@ -148,8 +148,8 @@ + NPError NP_GetURLNotify(NPP instance, const char* url, const char* target, void* notifyData); + +

See also

+-NPN_GetURL
+-NPN_URLNotify ++NPN_GetURL
++NPP_URLNotify +

+ +


+@@ -218,7 +218,7 @@ +

+ +


+-

NPN_NewStream

++

NPN_NewStream

+ + New in Netscape Navigator 3.0. +

+@@ -347,8 +347,8 @@ + NPError NPN_PostURLNotify(NPP instance, const char *url, const char *window, uint32 len, const char *buf, NPBool file, void* notifyData); + +

See also

+-NPN_PostURL
+-NPN_URLNotify ++NPN_PostURL
++NPN_URLNotify +

+ +


+@@ -411,7 +411,7 @@ + const char* NPN_Status((NPP instance); + +

See also

+-NPN_Version ++NPN_Version +

+ +


+@@ -438,7 +438,7 @@ + void NPN_Version(int *plugin_major, int *plugin_minor, int *netscape_major, int *netscape_minor); + +

See also

+-NPN_UserAgent ++NPN_UserAgent +

+ +


+@@ -463,8 +463,8 @@ + int32 NPN_Write(NPP instance, NPStream *stream, int32 offset, int32 len, void *buf); + +

See also

+-NPN_NewStream
+-NPN_DestroyStream
++NPN_NewStream
++NPN_DestroyStream
+ NPP_Write
+ NPStream +

+--- Documentation/doc/AllNames.html.orig Tue Jul 16 08:21:51 1996 ++++ Documentation/doc/AllNames.html Wed Jan 7 02:15:23 1998 +@@ -41,7 +41,7 @@ + Index of all Fields and Methods + +

+- A ++ C +

+
+
call(String, Object[]). +--- examples/simple/Unix/Makefile.orig Wed Jan 7 17:24:33 1998 ++++ examples/simple/Unix/Makefile Wed Jan 7 18:59:26 1998 +@@ -29,6 +29,7 @@ + # PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE + PLUGIN_DEFINES= -DXP_UNIX -I../../../include -I../Source/_gen + ++RM= /bin/rm + CC= gcc + OPTIMIZER= -g + CFLAGS= $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I/usr/include +--- examples/UnixTemplate/Unix/Makefile.orig Wed Jan 7 17:24:33 1998 ++++ examples/UnixTemplate/Unix/Makefile Wed Jan 7 18:58:42 1998 +@@ -29,6 +29,7 @@ + # PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE + PLUGIN_DEFINES= -DXP_UNIX -I../../../include -I../Source/_gen + ++RM= /bin/rm + CC= gcc + OPTIMIZER= -g + CFLAGS= $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I/usr/include diff -ruNd devel/plugin_sdk/pkg/COMMENT devel/plugin_sdk/pkg/COMMENT --- devel/plugin_sdk/pkg/COMMENT Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/pkg/COMMENT Tue Jan 6 20:41:53 1998 @@ -0,0 +1 @@ +SDK to make plug-in's for Netscape diff -ruNd devel/plugin_sdk/pkg/DESCR devel/plugin_sdk/pkg/DESCR --- devel/plugin_sdk/pkg/DESCR Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/pkg/DESCR Sat Feb 7 23:34:00 1998 @@ -0,0 +1,32 @@ +SDK to make plug-in's for Netscape + +Documentation is slightly buggy, but much better then nothing. Second test +(LiveConnect) dont works properly. Try - may be you are much lucky? + +How to use? +Open +"netscape /usr/local/share/PluginSDK/Documentation/index.html", +in one window and +"cp -R /usr/local/share/PluginSDK/examples/UnixTemplate <раб_каталог>" +in another and fill up Source/UnixShell.c, Makefile, Testing/Test.html. +See port ns_timidity as example. + +-- + +ru: +Документация в состоянии разработки, но уже очень полезна. +Нормально работает только первый тест (template), то есть ничего +не делает, как и полагается. На его основе сделан порт NS-timidity. +Второй мне запустить не удалось. Попробуйте - может, у Вас получится... + +Как пользоваться? +В одном окне открываете +"netscape /usr/local/share/PluginSDK/Documentation/index.html", +в другом +"cp -R /usr/local/share/PluginSDK/examples/UnixTemplate <раб_каталог>" +- и заполняете Source/UnixShell.c, Makefile, Testing/Test.html. +Потом все удаляете и переписываете заново. Пример - порт ns_timidity. + +-- +Aleksandr A. Babaylov + diff -ruNd devel/plugin_sdk/pkg/PLIST devel/plugin_sdk/pkg/PLIST --- devel/plugin_sdk/pkg/PLIST Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/pkg/PLIST Wed Jan 7 21:16:18 1998 @@ -0,0 +1,190 @@ +@cwd /usr/local +include/NP/npunix.c +include/NP/jri.h +include/NP/jri_md.h +include/NP/jritypes.h +include/NP/npapi.h +include/NP/npupp.h +share/PluginSDK/Documentation/.HSancillary +share/PluginSDK/Documentation/CVS/Entries +share/PluginSDK/Documentation/CVS/Repository +share/PluginSDK/Documentation/ad1.htm +share/PluginSDK/Documentation/ad2.htm +share/PluginSDK/Documentation/doc/.HSancillary +share/PluginSDK/Documentation/doc/AllNames.html +share/PluginSDK/Documentation/doc/CVS/.HSancillary +share/PluginSDK/Documentation/doc/CVS/Entries +share/PluginSDK/Documentation/doc/CVS/Repository +share/PluginSDK/Documentation/doc/Package-netscape.javascript.html +share/PluginSDK/Documentation/doc/Package-netscape.plugin.html +share/PluginSDK/Documentation/doc/images/.HSancillary +share/PluginSDK/Documentation/doc/images/CVS/.HSancillary +share/PluginSDK/Documentation/doc/images/CVS/Entries +share/PluginSDK/Documentation/doc/images/CVS/Repository +share/PluginSDK/Documentation/doc/images/OpenBookIcon.gif +share/PluginSDK/Documentation/doc/images/blue-ball-small.gif +share/PluginSDK/Documentation/doc/images/blue-ball.gif +share/PluginSDK/Documentation/doc/images/class-index.gif +share/PluginSDK/Documentation/doc/images/constructor-index.gif +share/PluginSDK/Documentation/doc/images/constructors.gif +share/PluginSDK/Documentation/doc/images/cyan-ball-small.gif +share/PluginSDK/Documentation/doc/images/cyan-ball.gif +share/PluginSDK/Documentation/doc/images/error-index.gif +share/PluginSDK/Documentation/doc/images/exception-index.gif +share/PluginSDK/Documentation/doc/images/green-ball-small.gif +share/PluginSDK/Documentation/doc/images/green-ball.gif +share/PluginSDK/Documentation/doc/images/interface-index.gif +share/PluginSDK/Documentation/doc/images/java.awt/.HSancillary +share/PluginSDK/Documentation/doc/images/java.awt/CVS/.HSancillary +share/PluginSDK/Documentation/doc/images/java.awt/CVS/Entries +share/PluginSDK/Documentation/doc/images/java.awt/CVS/Repository +share/PluginSDK/Documentation/doc/images/java.awt/GridBagEx.gif +share/PluginSDK/Documentation/doc/images/magenta-ball-small.gif +share/PluginSDK/Documentation/doc/images/magenta-ball.gif +share/PluginSDK/Documentation/doc/images/methods.gif +share/PluginSDK/Documentation/doc/images/method-index.gif +share/PluginSDK/Documentation/doc/images/package-index.gif +share/PluginSDK/Documentation/doc/images/red-ball-small.gif +share/PluginSDK/Documentation/doc/images/red-ball.gif +share/PluginSDK/Documentation/doc/images/variable-index.gif +share/PluginSDK/Documentation/doc/images/variables.gif +share/PluginSDK/Documentation/doc/images/yellow-ball-small.gif +share/PluginSDK/Documentation/doc/images/yellow-ball.gif +share/PluginSDK/Documentation/doc/index.html +share/PluginSDK/Documentation/doc/netscape.javascript.JSException.html +share/PluginSDK/Documentation/doc/netscape.javascript.JSObject.html +share/PluginSDK/Documentation/doc/netscape.plugin.Plugin.html +share/PluginSDK/Documentation/doc/packages.html +share/PluginSDK/Documentation/doc/tree.html +share/PluginSDK/Documentation/ht1.htm +share/PluginSDK/Documentation/ht2.htm +share/PluginSDK/Documentation/ht3.htm +share/PluginSDK/Documentation/index.html +share/PluginSDK/Documentation/jtoc.htm +share/PluginSDK/Documentation/lconn1.gif +share/PluginSDK/Documentation/lconn2.gif +share/PluginSDK/Documentation/lconn3.gif +share/PluginSDK/Documentation/library.jpg +share/PluginSDK/Documentation/new.gif +share/PluginSDK/Documentation/p-js-j.gif +share/PluginSDK/Documentation/pgtoc.htm +share/PluginSDK/Documentation/pguide.htm +share/PluginSDK/Documentation/pi1.htm +share/PluginSDK/Documentation/pi2.htm +share/PluginSDK/Documentation/pi3.htm +share/PluginSDK/Documentation/pi4.htm +share/PluginSDK/Documentation/pjava.htm +share/PluginSDK/Documentation/pr1.htm +share/PluginSDK/Documentation/pr2.htm +share/PluginSDK/Documentation/pr3.htm +share/PluginSDK/Documentation/pr4.htm +share/PluginSDK/Documentation/pr5.htm +share/PluginSDK/Documentation/relnotes.html +share/PluginSDK/Documentation/sdk.html +share/PluginSDK/Documentation/us1.htm +share/PluginSDK/Documentation/us2.htm +share/PluginSDK/Documentation/wr1.htm +share/PluginSDK/Documentation/wr2.htm +share/PluginSDK/Documentation/wr3.htm +share/PluginSDK/Documentation/wr4.htm +share/PluginSDK/Documentation/wr5.htm +share/PluginSDK/Documentation/wr6.htm +share/PluginSDK/Documentation/wr7.htm +share/PluginSDK/Documentation/Framework/blank.html +share/PluginSDK/Documentation/Framework/CGeneric.html +share/PluginSDK/Documentation/Framework/CNetscapeMemObject.html +share/PluginSDK/Documentation/Framework/CNetscapeStream.html +share/PluginSDK/Documentation/Framework/CPlainTextStream.html +share/PluginSDK/Documentation/Framework/CPluginArguments.html +share/PluginSDK/Documentation/Framework/CPluginView.html +share/PluginSDK/Documentation/Framework/framework-toc.html +share/PluginSDK/Documentation/Framework/framework-toc.html~ +share/PluginSDK/Documentation/Framework/index.html +share/PluginSDK/Documentation/Framework/index.html~ +share/PluginSDK/Documentation/Framework/introduction.html +share/PluginSDK/Documentation/Framework/introduction.html~ +share/PluginSDK/Documentation/Framework/notdone.html +share/PluginSDK/Documentation/Framework/quicktest.html +share/PluginSDK/bin/SunOS5.4/javah +share/PluginSDK/bin/SunOS5.4/npsimple.so +share/PluginSDK/bin/SunOS5.4/nptemplate.so +share/PluginSDK/bin/SunOS4.1.3_U1/javah +share/PluginSDK/bin/SunOS4.1.3_U1/npsimple.so +share/PluginSDK/bin/SunOS4.1.3_U1/nptemplate.so +share/PluginSDK/bin/HP-UXA.09.03/javah +share/PluginSDK/bin/HP-UXA.09.03/npsimple.so +share/PluginSDK/bin/HP-UXA.09.03/nptemplate.so +share/PluginSDK/bin/LinuxELF1.2.13/javah +share/PluginSDK/bin/LinuxELF1.2.13/npsimple.so +share/PluginSDK/bin/LinuxELF1.2.13/nptemplate.so +share/PluginSDK/bin/IRIX5.2/javah +share/PluginSDK/bin/IRIX5.2/npsimple.so +share/PluginSDK/bin/IRIX5.2/nptemplate.so +share/PluginSDK/bin/OSF1V2.0/javah +share/PluginSDK/bin/OSF1V2.0/npsimple.so +share/PluginSDK/bin/OSF1V2.0/nptemplate.so +share/PluginSDK/bin/SunOS5.3/javah +share/PluginSDK/bin/SunOS5.3/npsimple.so +share/PluginSDK/bin/SunOS5.3/nptemplate.so +share/PluginSDK/classes/moz3_0.zip +share/PluginSDK/examples/simple/Source/npsimple.c +share/PluginSDK/examples/simple/Source/stubs.c +share/PluginSDK/examples/simple/Source/Simple.java +share/PluginSDK/examples/simple/Source/Simple.class +share/PluginSDK/examples/simple/Source/_gen/Simple.h +share/PluginSDK/examples/simple/Source/_gen/netscape_plugin_Plugin.h +share/PluginSDK/examples/simple/Source/_stubs/Simple.c +share/PluginSDK/examples/simple/Source/_stubs/netscape_plugin_Plugin.c +share/PluginSDK/examples/simple/Unix/makefile.hpux +share/PluginSDK/examples/simple/Unix/makefile.linux +share/PluginSDK/examples/simple/Unix/makefile.osf1 +share/PluginSDK/examples/simple/Unix/makefile.sgi +share/PluginSDK/examples/simple/Unix/makefile.sol23 +share/PluginSDK/examples/simple/Unix/makefile.sol24 +share/PluginSDK/examples/simple/Unix/makefile.sun4 +share/PluginSDK/examples/simple/Unix/Makefile +share/PluginSDK/examples/simple/Testing/SimpleExample.html +share/PluginSDK/examples/simple/readme.html +share/PluginSDK/examples/UnixTemplate/Source/UnixShell.c +share/PluginSDK/examples/UnixTemplate/Source/stubs.c +share/PluginSDK/examples/UnixTemplate/Testing/Test.html +share/PluginSDK/examples/UnixTemplate/Unix/makefile.hpux +share/PluginSDK/examples/UnixTemplate/Unix/makefile.linux +share/PluginSDK/examples/UnixTemplate/Unix/makefile.osf1 +share/PluginSDK/examples/UnixTemplate/Unix/makefile.sgi +share/PluginSDK/examples/UnixTemplate/Unix/makefile.sol23 +share/PluginSDK/examples/UnixTemplate/Unix/makefile.sol24 +share/PluginSDK/examples/UnixTemplate/Unix/makefile.sun4 +share/PluginSDK/examples/UnixTemplate/Unix/Makefile +share/PluginSDK/examples/UnixTemplate/readme.html +@dirrm include/NP +@dirrm share/PluginSDK/Documentation/doc/images/java.awt/CVS +@dirrm share/PluginSDK/Documentation/doc/images/java.awt +@dirrm share/PluginSDK/Documentation/doc/images/CVS +@dirrm share/PluginSDK/Documentation/doc/images +@dirrm share/PluginSDK/Documentation/doc/CVS +@dirrm share/PluginSDK/Documentation/doc +@dirrm share/PluginSDK/Documentation/CVS +@dirrm share/PluginSDK/Documentation/Framework +@dirrm share/PluginSDK/Documentation +@dirrm share/PluginSDK/bin/LinuxELF1.2.13 +@dirrm share/PluginSDK/bin/SunOS4.1.3_U1 +@dirrm share/PluginSDK/bin/HP-UXA.09.03 +@dirrm share/PluginSDK/bin/SunOS5.4 +@dirrm share/PluginSDK/bin/OSF1V2.0 +@dirrm share/PluginSDK/bin/SunOS5.3 +@dirrm share/PluginSDK/bin/IRIX5.2 +@dirrm share/PluginSDK/bin +@dirrm share/PluginSDK/classes +@dirrm share/PluginSDK/examples/simple/Source/_stubs +@dirrm share/PluginSDK/examples/simple/Source/_gen +@dirrm share/PluginSDK/examples/simple/Source +@dirrm share/PluginSDK/examples/simple/Testing +@dirrm share/PluginSDK/examples/simple/Unix +@dirrm share/PluginSDK/examples/simple +@dirrm share/PluginSDK/examples/UnixTemplate/Testing +@dirrm share/PluginSDK/examples/UnixTemplate/Source +@dirrm share/PluginSDK/examples/UnixTemplate/Unix +@dirrm share/PluginSDK/examples/UnixTemplate +@dirrm share/PluginSDK/examples +@dirrm share/PluginSDK diff -ruNd devel/plugin_sdk/scripts/post-install devel/plugin_sdk/scripts/post-install --- devel/plugin_sdk/scripts/post-install Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/scripts/post-install Sat Jan 10 03:27:41 1998 @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ ! -f ${WRKDIR} ]; then + echo " ********************************************************" + echo " * *" + echo " * You can test example plug-ins by 'make test' *" + echo " * Sorry, I can't do second test (LiveConnect) working. *" + echo " * Try if you are more happy. *" + echo " * NP-timidity uses first test (template). *" + echo " * It must be OK if you want plugins similar *" + echo " * to NP-timidity. *" + echo " * *" + echo " ********************************************************" +fi diff -ruNd devel/plugin_sdk/scripts/pre-install devel/plugin_sdk/scripts/pre-install --- devel/plugin_sdk/scripts/pre-install Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/scripts/pre-install Sat Jan 10 03:12:53 1998 @@ -0,0 +1,396 @@ +#!/bin/sh + +cd ${WRKSRC} && patch << "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq" +--- common/npunix.c.orig Thu Jul 4 05:45:27 1996 ++++ common/npunix.c Wed Jan 7 22:34:53 1998 +@@ -15,8 +15,8 @@ + #define XP_UNIX 1 + + #include +-#include "npapi.h" +-#include "npupp.h" ++#include ++#include + + /* + * Define PLUGIN_TRACE to have the wrapper functions print +--- include/jri.h.orig Sun Jun 23 14:01:02 1996 ++++ include/jri.h Wed Jan 7 22:19:00 1998 +@@ -3,11 +3,12 @@ + * Java Runtime Interface + * Copyright (c) 1996 Netscape Communications Corporation. All rights reserved. + ******************************************************************************/ ++/* @BABOLO patched 1998 Jan 7 */ + + #ifndef JRI_H + #define JRI_H + +-#include "jritypes.h" ++#include + + #ifdef __cplusplus + extern "C" { +--- include/jri_md.h.orig Fri Jul 12 14:02:05 1996 ++++ include/jri_md.h Wed Jan 7 22:19:11 1998 +@@ -3,6 +3,7 @@ + * Java Runtime Interface - Machine Dependent Types + * Copyright (c) 1996 Netscape Communications Corporation. All rights reserved. + ******************************************************************************/ ++/* @BABOLO patched 1998 Jan 7 */ + + #ifndef JRI_MD_H + #define JRI_MD_H +@@ -29,66 +30,15 @@ + * HAVE_ALIGNED_DOUBLES must be defined if doubles must be 8 byte aligned + * IS_64 must be defined on 64-bit machines (like Dec Alpha) + ******************************************************************************/ ++#define IS_LITTLE_ENDIAN ++#define HAVE_LONG_LONG + +-/* DLL Entry modifiers... */ + +-/* PC */ +-#if defined(XP_PC) || defined(_WINDOWS) || defined(WIN32) || defined(_WIN32) +-# include +-# if defined(_MSC_VER) +-# if defined(WIN32) || defined(_WIN32) +-# define JRI_PUBLIC_API(ResultType) _declspec(dllexport) ResultType +-# define JRI_CALLBACK +-# else /* !_WIN32 */ +-# if defined(_WINDLL) +-# define JRI_PUBLIC_API(ResultType) ResultType __cdecl __export __loadds +-# define JRI_CALLBACK __loadds +-# else /* !WINDLL */ +-# define JRI_PUBLIC_API(ResultType) ResultType __cdecl __export +-# define JRI_CALLBACK __export +-# endif /* !WINDLL */ +-# endif /* !_WIN32 */ +-# elif defined(__BORLANDC__) +-# if defined(WIN32) || defined(_WIN32) +-# define JRI_PUBLIC_API(ResultType) __export ResultType +-# define JRI_CALLBACK +-# else /* !_WIN32 */ +-# define JRI_PUBLIC_API(ResultType) ResultType _cdecl _export _loadds +-# define JRI_CALLBACK _loadds +-# endif +-# else +-# error Unsupported PC development environment. +-# endif +-# ifndef IS_LITTLE_ENDIAN +-# define IS_LITTLE_ENDIAN +-# endif +- +-/* Mac */ +-#elif macintosh || Macintosh || THINK_C +-# if defined(__MWERKS__) /* Metrowerks */ +-# if !__option(enumsalwaysint) +-# error You need to define 'Enums Always Int' for your project. +-# endif +-# if defined(GENERATING68K) && !GENERATINGCFM +-# if !__option(fourbyteints) +-# error You need to define 'Struct Alignment: 68k' for your project. +-# endif +-# endif /* !GENERATINGCFM */ +-# elif defined(__SC__) /* Symantec */ +-# error What are the Symantec defines? (warren@netscape.com) +-# elif macintosh && applec /* MPW */ +-# error Please upgrade to the latest MPW compiler (SC). +-# else +-# error Unsupported Mac development environment. +-# endif +-# define JRI_PUBLIC_API(ResultType) ResultType +-# define JRI_CALLBACK ++/* DLL Entry modifiers... */ + + /* Unix or else */ +-#else + # define JRI_PUBLIC_API(ResultType) ResultType + # define JRI_CALLBACK +-#endif + + #ifndef FAR /* for non-Win16 */ + #define FAR +@@ -126,23 +76,12 @@ + + #ifdef HAVE_LONG_LONG + +-#if !(defined(WIN32) || defined(_WIN32)) + typedef long long jlong; + typedef unsigned long long julong; + + #define jlong_MAXINT 0x7fffffffffffffffLL + #define jlong_MININT 0x8000000000000000LL + #define jlong_ZERO 0x0LL +- +-#else +-typedef LONGLONG jlong; +-typedef DWORDLONG julong; +- +-#define jlong_MAXINT 0x7fffffffffffffffi64 +-#define jlong_MININT 0x8000000000000000i64 +-#define jlong_ZERO 0x0i64 +- +-#endif + + #define jlong_IS_ZERO(a) ((a) == 0) + #define jlong_EQ(a, b) ((a) == (b)) +--- include/jritypes.h.orig Sat Jun 22 15:08:01 1996 ++++ include/jritypes.h Wed Jan 7 22:19:25 1998 +@@ -3,11 +3,12 @@ + * Java Runtime Interface + * Copyright (c) 1996 Netscape Communications Corporation. All rights reserved. + ******************************************************************************/ ++/* @BABOLO patched 1998 Jan 7 */ + + #ifndef JRITYPES_H + #define JRITYPES_H + +-#include "jri_md.h" ++#include + #include + #include + #include +--- include/npapi.h.orig Fri Jul 12 14:02:06 1996 ++++ include/npapi.h Wed Jan 7 22:24:44 1998 +@@ -3,21 +3,12 @@ + * npapi.h $Revision: 1.1.1.1 $ + * Netscape client plug-in API spec + */ ++/* @BABOLO patched 1998 Jan 7 */ + + #ifndef _NPAPI_H_ + #define _NPAPI_H_ + +-#include "jri.h" /* Java Runtime Interface */ +- +- +-/* XXX this needs to get out of here */ +-#if defined(__MWERKS__) +-#ifndef XP_MAC +-#define XP_MAC +-#endif +-#endif +- +- ++#include /* Java Runtime Interface */ + + /*----------------------------------------------------------------------*/ + /* Plugin Version Constants */ +@@ -122,7 +113,6 @@ + } NPRect; + + +-#ifdef XP_UNIX + /* + * Unix specific structures and definitions + */ +@@ -167,8 +157,6 @@ + NPNVxtAppContext + } NPNVariable; + +-#endif /* XP_UNIX */ +- + + typedef struct _NPWindow + { +@@ -179,9 +167,7 @@ + uint32 height; + NPRect clipRect; /* Clipping rectangle in port coordinates */ + /* Used by MAC only. */ +-#ifdef XP_UNIX + void * ws_info; /* Platform-dependent additonal data */ +-#endif /* XP_UNIX */ + } NPWindow; + + +@@ -211,31 +197,6 @@ + } NPPrint; + + +-#ifdef XP_MAC +-/* +- * Mac-specific structures and definitions. +- */ +- +-#include +-#include +- +-typedef struct NP_Port +-{ +- CGrafPtr port; /* Grafport */ +- int32 portx; /* position inside the topmost window */ +- int32 porty; +-} NP_Port; +- +-/* +- * Non-standard event types that can be passed to HandleEvent +- */ +-#define getFocusEvent (osEvt + 16) +-#define loseFocusEvent (osEvt + 17) +-#define adjustCursorEvent (osEvt + 18) +- +-#endif /* XP_MAC */ +- +- + /* + * Values for mode passed to NPP_New: + */ +@@ -304,11 +265,7 @@ + /* Function Prototypes */ + /*----------------------------------------------------------------------*/ + +-#if defined(_WINDOWS) && !defined(WIN32) +-#define NP_LOADDS _loadds +-#else + #define NP_LOADDS +-#endif + + #ifdef __cplusplus + extern "C" { +@@ -318,11 +275,9 @@ + * NPP_* functions are provided by the plugin and called by the navigator. + */ + +-#ifdef XP_UNIX + char* NPP_GetMIMEDescription(void); + NPError NPP_GetValue(void *instance, NPPVariable variable, + void *value); +-#endif /* XP_UNIX */ + NPError NPP_Initialize(void); + void NPP_Shutdown(void); + NPError NP_LOADDS NPP_New(NPMIMEType pluginType, NPP instance, +@@ -351,10 +306,8 @@ + * NPN_* functions are provided by the navigator and called by the plugin. + */ + +-#ifdef XP_UNIX + NPError NPN_GetValue(NPP instance, NPNVariable variable, + void *value); +-#endif /* XP_UNIX */ + void NPN_Version(int* plugin_major, int* plugin_minor, + int* netscape_major, int* netscape_minor); + NPError NPN_GetURLNotify(NPP instance, const char* url, +--- include/npupp.h.orig Tue May 14 04:10:31 1996 ++++ include/npupp.h Wed Jan 7 22:30:05 1998 +@@ -3,6 +3,7 @@ + * npupp.h $Revision: 1.1.1.1 $ + * function call mecahnics needed by platform specific glue code. + */ ++/* @BABOLO patched 1998 Jan 7 */ + + + #ifndef _NPUPP_H_ +@@ -13,10 +14,10 @@ + #endif + + #ifndef _NPAPI_H_ +-#include "npapi.h" ++#include + #endif + +-#include "jri.h" ++#include + + /****************************************************************************************** + plug-in function table macros +@@ -397,7 +398,6 @@ + * Netscape entry points + */ + +-#ifdef XP_UNIX + + /* NPN_GetValue */ + +@@ -424,9 +424,6 @@ + (*(FUNC))((ARG1), (ARG2), (ARG3)) + #endif + +-#endif /* XP_UNIX */ +- +- + + /* NPN_GetUrlNotify */ + +@@ -908,74 +905,11 @@ + NPN_GetJavaPeerUPP getJavaPeer; + NPN_GetURLNotifyUPP geturlnotify; + NPN_PostURLNotifyUPP posturlnotify; +-#ifdef XP_UNIX + NPN_GetValueUPP getvalue; +-#endif /* XP_UNIX */ + } NPNetscapeFuncs; + + + +-#ifdef XP_MAC +-/****************************************************************************************** +- * Mac platform-specific plugin glue stuff +- *******************************************************************************************/ +- +-/* +- * Main entry point of the plugin. +- * This routine will be called when the plugin is loaded. The function +- * tables are passed in and the plugin fills in the NPPluginFuncs table +- * and NPPShutdownUPP for Netscape's use. +- */ +- +-#if GENERATINGCFM +- +-typedef UniversalProcPtr NPP_MainEntryUPP; +-enum { +- uppNPP_MainEntryProcInfo = kThinkCStackBased +- | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(NPNetscapeFuncs*))) +- | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(NPPluginFuncs*))) +- | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(NPP_ShutdownUPP*))) +- | RESULT_SIZE(SIZE_CODE(sizeof(NPError))) +-}; +-#define NewNPP_MainEntryProc(FUNC) \ +- (NPP_MainEntryUPP) NewRoutineDescriptor((ProcPtr)(FUNC), uppNPP_MainEntryProcInfo, GetCurrentArchitecture()) +-#define CallNPP_MainEntryProc(FUNC, netscapeFunc, pluginFunc, shutdownUPP) \ +- CallUniversalProc((UniversalProcPtr)(FUNC), (ProcInfoType)uppNPP_MainEntryProcInfo, (netscapeFunc), (pluginFunc), (shutdownUPP)) +- +-#else +- +-typedef NPError (*NPP_MainEntryUPP)(NPNetscapeFuncs*, NPPluginFuncs*, NPP_ShutdownUPP*); +-#define NewNPP_MainEntryProc(FUNC) \ +- ((NPP_MainEntryUPP) (FUNC)) +-#define CallNPP_MainEntryProc(FUNC, netscapeFunc, pluginFunc, shutdownUPP) \ +- (*(FUNC))((netscapeFunc), (pluginFunc), (shutdownUPP)) +- +-#endif +-#endif /* MAC */ +- +- +-#ifdef _WINDOWS +- +-#ifdef __cplusplus +-extern "C" { +-#endif +- +-/* plugin meta member functions */ +- +-NPError WINAPI NP_GetEntryPoints(NPPluginFuncs* pFuncs); +- +-NPError WINAPI NP_Initialize(NPNetscapeFuncs* pFuncs); +- +-NPError WINAPI NP_Shutdown(); +- +-#ifdef __cplusplus +-} +-#endif +- +-#endif /* _WINDOWS */ +- +-#ifdef XP_UNIX +- + #ifdef __cplusplus + extern "C" { + #endif +@@ -990,6 +924,4 @@ + } + #endif + +-#endif /* XP_UNIX */ +- + #endif /* _NPUPP_H_ */ +qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq diff -ruNd devel/plugin_sdk/scripts/pre-patch devel/plugin_sdk/scripts/pre-patch --- devel/plugin_sdk/scripts/pre-patch Thu Jan 1 03:00:00 1970 +++ devel/plugin_sdk/scripts/pre-patch Wed Jan 7 03:28:44 1998 @@ -0,0 +1,5 @@ +#!/bin/sh + +cp ${WRKSRC}/examples/UnixTemplate/Unix/makefile.linux ${WRKSRC}/examples/UnixTemplate/Unix/Makefile +cp ${WRKSRC}/examples/simple/Unix/makefile.linux ${WRKSRC}/examples/simple/Unix/Makefile +