Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
common_defines.h
1//
2// Agora RTC/MEDIA SDK
3//
4// Created by Letao Zhang in 2019-08.
5// Copyright (c) 2019 Agora.io. All rights reserved.
6//
7#pragma once
8
9#include <memory>
10#include <api/cpp/aosl_ares_class.h>
11
12#define ARES_COMPLETE_IF_NEEDED(ares, ret) do { \
13 if (!aosl_ref_invalid(ares)) { \
14 aosl_ares_complete(ares, ret); \
15 } \
16 } while (0);
17
18 namespace webrtc {
19class Call;
20} // namespace webrtc
21
22namespace agora {
23namespace rtc {
24
25 using PipelineBuilder = std::shared_ptr<webrtc::Call>;
26 using WeakPipelineBuilder = std::weak_ptr<webrtc::Call>;
27
28} // namespace rtc
29} // namespace agora
agora::rtc::PipelineBuilder
std::shared_ptr< webrtc::Call > PipelineBuilder
Definition common_defines.h:25
agora::rtc::WeakPipelineBuilder
std::weak_ptr< webrtc::Call > WeakPipelineBuilder
Definition common_defines.h:26
agora
Definition AgoraAtomicOps.h:21
rtc
Definition video_node_i.h:28
webrtc
Definition common_defines.h:18