michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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 "mozilla/ModuleUtils.h" michael@0: #include "nsAutoConfig.h" michael@0: #include "nsReadConfig.h" michael@0: #include "nsIAppStartupNotifier.h" michael@0: michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsAutoConfig, Init) michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsReadConfig, Init) michael@0: michael@0: NS_DEFINE_NAMED_CID(NS_AUTOCONFIG_CID); michael@0: NS_DEFINE_NAMED_CID(NS_READCONFIG_CID); michael@0: michael@0: static const mozilla::Module::CIDEntry kAutoConfigCIDs[] = { michael@0: { &kNS_AUTOCONFIG_CID, false, nullptr, nsAutoConfigConstructor }, michael@0: { &kNS_READCONFIG_CID, false, nullptr, nsReadConfigConstructor }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::ContractIDEntry kAutoConfigContracts[] = { michael@0: { NS_AUTOCONFIG_CONTRACTID, &kNS_AUTOCONFIG_CID }, michael@0: { NS_READCONFIG_CONTRACTID, &kNS_READCONFIG_CID }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::CategoryEntry kAutoConfigCategories[] = { michael@0: { "pref-config-startup", "ReadConfig Module", NS_READCONFIG_CONTRACTID }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module kAutoConfigModule = { michael@0: mozilla::Module::kVersion, michael@0: kAutoConfigCIDs, michael@0: kAutoConfigContracts, michael@0: kAutoConfigCategories michael@0: }; michael@0: michael@0: NSMODULE_DEFN(nsAutoConfigModule) = &kAutoConfigModule;