128e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org/*
228e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * libjingle
35f93d0a140515e3b8cdd1b9a4c6f5871144e5deejlmiller@webrtc.org * Copyright 2013 Google Inc.
428e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *
528e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * Redistribution and use in source and binary forms, with or without
628e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * modification, are permitted provided that the following conditions are met:
728e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *
828e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *  1. Redistributions of source code must retain the above copyright notice,
928e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *     this list of conditions and the following disclaimer.
1028e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *  2. Redistributions in binary form must reproduce the above copyright notice,
1128e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *     this list of conditions and the following disclaimer in the documentation
1228e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *     and/or other materials provided with the distribution.
1328e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *  3. The name of the author may not be used to endorse or promote products
1428e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *     derived from this software without specific prior written permission.
1528e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org *
1628e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
1728e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1828e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
1928e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2028e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2128e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
2228e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2328e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
2428e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
2528e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2628e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org */
2728e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org
2828e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org// Enums that are common to the ObjectiveC version of the PeerConnection API.
2928e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org
3028e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org// RTCICEConnectionState correspond to the states in webrtc::ICEConnectionState.
3128e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.orgtypedef enum {
3228e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEConnectionNew,
3328e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEConnectionChecking,
3428e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEConnectionConnected,
3528e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEConnectionCompleted,
3628e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEConnectionFailed,
3728e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEConnectionDisconnected,
3828e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEConnectionClosed,
393d564c10157d7de1d2d4236f4e2a13ff1363d52bGuo-wei Shieh  RTCICEConnectionMax,
4028e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org} RTCICEConnectionState;
4128e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org
4228e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org// RTCICEGatheringState the states in webrtc::ICEGatheringState.
4328e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.orgtypedef enum {
4428e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEGatheringNew,
4528e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEGatheringGathering,
4628e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCICEGatheringComplete,
4728e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org} RTCICEGatheringState;
4828e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org
4928e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org// RTCSignalingState correspond to the states in webrtc::SignalingState.
5028e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.orgtypedef enum {
5128e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSignalingStable,
5228e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSignalingHaveLocalOffer,
5328e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSignalingHaveLocalPrAnswer,
5428e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSignalingHaveRemoteOffer,
5528e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSignalingHaveRemotePrAnswer,
5628e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSignalingClosed,
5728e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org} RTCSignalingState;
5828e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org
5919b1be159e13a5aa2ba03bc5eda7c67e50bcfb7dtkchin@webrtc.org// RTCStatsOutputLevel correspond to webrtc::StatsOutputLevel
6019b1be159e13a5aa2ba03bc5eda7c67e50bcfb7dtkchin@webrtc.orgtypedef enum {
6119b1be159e13a5aa2ba03bc5eda7c67e50bcfb7dtkchin@webrtc.org  RTCStatsOutputLevelStandard,
6219b1be159e13a5aa2ba03bc5eda7c67e50bcfb7dtkchin@webrtc.org  RTCStatsOutputLevelDebug,
6319b1be159e13a5aa2ba03bc5eda7c67e50bcfb7dtkchin@webrtc.org} RTCStatsOutputLevel;
6419b1be159e13a5aa2ba03bc5eda7c67e50bcfb7dtkchin@webrtc.org
6528e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org// RTCSourceState corresponds to the states in webrtc::SourceState.
6628e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.orgtypedef enum {
6728e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSourceStateInitializing,
6828e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSourceStateLive,
6928e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSourceStateEnded,
7028e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCSourceStateMuted,
7128e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org} RTCSourceState;
7228e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org
7328e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org// RTCTrackState corresponds to the states in webrtc::TrackState.
7428e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.orgtypedef enum {
7528e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCTrackStateInitializing,
7628e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCTrackStateLive,
7728e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCTrackStateEnded,
7828e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org  RTCTrackStateFailed,
7928e20752806a492f5a6a5d343c02f9556f39b1cdhenrike@webrtc.org} RTCTrackState;
80