Mirko Bonadei | 99a70a2 | 2018-10-09 16:45:14 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 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 | #ifndef RTC_BASE_LOGGING_MAC_H_ |
| 11 | #define RTC_BASE_LOGGING_MAC_H_ |
| 12 | |
| 13 | #if !defined(WEBRTC_MAC) || defined(WEBRTC_IOS) |
| 14 | #error "Only include this header in macOS builds" |
| 15 | #endif |
| 16 | |
| 17 | #include <CoreServices/CoreServices.h> |
| 18 | |
| 19 | #include <string> |
| 20 | |
| 21 | namespace rtc { |
| 22 | |
| 23 | // Returns a UTF8 description from an OS X Status error. |
| 24 | std::string DescriptionFromOSStatus(OSStatus err); |
| 25 | |
| 26 | } // namespace rtc |
| 27 | |
| 28 | #endif // RTC_BASE_LOGGING_MAC_H_ |