зеркало из https://github.com/mozilla/gecko-dev.git
47 строки
1.2 KiB
C++
47 строки
1.2 KiB
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "base/linked_ptr.h"
|
|
|
|
#include "mozilla/ModuleUtils.h"
|
|
#include "nsIClassInfoImpl.h"
|
|
|
|
#ifdef MOZ_WEBRTC
|
|
|
|
#include "PeerConnectionImpl.h"
|
|
|
|
#define PEERCONNECTION_CID \
|
|
{0xb93af7a1, 0x3411, 0x44a8, {0xbd, 0x0a, 0x8a, 0xf3, 0xdd, 0xe4, 0xd8, 0xd8}}
|
|
|
|
#define PEERCONNECTION_CONTRACTID "@mozilla.org/peerconnection;1"
|
|
|
|
namespace sipcc
|
|
{
|
|
// Factory defined in sipcc::, defines sipcc::PeerConnectionImplConstructor
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(PeerConnectionImpl)
|
|
}
|
|
|
|
// Defines kPEERCONNECTION_CID
|
|
NS_DEFINE_NAMED_CID(PEERCONNECTION_CID);
|
|
|
|
static const mozilla::Module::CIDEntry kCIDs[] = {
|
|
{ &kPEERCONNECTION_CID, false, nullptr, sipcc::PeerConnectionImplConstructor },
|
|
{ nullptr }
|
|
};
|
|
|
|
static const mozilla::Module::ContractIDEntry kContracts[] = {
|
|
{ PEERCONNECTION_CONTRACTID, &kPEERCONNECTION_CID },
|
|
{ nullptr }
|
|
};
|
|
|
|
static const mozilla::Module kModule = {
|
|
mozilla::Module::kVersion,
|
|
kCIDs,
|
|
kContracts
|
|
};
|
|
|
|
NSMODULE_DEFN(peerconnection) = &kModule;
|
|
|
|
#endif
|