| 338 | } |
| 339 | |
| 340 | int CCECCommandHandler::HandleGiveDeckStatus(const cec_command &command) |
| 341 | { |
| 342 | if (m_processor->CECInitialised() && m_processor->IsHandledByLibCEC(command.destination)) |
| 343 | { |
| 344 | CCECPlaybackDevice *device = CCECBusDevice::AsPlaybackDevice(GetDevice(command.destination)); |
| 345 | if (device) |
| 346 | { |
| 347 | device->TransmitDeckStatus(command.initiator, true); |
| 348 | return COMMAND_HANDLED; |
| 349 | } |
| 350 | return CEC_ABORT_REASON_INVALID_OPERAND; |
| 351 | } |
| 352 | |
| 353 | return CEC_ABORT_REASON_NOT_IN_CORRECT_MODE_TO_RESPOND; |
| 354 | } |
| 355 | |
| 356 | int CCECCommandHandler::HandleGiveDevicePowerStatus(const cec_command &command) |
| 357 | { |
nothing calls this directly
no test coverage detected