| 138 | } |
| 139 | |
| 140 | RTC_API void rtcSetDeviceProperty(RTCDevice hdevice, const RTCDeviceProperty prop, ssize_t val) |
| 141 | { |
| 142 | Device* device = (Device*) hdevice; |
| 143 | RTC_CATCH_BEGIN; |
| 144 | RTC_TRACE(rtcSetDeviceProperty); |
| 145 | const bool internal_prop = (size_t)prop >= 1000000 && (size_t)prop < 1000004; |
| 146 | if (!internal_prop) RTC_VERIFY_HANDLE(hdevice); // allow NULL device for special internal settings |
| 147 | Lock<MutexSys> lock(g_mutex); |
| 148 | device->setProperty(prop,val); |
| 149 | RTC_CATCH_END(device); |
| 150 | } |
| 151 | |
| 152 | RTC_API RTCError rtcGetDeviceError(RTCDevice hdevice) |
| 153 | { |
no test coverage detected