| 126 | } |
| 127 | |
| 128 | RTC_API ssize_t rtcGetDeviceProperty(RTCDevice hdevice, RTCDeviceProperty prop) |
| 129 | { |
| 130 | Device* device = (Device*) hdevice; |
| 131 | RTC_CATCH_BEGIN; |
| 132 | RTC_TRACE(rtcGetDeviceProperty); |
| 133 | RTC_VERIFY_HANDLE(hdevice); |
| 134 | Lock<MutexSys> lock(g_mutex); |
| 135 | return device->getProperty(prop); |
| 136 | RTC_CATCH_END(device); |
| 137 | return 0; |
| 138 | } |
| 139 | |
| 140 | RTC_API void rtcSetDeviceProperty(RTCDevice hdevice, const RTCDeviceProperty prop, ssize_t val) |
| 141 | { |
no test coverage detected