2015-12-13 19:58:11 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-04-27 01:54:20 -07:00
|
|
|
#import "WebRTC/RTCIceServer.h"
|
2015-12-13 19:58:11 -08:00
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#include "webrtc/api/peerconnectioninterface.h"
|
2015-12-13 19:58:11 -08:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@interface RTCIceServer ()
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* IceServer struct representation of this RTCIceServer object's data.
|
|
|
|
|
* This is needed to pass to the underlying C++ APIs.
|
|
|
|
|
*/
|
|
|
|
|
@property(nonatomic, readonly)
|
2016-03-04 07:09:09 -08:00
|
|
|
webrtc::PeerConnectionInterface::IceServer nativeServer;
|
2015-12-13 19:58:11 -08:00
|
|
|
|
2016-01-26 13:06:42 -08:00
|
|
|
/** Initialize an RTCIceServer from a native IceServer. */
|
|
|
|
|
- (instancetype)initWithNativeServer:
|
|
|
|
|
(webrtc::PeerConnectionInterface::IceServer)nativeServer;
|
|
|
|
|
|
2015-12-13 19:58:11 -08:00
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|