RTCSessionDescription+Private.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  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. #import "RTCSessionDescription.h"
  11. #include "api/jsep.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface RTC_OBJC_TYPE (RTCSessionDescription)
  14. ()
  15. /**
  16. * The native SessionDescriptionInterface representation of this
  17. * RTCSessionDescription object. This is needed to pass to the underlying C++
  18. * APIs.
  19. */
  20. @property(nonatomic, readonly, nullable) webrtc::SessionDescriptionInterface *nativeDescription;
  21. /**
  22. * Initialize an RTCSessionDescription from a native
  23. * SessionDescriptionInterface. No ownership is taken of the native session
  24. * description.
  25. */
  26. - (instancetype)initWithNativeDescription:
  27. (const webrtc::SessionDescriptionInterface *)nativeDescription;
  28. + (std::string)stdStringForType:(RTCSdpType)type;
  29. + (RTCSdpType)typeForStdString:(const std::string &)string;
  30. @end
  31. NS_ASSUME_NONNULL_END