Export rtc::ReceivedPacket

To ensure the class can be used by Chrome etc.

Bug: webrtc:11943
Change-Id: I54951b5a2005f0efbe2c9fcb58e67e4fe7508b3b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/329020
Auto-Submit: Per Kjellander <perkj@webrtc.org>
Commit-Queue: Per Kjellander <perkj@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41268}
This commit is contained in:
Per K 2023-11-28 10:39:49 +01:00 committed by WebRTC LUCI CQ
parent 6417e7b721
commit f99c355a75
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@ rtc_library("received_packet") {
"..:socket_address",
"../../api:array_view",
"../../api/units:timestamp",
"../system:rtc_export",
]
absl_deps = [
"//third_party/abseil-cpp/absl/functional:any_invocable",

View File

@ -16,6 +16,7 @@
#include "api/array_view.h"
#include "api/units/timestamp.h"
#include "rtc_base/socket_address.h"
#include "rtc_base/system/rtc_export.h"
namespace rtc {
@ -23,7 +24,7 @@ namespace rtc {
// It contains a payload and metadata.
// ReceivedPacket itself does not put constraints on what payload contains. For
// example it may contains STUN, SCTP, SRTP, RTP, RTCP.... etc.
class ReceivedPacket {
class RTC_EXPORT ReceivedPacket {
public:
// Caller must keep memory pointed to by payload and address valid for the
// lifetime of this ReceivedPacket.