OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MEDIA_WEBRTC_WEBRTCCOMMON_H_ | 11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCCOMMON_H_ |
12 #define WEBRTC_MEDIA_WEBRTC_WEBRTCCOMMON_H_ | 12 #define WEBRTC_MEDIA_ENGINE_WEBRTCCOMMON_H_ |
13 | 13 |
14 #include "webrtc/common_types.h" | 14 #include "webrtc/common_types.h" |
15 | 15 |
16 namespace cricket { | 16 namespace cricket { |
17 | 17 |
18 // Tracing helpers, for easy logging when WebRTC calls fail. | 18 // Tracing helpers, for easy logging when WebRTC calls fail. |
19 // Example: "LOG_RTCERR1(StartSend, channel);" produces the trace | 19 // Example: "LOG_RTCERR1(StartSend, channel);" produces the trace |
20 // "StartSend(1) failed, err=XXXX" | 20 // "StartSend(1) failed, err=XXXX" |
21 // The method GetLastEngineError must be defined in the calling scope. | 21 // The method GetLastEngineError must be defined in the calling scope. |
22 #define LOG_RTCERR0(func) \ | 22 #define LOG_RTCERR0(func) \ |
(...skipping 25 matching lines...) Expand all Loading... |
48 << ", " << a4 << ") failed, err=" << err | 48 << ", " << a4 << ") failed, err=" << err |
49 #define LOG_RTCERR5_EX(func, a1, a2, a3, a4, a5, err) LOG(LS_WARNING) \ | 49 #define LOG_RTCERR5_EX(func, a1, a2, a3, a4, a5, err) LOG(LS_WARNING) \ |
50 << "" << #func << "(" << a1 << ", " << a2 << ", " << a3 \ | 50 << "" << #func << "(" << a1 << ", " << a2 << ", " << a3 \ |
51 << ", " << a4 << ", " << a5 << ") failed, err=" << err | 51 << ", " << a4 << ", " << a5 << ") failed, err=" << err |
52 #define LOG_RTCERR6_EX(func, a1, a2, a3, a4, a5, a6, err) LOG(LS_WARNING) \ | 52 #define LOG_RTCERR6_EX(func, a1, a2, a3, a4, a5, a6, err) LOG(LS_WARNING) \ |
53 << "" << #func << "(" << a1 << ", " << a2 << ", " << a3 \ | 53 << "" << #func << "(" << a1 << ", " << a2 << ", " << a3 \ |
54 << ", " << a4 << ", " << a5 << ", " << a6 << ") failed, err=" << err | 54 << ", " << a4 << ", " << a5 << ", " << a6 << ") failed, err=" << err |
55 | 55 |
56 } // namespace cricket | 56 } // namespace cricket |
57 | 57 |
58 #endif // WEBRTC_MEDIA_WEBRTC_WEBRTCCOMMON_H_ | 58 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCCOMMON_H_ |
OLD | NEW |