adapt mork to new component mgr, r/sr=neil, bug 575740

This commit is contained in:
David Bienvenu 2010-07-03 17:57:57 -07:00
parent dff5576412
commit 32ecf915f9

View File

@ -36,10 +36,8 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsIServiceManager.h"
#include "mozilla/ModuleUtils.h"
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsMorkCID.h"
#include "nsIMdbFactoryFactory.h"
#include "mdb.h"
@ -59,16 +57,25 @@ protected:
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMorkFactoryService)
static const nsModuleComponentInfo components[] =
{
{ "Mork Factory Service",
NS_MORK_CID,
NS_MORK_CONTRACTID,
nsMorkFactoryServiceConstructor
}
NS_DEFINE_NAMED_CID(NS_MORK_CID);
const mozilla::Module::CIDEntry kMorkCIDs[] = {
{ &kNS_MORK_CID, false, NULL, nsMorkFactoryServiceConstructor },
{ NULL }
};
NS_IMPL_NSGETMODULE(nsMorkModule, components)
const mozilla::Module::ContractIDEntry kMorkContracts[] = {
{ NS_MORK_CONTRACTID, &kNS_MORK_CID },
{ NULL }
};
static const mozilla::Module kMorkModule = {
mozilla::Module::kVersion,
kMorkCIDs,
kMorkContracts
};
NSMODULE_DEFN(mork) = &kMorkModule;
NS_IMPL_ISUPPORTS1(nsMorkFactoryService, nsIMdbFactoryService)