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
18namespace webrtc {
19class Call;
20} // namespace webrtc
21
22namespace agora {
23namespace rtc {
24
25using PipelineBuilder = std::shared_ptr<webrtc::Call>;
26using WeakPipelineBuilder = std::weak_ptr<webrtc::Call>;
27
28} // namespace rtc
29} // namespace agora
std::shared_ptr< webrtc::Call > PipelineBuilder
Definition common_defines.h:25
std::weak_ptr< webrtc::Call > WeakPipelineBuilder
Definition common_defines.h:26
Definition AgoraAtomicOps.h:21
Definition video_node_i.h:28
Definition common_defines.h:18