| 11 | typedef decltype(nullptr) nullptr_t; |
| 12 | |
| 13 | inline std::string string_of(RTCError code) |
| 14 | { |
| 15 | switch (code) { |
| 16 | case RTC_ERROR_UNKNOWN : return "RTC_ERROR_UNKNOWN"; |
| 17 | case RTC_ERROR_INVALID_ARGUMENT : return "RTC_ERROR_INVALID_ARGUMENT"; |
| 18 | case RTC_ERROR_INVALID_OPERATION: return "RTC_ERROR_INVALID_OPERATION"; |
| 19 | case RTC_ERROR_OUT_OF_MEMORY : return "RTC_ERROR_OUT_OF_MEMORY"; |
| 20 | case RTC_ERROR_UNSUPPORTED_CPU : return "RTC_ERROR_UNSUPPORTED_CPU"; |
| 21 | case RTC_ERROR_CANCELLED : return "RTC_ERROR_CANCELLED"; |
| 22 | default : return "invalid error code"; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | struct RTCDeviceRef |
| 27 | { |
no outgoing calls
no test coverage detected