From b1ffa9bd4e21e343a3a5bbbfd5bb91bbdb003ad9 Mon Sep 17 00:00:00 2001 From: Harald Alvestrand Date: Mon, 19 Aug 2024 12:33:03 +0000 Subject: [PATCH] Export SdpTypeFromString Needed to get rid of a form of CreateSessionDescription that is due for deprecation. Bug: None Change-Id: I9717b7ded1e28cf803de4bebc852c2f255851918 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/359941 Reviewed-by: Mirko Bonadei Commit-Queue: Harald Alvestrand Cr-Commit-Position: refs/heads/main@{#42808} --- api/jsep.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/jsep.h b/api/jsep.h index 643a99d315..2578a281d3 100644 --- a/api/jsep.h +++ b/api/jsep.h @@ -117,7 +117,8 @@ 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 // results in nullopt. -absl::optional SdpTypeFromString(const std::string& type_str); +RTC_EXPORT absl::optional SdpTypeFromString( + const std::string& type_str); // Class representation of an SDP session description. //