Rename RTC_EXPORT to RTC_OBJC_EXPORT.
A new version of RTC_EXPORT will be introduced by [1] and it will be used by WebRTC native code. This CL renames the current RTC_EXPORT to RTC_OBJC_EXPORT in order to avoid to mix them. It has been decided to avoid to unify them because RTC_OBJC_EXPORT always marks symbols with default visibility, while RTC_EXPORT will do it only when COMPONENT_BUILD is defined. [1] - https://webrtc-review.googlesource.com/c/src/+/97960 is Bug: webrtc:9419 Change-Id: I56a3fc6601c72d3ad6a58f9961a00e3761dfb5da Reviewed-on: https://webrtc-review.googlesource.com/100521 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Anders Carlsson <andersc@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24754}
This commit is contained in:
committed by
Commit Bot
parent
451579389c
commit
e8d5724cc5
@ -27,7 +27,7 @@ extern NSInteger const kRTCAudioSessionErrorConfiguration;
|
||||
// Surfaces AVAudioSession events. WebRTC will listen directly for notifications
|
||||
// from AVAudioSession and handle them before calling these delegate methods,
|
||||
// at which point applications can perform additional processing if required.
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@protocol RTCAudioSessionDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
@ -102,7 +102,7 @@ RTC_EXPORT
|
||||
* activation state has changed outside of RTCAudioSession. The current known use
|
||||
* case of this is when CallKit activates the audio session for the application
|
||||
*/
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@protocol RTCAudioSessionActivationDelegate <NSObject>
|
||||
|
||||
/** Called when the audio session is activated outside of the app by iOS. */
|
||||
@ -120,7 +120,7 @@ RTC_EXPORT
|
||||
* RTCAudioSession also coordinates activation so that the audio session is
|
||||
* activated only once. See |setActive:error:|.
|
||||
*/
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCAudioSession : NSObject <RTCAudioSessionActivationDelegate>
|
||||
|
||||
/** Convenience property to access the AVAudioSession singleton. Callers should
|
||||
|
||||
@ -22,7 +22,7 @@ RTC_EXTERN const double kRTCAudioSessionHighPerformanceIOBufferDuration;
|
||||
RTC_EXTERN const double kRTCAudioSessionLowComplexityIOBufferDuration;
|
||||
|
||||
// Struct to hold configuration values.
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCAudioSessionConfiguration : NSObject
|
||||
|
||||
@property(nonatomic, strong) NSString *category;
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
// Camera capture that implements RTCVideoCapturer. Delivers frames to a RTCVideoCapturerDelegate
|
||||
// (usually RTCVideoSource).
|
||||
NS_EXTENSION_UNAVAILABLE_IOS("Camera not available in app extensions.")
|
||||
|
||||
@ -24,7 +24,7 @@ typedef void (^RTCFileVideoCapturerErrorBlock)(NSError *error);
|
||||
*
|
||||
* See @c RTCVideoCapturer for more info on capturers.
|
||||
*/
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(10)
|
||||
@interface RTCFileVideoCapturer : RTCVideoCapturer
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
NS_AVAILABLE_MAC(10.11)
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCMTLNSVideoView : NSView <RTCVideoRenderer>
|
||||
|
||||
@property(nonatomic, weak) id<RTCVideoViewDelegate> delegate;
|
||||
|
||||
@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
NS_CLASS_AVAILABLE_IOS(9)
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCMTLVideoView : UIView<RTCVideoRenderer>
|
||||
|
||||
@property(nonatomic, weak) id<RTCVideoViewDelegate> delegate;
|
||||
|
||||
@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class RTCEAGLVideoView;
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@protocol RTCEAGLVideoViewDelegate <RTCVideoViewDelegate>
|
||||
@end
|
||||
|
||||
@ -27,7 +27,7 @@ RTC_EXPORT
|
||||
* RTCEAGLVideoView is an RTCVideoRenderer which renders video frames in its
|
||||
* bounds using OpenGLES 2.0 or OpenGLES 3.0.
|
||||
*/
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
NS_EXTENSION_UNAVAILABLE_IOS("Rendering not available in app extensions.")
|
||||
@interface RTCEAGLVideoView : UIView <RTCVideoRenderer>
|
||||
|
||||
|
||||
@ -21,11 +21,11 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class RTCNSGLVideoView;
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@protocol RTCNSGLVideoViewDelegate <RTCVideoViewDelegate>
|
||||
@end
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCNSGLVideoView : NSOpenGLView <RTCVideoRenderer>
|
||||
|
||||
@property(nonatomic, weak) id<RTCVideoViewDelegate> delegate;
|
||||
|
||||
@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* RTCVideoViewShading provides a way for apps to customize the OpenGL(ES) shaders used in
|
||||
* rendering for the RTCEAGLVideoView/RTCNSGLVideoView.
|
||||
*/
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@protocol RTCVideoViewShading <NSObject>
|
||||
|
||||
/** Callback for I420 frames. Each plane is given as a texture. */
|
||||
|
||||
@ -19,7 +19,7 @@ typedef NS_ENUM(NSUInteger, RTCH264PacketizationMode) {
|
||||
RTCH264PacketizationModeSingleNalUnit // Mode 0 - only single NALU allowed
|
||||
};
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCCodecSpecificInfoH264 : NSObject <RTCCodecSpecificInfo>
|
||||
|
||||
@property(nonatomic, assign) RTCH264PacketizationMode packetizationMode;
|
||||
|
||||
@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/** This decoder factory include support for all codecs bundled with WebRTC. If using custom
|
||||
* codecs, create custom implementations of RTCVideoEncoderFactory and RTCVideoDecoderFactory.
|
||||
*/
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCDefaultVideoDecoderFactory : NSObject <RTCVideoDecoderFactory>
|
||||
@end
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/** This encoder factory include support for all codecs bundled with WebRTC. If using custom
|
||||
* codecs, create custom implementations of RTCVideoEncoderFactory and RTCVideoDecoderFactory.
|
||||
*/
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCDefaultVideoEncoderFactory : NSObject <RTCVideoEncoderFactory>
|
||||
|
||||
@property(nonatomic, retain) RTCVideoCodecInfo *preferredCodec;
|
||||
|
||||
@ -12,11 +12,11 @@
|
||||
|
||||
#import "RTCMacros.h"
|
||||
|
||||
RTC_EXPORT extern NSString *const kRTCVideoCodecH264Name;
|
||||
RTC_EXPORT extern NSString *const kRTCLevel31ConstrainedHigh;
|
||||
RTC_EXPORT extern NSString *const kRTCLevel31ConstrainedBaseline;
|
||||
RTC_EXPORT extern NSString *const kRTCMaxSupportedH264ProfileLevelConstrainedHigh;
|
||||
RTC_EXPORT extern NSString *const kRTCMaxSupportedH264ProfileLevelConstrainedBaseline;
|
||||
RTC_OBJC_EXPORT extern NSString *const kRTCVideoCodecH264Name;
|
||||
RTC_OBJC_EXPORT extern NSString *const kRTCLevel31ConstrainedHigh;
|
||||
RTC_OBJC_EXPORT extern NSString *const kRTCLevel31ConstrainedBaseline;
|
||||
RTC_OBJC_EXPORT extern NSString *const kRTCMaxSupportedH264ProfileLevelConstrainedHigh;
|
||||
RTC_OBJC_EXPORT extern NSString *const kRTCMaxSupportedH264ProfileLevelConstrainedBaseline;
|
||||
|
||||
/** H264 Profiles and levels. */
|
||||
typedef NS_ENUM(NSUInteger, RTCH264Profile) {
|
||||
@ -47,7 +47,7 @@ typedef NS_ENUM(NSUInteger, RTCH264Level) {
|
||||
RTCH264Level5_2 = 52
|
||||
};
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCH264ProfileLevelId : NSObject
|
||||
|
||||
@property(nonatomic, readonly) RTCH264Profile profile;
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
#import "RTCMacros.h"
|
||||
#import "RTCVideoDecoderFactory.h"
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCVideoDecoderFactoryH264 : NSObject <RTCVideoDecoderFactory>
|
||||
@end
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
#import "RTCMacros.h"
|
||||
#import "RTCVideoDecoder.h"
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCVideoDecoderH264 : NSObject <RTCVideoDecoder>
|
||||
@end
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
#import "RTCMacros.h"
|
||||
#import "RTCVideoEncoderFactory.h"
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCVideoEncoderFactoryH264 : NSObject <RTCVideoEncoderFactory>
|
||||
@end
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
#import "RTCVideoCodecInfo.h"
|
||||
#import "RTCVideoEncoder.h"
|
||||
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCVideoEncoderH264 : NSObject <RTCVideoEncoder>
|
||||
|
||||
- (instancetype)initWithCodecInfo:(RTCVideoCodecInfo *)codecInfo;
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/** RTCVideoFrameBuffer containing a CVPixelBufferRef */
|
||||
RTC_EXPORT
|
||||
RTC_OBJC_EXPORT
|
||||
@interface RTCCVPixelBuffer : NSObject <RTCVideoFrameBuffer>
|
||||
|
||||
@property(nonatomic, readonly) CVPixelBufferRef pixelBuffer;
|
||||
|
||||
Reference in New Issue
Block a user