michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include michael@0: michael@0: #include "mozilla/Module.h" michael@0: #include "mozilla/ModuleUtils.h" michael@0: #include "nsID.h" michael@0: #include "nsITransactionManager.h" michael@0: #include "nsTransactionManager.h" michael@0: #include "nsTransactionManagerCID.h" michael@0: michael@0: //////////////////////////////////////////////////////////////////////// michael@0: // Define the contructor function for the objects michael@0: // michael@0: // NOTE: This creates an instance of objects by using the default constructor michael@0: // michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsTransactionManager) michael@0: NS_DEFINE_NAMED_CID(NS_TRANSACTIONMANAGER_CID); michael@0: michael@0: static const mozilla::Module::CIDEntry kTxMgrCIDs[] = { michael@0: { &kNS_TRANSACTIONMANAGER_CID, false, nullptr, nsTransactionManagerConstructor }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::ContractIDEntry kTxMgrContracts[] = { michael@0: { NS_TRANSACTIONMANAGER_CONTRACTID, &kNS_TRANSACTIONMANAGER_CID }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module kTxMgrModule = { michael@0: mozilla::Module::kVersion, michael@0: kTxMgrCIDs, michael@0: kTxMgrContracts michael@0: }; michael@0: NSMODULE_DEFN(nsTransactionManagerModule) = &kTxMgrModule;