Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/media/bridge/IPeerConnection.idl
*/
#ifndef __gen_IPeerConnection_h__
#define __gen_IPeerConnection_h__
#include "nsIThread.h"
#include "nsIDOMWindow.h"
#include "nsIPropertyBag2.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: IPeerConnectionObserver */
#define IPEERCONNECTIONOBSERVER_IID_STR "d7dfe148-0416-446b-a128-66a7c71ae8d3"
#define IPEERCONNECTIONOBSERVER_IID \
{0xd7dfe148, 0x0416, 0x446b, \
{ 0xa1, 0x28, 0x66, 0xa7, 0xc7, 0x1a, 0xe8, 0xd3 }}
class NS_NO_VTABLE IPeerConnectionObserver : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(IPEERCONNECTIONOBSERVER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = IPeerConnectionObserver;
};
NS_DEFINE_STATIC_IID_ACCESSOR(IPeerConnectionObserver, IPEERCONNECTIONOBSERVER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IPEERCONNECTIONOBSERVER \
/* no methods! */
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_IPEERCONNECTIONOBSERVER \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IPEERCONNECTIONOBSERVER(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IPEERCONNECTIONOBSERVER(_to) \
/* no methods! */
/* starting interface: IPeerConnection */
#define IPEERCONNECTION_IID_STR "14afc8e7-e421-4d0c-99a5-69308d871481"
#define IPEERCONNECTION_IID \
{0x14afc8e7, 0xe421, 0x4d0c, \
{ 0x99, 0xa5, 0x69, 0x30, 0x8d, 0x87, 0x14, 0x81 }}
class NS_NO_VTABLE IPeerConnection : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(IPEERCONNECTION_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = IPeerConnection;
enum {
kHintAudio = 1U,
kHintVideo = 2U,
kActionNone = -1,
kActionOffer = 0,
kActionAnswer = 1,
kActionPRAnswer = 2,
kActionRollback = 3,
kIceGathering = 0,
kIceWaiting = 1,
kIceChecking = 2,
kIceConnected = 3,
kIceFailed = 4,
kNew = 0,
kNegotiating = 1,
kActive = 2,
kClosing = 3,
kClosed = 4,
kDataChannelReliable = 0U,
kDataChannelPartialReliableRexmit = 1U,
kDataChannelPartialReliableTimed = 2U,
kNoError = 0U,
kInvalidCandidate = 2U,
kInvalidMediastreamTrack = 3U,
kInvalidState = 4U,
kInvalidSessionDescription = 5U,
kIncompatibleSessionDescription = 6U,
kIncompatibleMediaStreamTrack = 8U,
kInternalError = 9U,
kTypeError = 10U,
kOperationError = 11U,
kMaxErrorType = 11U
};
};
NS_DEFINE_STATIC_IID_ACCESSOR(IPeerConnection, IPEERCONNECTION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IPEERCONNECTION \
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_IPEERCONNECTION \
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IPEERCONNECTION(_to) \
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IPEERCONNECTION(_to) \
#endif /* __gen_IPeerConnection_h__ */