OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 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 #ifndef WEBRTC_MODULES_UTILITY_INTERFACE_HELPERS_IOS_H_ |
| 12 #define WEBRTC_MODULES_UTILITY_INTERFACE_HELPERS_IOS_H_ |
| 13 |
| 14 #if defined(WEBRTC_IOS) |
| 15 |
| 16 #include <string> |
| 17 |
| 18 namespace webrtc { |
| 19 namespace ios { |
| 20 |
| 21 bool CheckAndLogError(BOOL success, NSError* error); |
| 22 |
| 23 // Return thread ID as a string. |
| 24 std::string GetThreadId(); |
| 25 |
| 26 // Return thread ID as string suitable for debug logging. |
| 27 std::string GetThreadInfo(); |
| 28 |
| 29 // Returns [NSThread currentThread] description as string. |
| 30 // Example: <NSThread: 0x170066d80>{number = 1, name = main} |
| 31 std::string GetCurrentThreadDescription(); |
| 32 |
| 33 AVAudioSession* GetAudioSession(); |
| 34 |
| 35 } // namespace ios |
| 36 } // namespace webrtc |
| 37 |
| 38 #endif // defined(WEBRTC_IOS) |
| 39 |
| 40 #endif // WEBRTC_MODULES_UTILITY_INTERFACE_HELPERS_IOS_H_ |
OLD | NEW |