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.