rtp_sender_setparameters_callback.h (981B)
1 /* 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 // File added by mozilla, to decouple this from libwebrtc's implementation of 12 // RTCRtpSender. 13 14 #ifndef API_RTP_SENDER_SETPARAMETERS_CALLBACK_H_ 15 #define API_RTP_SENDER_SETPARAMETERS_CALLBACK_H_ 16 17 #include "api/rtc_error.h" 18 #include "absl/functional/any_invocable.h" 19 20 namespace webrtc { 21 22 using SetParametersCallback = absl::AnyInvocable<void(RTCError) &&>; 23 24 webrtc::RTCError InvokeSetParametersCallback(SetParametersCallback& callback, 25 RTCError error); 26 } // namespace webrtc 27 28 #endif // API_RTP_SENDER_SETPARAMETERS_CALLBACK_H_