This change-bundle starts the process of re-activating pluglets.
Next step is to figure out the best way to fix these unresolved symbols at link time when building pluglet.dll /cygdrive/d/Projects/mozilla/MOZILLA_NIH/FIREFOX_1_5_0_1/mozilla/./build/cygwin-wrapper link -NOLOGO -DLL -OUT:pluglet.dll -PDB:pluglet.pdb -SUBSYSTEM:WINDOWS List.obj Pluglet.obj PlugletEngine.obj PlugletFactory.obj PlugletInputStream.obj PlugletLoader.obj PlugletManager.obj PlugletPeer.obj PlugletStreamInfo.obj PlugletStreamListener.obj PlugletsDir.obj Registry.obj PlugletViewFactory.obj ./module.res -DEBUG -DEBUGTYPE:CV kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib D:\Files_2k\j2sdk1.4.2_03/lib/jvm.lib ../../../dist/lib/xpcom.lib ../../../dist/lib/xpcom_core.lib ../../../dist/lib/nspr4.lib ../../../dist/lib/plc4.lib ../../../dist/lib/plds4.lib Creating library pluglet.lib and object pluglet.exp PlugletsDir.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall nsFileSpec::~nsFileSpec(void)" (__imp_??1nsFileSpec@@UAE@XZ) PlugletsDir.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall nsDirectoryIterator::~nsDirectoryIterator(void)" (__imp_??1nsDirectoryIterator@@UAE@XZ) PlugletsDir.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class nsDirectoryIterator & __thiscall nsDirectoryIterator::operator++(void)" (__imp_??EnsDirectoryIterator@@QAEAAV0@XZ) PlugletsDir.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall nsDirectoryIterator::nsDirectoryIterator(class nsFileSpec const &,int)" (__imp_??0nsDirectoryIterator@@QAE@ABVnsFileSpec@@H@Z) PlugletsDir.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall nsFileSpec::nsFileSpec(char const *,int)" (__imp_??0nsFileSpec@@QAE@PBDH@Z) PlugletsDir.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall nsSpecialSystemDirectory::~nsSpecialSystemDirectory(void)" (__imp_??1nsSpecialSystemDirectory@@UAE@XZ) PlugletsDir.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall nsFileSpec::operator+=(char const *)" (__imp_??YnsFileSpec@@QAEXPBD@Z) PlugletsDir.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall nsSpecialSystemDirectory::nsSpecialSystemDirectory(enum nsSpecialSystemDirectory::SystemDirectories)" (__imp_??0nsSpecialSystemDirectory@@QAE@W4SystemDirectories@0@@Z) PlugletsDir.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall nsFileSpec::GetCString(void)const " (__imp_?GetCString@nsFileSpec@@QBEPBDXZ) PlugletViewFactory.obj : error LNK2001: unresolved external symbol "public: __thiscall PlugletViewWindows::PlugletViewWindows(void)" (??0PlugletViewWindows@@QAE@XZ) pluglet.dll : fatal error LNK1120: 10 unresolved externals M makefiles +java/plugins/Makefile +java/plugins/src/Makefile Add generation of these Makefiles M plugins/src/Makefile.in - copy some content from webclient M plugins/src/Pluglet.cpp M plugins/src/PlugletEngine.cpp M plugins/src/PlugletStreamListener.cpp - Changes from John Sublet. git-svn-id: svn://10.0.0.236/trunk@192678 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "PlugletEngine.h"
|
||||
#include "Pluglet.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "prenv.h"
|
||||
#include "PlugletManager.h"
|
||||
#include "nsIGenericFactory.h"
|
||||
@@ -142,7 +143,7 @@ jobject PlugletEngine::plugletManager = NULL;
|
||||
|
||||
#define PLUGIN_MIME_DESCRIPTION "*:*:Pluglet Engine"
|
||||
|
||||
NS_IMPL_ISUPPORTS(PlugletEngine,kIPluginIID);
|
||||
NS_IMPL_ISUPPORTS1(PlugletEngine,nsIPlugin);
|
||||
NS_METHOD PlugletEngine::Initialize(void) {
|
||||
//nb ???
|
||||
return NS_OK;
|
||||
@@ -217,7 +218,6 @@ char *ToString(jobject obj,JNIEnv *env) {
|
||||
}
|
||||
|
||||
PlugletEngine::PlugletEngine() {
|
||||
NS_INIT_REFCNT();
|
||||
PlugletLog::log = PR_NewLogModule("pluglets");
|
||||
dir = new PlugletsDir();
|
||||
engine = this;
|
||||
@@ -309,13 +309,19 @@ JNIEnv * PlugletEngine::GetJNIEnv(void) {
|
||||
|
||||
jobject PlugletEngine::GetPlugletManager(void) {
|
||||
PR_LOG(PlugletLog::log, PR_LOG_DEBUG,
|
||||
("PlugletEngine::GetPlugletManager\n"));
|
||||
if (!pluginManager) {
|
||||
nsresult res;
|
||||
NS_WITH_SERVICE(nsIPluginManager,_pluginManager,kPluginManagerCID,&res);
|
||||
if (NS_SUCCEEDED(res)) {
|
||||
pluginManager = _pluginManager;
|
||||
}
|
||||
("PlugletEngine::GetPlugletManager\n"));
|
||||
//Changed by John Sublet NS_WITH_SERVICE deprecated currently is
|
||||
//problematic: lxr.mozilla.org indicates version of
|
||||
//do_GetService that allows the res to be included in the
|
||||
//do_GetService call but that wouldn't work: FIXME
|
||||
|
||||
//NS_WITH_SERVICE(nsIPluginManager,_pluginManager,kPluginManagerCID,&res);
|
||||
nsCOMPtr<nsIPluginManager> _pluginManager (do_GetService(kPluginManagerCID));
|
||||
|
||||
|
||||
// Changed by John Sublet : FIXME this assumes _pluginManager will be properly set to NULL
|
||||
if (_pluginManager) {
|
||||
pluginManager = _pluginManager;
|
||||
}
|
||||
if (!pluginManager) {
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user