-
Notifications
You must be signed in to change notification settings - Fork 76
/
ctestenums.cc
66 lines (58 loc) · 2.86 KB
/
ctestenums.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include "ctestenums.h"
#include "api/peerconnectioninterface.h"
using namespace webrtc;
/*
In order to match native enums with Go enum values, it is necessary to
expose the values to CGO identifiers which Go can access.
*/
const int CGO_IceTransportPolicyNone =
PeerConnectionInterface::IceTransportsType::kNone;
const int CGO_IceTransportPolicyRelay =
PeerConnectionInterface::IceTransportsType::kRelay;
const int CGO_IceTransportPolicyNoHost =
PeerConnectionInterface::IceTransportsType::kNoHost;
const int CGO_IceTransportPolicyAll =
PeerConnectionInterface::IceTransportsType::kAll;
const int CGO_BundlePolicyBalanced =
PeerConnectionInterface::BundlePolicy::kBundlePolicyBalanced;
const int CGO_BundlePolicyMaxBundle =
PeerConnectionInterface::BundlePolicy::kBundlePolicyMaxBundle;
const int CGO_BundlePolicyMaxCompat =
PeerConnectionInterface::BundlePolicy::kBundlePolicyMaxCompat;
// TODO: [ED]
// const int CGO_RtcpMuxPolicyNegotiate =
// PeerConnectionInterface::RtcpMuxPolicy::kRtcpMuxPolicyNegotiate;
// const int CGO_RtcpMuxPolicyRequire =
// PeerConnectionInterface::RtcpMuxPolicy::kRtcpMuxPolicyRequire;
const int CGO_SignalingStateStable =
PeerConnectionInterface::SignalingState::kStable;
const int CGO_SignalingStateHaveLocalOffer =
PeerConnectionInterface::SignalingState::kHaveLocalOffer;
const int CGO_SignalingStateHaveLocalPrAnswer =
PeerConnectionInterface::SignalingState::kHaveLocalPrAnswer;
const int CGO_SignalingStateHaveRemoteOffer =
PeerConnectionInterface::SignalingState::kHaveRemoteOffer;
const int CGO_SignalingStateHaveRemotePrAnswer =
PeerConnectionInterface::SignalingState::kHaveRemotePrAnswer;
const int CGO_SignalingStateClosed =
PeerConnectionInterface::SignalingState::kClosed;
const int CGO_IceConnectionStateNew =
PeerConnectionInterface::IceConnectionState::kIceConnectionNew;
const int CGO_IceConnectionStateChecking =
PeerConnectionInterface::IceConnectionState::kIceConnectionChecking;
const int CGO_IceConnectionStateConnected =
PeerConnectionInterface::IceConnectionState::kIceConnectionConnected;
const int CGO_IceConnectionStateCompleted =
PeerConnectionInterface::IceConnectionState::kIceConnectionCompleted;
const int CGO_IceConnectionStateFailed =
PeerConnectionInterface::IceConnectionState::kIceConnectionFailed;
const int CGO_IceConnectionStateDisconnected =
PeerConnectionInterface::IceConnectionState::kIceConnectionDisconnected;
const int CGO_IceConnectionStateClosed =
PeerConnectionInterface::IceConnectionState::kIceConnectionClosed;
const int CGO_IceGatheringStateNew =
PeerConnectionInterface::IceGatheringState::kIceGatheringNew;
const int CGO_IceGatheringStateGathering =
PeerConnectionInterface::IceGatheringState::kIceGatheringGathering;
const int CGO_IceGatheringStateComplete =
PeerConnectionInterface::IceGatheringState::kIceGatheringComplete;