| 61 | } |
| 62 | |
| 63 | UMockdevDeviceManager::~UMockdevDeviceManager() |
| 64 | { |
| 65 | if (getRestoreControllerDeviceState()) { |
| 66 | setAuthorizedDefault(AuthorizedDefaultType::All); // FIXME: Set to previous state |
| 67 | } |
| 68 | |
| 69 | stop(); |
| 70 | |
| 71 | if (_uevent_fd >= 0) { |
| 72 | (void)close(_uevent_fd); |
| 73 | } |
| 74 | |
| 75 | if (_wakeup_fd >= 0) { |
| 76 | (void)close(_wakeup_fd); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void UMockdevDeviceManager::start() |
| 81 | { |
nothing calls this directly
no outgoing calls
no test coverage detected