mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
adapt mork to new component mgr, r/sr=neil, bug 575740
This commit is contained in:
parent
dff5576412
commit
32ecf915f9
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user