From 3ac6375bb31f188baf50d1cbf2bd8748f9dd8360 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Tue, 5 Nov 2019 09:56:32 +0100 Subject: [PATCH] Add 3 missing RTC_EXPORT. These two annotations are now needed to correctly compile Chromium with is_component_build=true and the WebRTC component. TBR: kwiberg@webrtc.org Bug: webrtc:9419 Change-Id: Id5603cf747357c0c2a4b41684eb4fd607cccfdea Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/158881 Commit-Queue: Mirko Bonadei Reviewed-by: Karl Wiberg Reviewed-by: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#29686} --- api/jsep.h | 2 +- pc/sdp_utils.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/api/jsep.h b/api/jsep.h index 7b4934aa66..86f4162f84 100644 --- a/api/jsep.h +++ b/api/jsep.h @@ -112,7 +112,7 @@ enum class SdpType { // Returns the string form of the given SDP type. String forms are defined in // SessionDescriptionInterface. -const char* SdpTypeToString(SdpType type); +RTC_EXPORT const char* SdpTypeToString(SdpType type); // Returns the SdpType from its string form. The string form can be one of the // constants defined in SessionDescriptionInterface. Passing in any other string diff --git a/pc/sdp_utils.h b/pc/sdp_utils.h index 5e765fa586..fc4b289f91 100644 --- a/pc/sdp_utils.h +++ b/pc/sdp_utils.h @@ -17,17 +17,18 @@ #include "api/jsep.h" #include "pc/session_description.h" +#include "rtc_base/system/rtc_export.h" namespace webrtc { // Returns a copy of the given session description. -std::unique_ptr CloneSessionDescription( +RTC_EXPORT std::unique_ptr CloneSessionDescription( const SessionDescriptionInterface* sdesc); // Returns a copy of the given session description with the type changed. -std::unique_ptr CloneSessionDescriptionAsType( - const SessionDescriptionInterface* sdesc, - SdpType type); +RTC_EXPORT std::unique_ptr +CloneSessionDescriptionAsType(const SessionDescriptionInterface* sdesc, + SdpType type); // Function that takes a single session description content with its // corresponding transport and produces a boolean.