From a2653bc236478d58608e7d99da22c38e13a541cc Mon Sep 17 00:00:00 2001 From: Sameer Vijaykar Date: Thu, 26 Jan 2023 16:34:09 +0100 Subject: [PATCH] Export some more symbols for use in chromium tests. Bug: chromium:1408420 Change-Id: I4d427dfacf79c3dbbbcd9bf969f1af7fee4a2f67 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/291522 Commit-Queue: Sameer Vijaykar Reviewed-by: Jonas Oreland Reviewed-by: Mirko Bonadei Cr-Commit-Position: refs/heads/main@{#39211} --- p2p/base/ice_controller_interface.h | 3 ++- p2p/base/ice_switch_reason.h | 4 +++- rtc_base/ip_address.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/p2p/base/ice_controller_interface.h b/p2p/base/ice_controller_interface.h index 482043ef35..8b63ed3fc3 100644 --- a/p2p/base/ice_controller_interface.h +++ b/p2p/base/ice_controller_interface.h @@ -19,12 +19,13 @@ #include "p2p/base/connection.h" #include "p2p/base/ice_switch_reason.h" #include "p2p/base/ice_transport_internal.h" +#include "rtc_base/system/rtc_export.h" namespace cricket { struct IceFieldTrials; // Forward declaration to avoid circular dependency. -struct IceRecheckEvent { +struct RTC_EXPORT IceRecheckEvent { IceRecheckEvent(IceSwitchReason _reason, int _recheck_delay_ms) : reason(_reason), recheck_delay_ms(_recheck_delay_ms) {} diff --git a/p2p/base/ice_switch_reason.h b/p2p/base/ice_switch_reason.h index 2c4fe31884..65f49d3d58 100644 --- a/p2p/base/ice_switch_reason.h +++ b/p2p/base/ice_switch_reason.h @@ -13,6 +13,8 @@ #include +#include "rtc_base/system/rtc_export.h" + namespace cricket { enum class IceSwitchReason { @@ -31,7 +33,7 @@ enum class IceSwitchReason { ICE_CONTROLLER_RECHECK, }; -std::string IceSwitchReasonToString(IceSwitchReason reason); +RTC_EXPORT std::string IceSwitchReasonToString(IceSwitchReason reason); } // namespace cricket diff --git a/rtc_base/ip_address.h b/rtc_base/ip_address.h index 58ad8ba4b2..897e165565 100644 --- a/rtc_base/ip_address.h +++ b/rtc_base/ip_address.h @@ -174,7 +174,7 @@ bool IPIsSharedNetwork(const IPAddress& ip); // or an address belonging to a link-local, a private network or a shared // network. RTC_EXPORT bool IPIsPrivate(const IPAddress& ip); -bool IPIsUnspec(const IPAddress& ip); +RTC_EXPORT bool IPIsUnspec(const IPAddress& ip); size_t HashIP(const IPAddress& ip); // These are only really applicable for IPv6 addresses.