MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / HandleGiveDeckStatus

Method HandleGiveDeckStatus

src/libcec/implementations/CECCommandHandler.cpp:340–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340int 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
356int CCECCommandHandler::HandleGiveDevicePowerStatus(const cec_command &command)
357{

Callers

nothing calls this directly

Calls 3

CECInitialisedMethod · 0.80
IsHandledByLibCECMethod · 0.45
TransmitDeckStatusMethod · 0.45

Tested by

no test coverage detected