blob: 3eee8199657dff9c1f5dd8116d6f8b76bd18f8ef [file] [log] [blame]
hjonaa32c3e2015-12-13 19:58:11 -08001/*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020011#import "RTCIceServer.h"
hjonaa32c3e2015-12-13 19:58:11 -080012
Steve Anton10542f22019-01-11 09:11:00 -080013#include "api/peer_connection_interface.h"
hjonaa32c3e2015-12-13 19:58:11 -080014
15NS_ASSUME_NONNULL_BEGIN
16
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020017@interface RTC_OBJC_TYPE (RTCIceServer)
18()
hjonaa32c3e2015-12-13 19:58:11 -080019
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020020 /**
21 * IceServer struct representation of this RTCIceServer object's data.
22 * This is needed to pass to the underlying C++ APIs.
23 */
24 @property(nonatomic, readonly) webrtc::PeerConnectionInterface::IceServer nativeServer;
hjonaa32c3e2015-12-13 19:58:11 -080025
hjon6d49a8e2016-01-26 13:06:42 -080026/** Initialize an RTCIceServer from a native IceServer. */
Yves Gerey665174f2018-06-19 15:03:05 +020027- (instancetype)initWithNativeServer:(webrtc::PeerConnectionInterface::IceServer)nativeServer;
hjon6d49a8e2016-01-26 13:06:42 -080028
hjonaa32c3e2015-12-13 19:58:11 -080029@end
30
31NS_ASSUME_NONNULL_END