michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* vim:expandtab:shiftwidth=4:tabstop=4: michael@0: */ 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 "nsServiceManagerUtils.h" michael@0: #include "nsICategoryManager.h" michael@0: #include "mozilla/ModuleUtils.h" michael@0: #include "nsIAppStartupNotifier.h" michael@0: #include "nsNetworkManagerListener.h" michael@0: #include "nsNetCID.h" michael@0: michael@0: #define NS_DBUS_NETWORK_LINK_SERVICE_CID \ michael@0: { 0x75a500a2, \ michael@0: 0x0030, \ michael@0: 0x40f7, \ michael@0: { 0x86, 0xf8, 0x63, 0xf2, 0x25, 0xb9, 0x40, 0xae } \ michael@0: } michael@0: michael@0: /* ===== XPCOM registration stuff ======== */ michael@0: michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsNetworkManagerListener, Init) michael@0: NS_DEFINE_NAMED_CID(NS_DBUS_NETWORK_LINK_SERVICE_CID); michael@0: michael@0: static const mozilla::Module::CIDEntry kDBUSCIDs[] = { michael@0: { &kNS_DBUS_NETWORK_LINK_SERVICE_CID, false, nullptr, nsNetworkManagerListenerConstructor }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::ContractIDEntry kDBUSContracts[] = { michael@0: { NS_NETWORK_LINK_SERVICE_CONTRACTID, &kNS_DBUS_NETWORK_LINK_SERVICE_CID }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module kDBUSModule = { michael@0: mozilla::Module::kVersion, michael@0: kDBUSCIDs, michael@0: kDBUSContracts michael@0: }; michael@0: michael@0: NSMODULE_DEFN(nsDBusModule) = &kDBUSModule;