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

Method HandleDeckControl

src/libcec/implementations/CECCommandHandler.cpp:229–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229int CCECCommandHandler::HandleDeckControl(const cec_command &command)
230{
231 CCECPlaybackDevice *device = CCECBusDevice::AsPlaybackDevice(GetDevice(command.destination));
232 if (device && command.parameters.size > 0)
233 {
234 device->SetDeckControlMode((cec_deck_control_mode) command.parameters[0]);
235 return COMMAND_HANDLED;
236 }
237
238 return CEC_ABORT_REASON_INVALID_OPERAND;
239}
240
241int CCECCommandHandler::HandleDeviceCecVersion(const cec_command &command)
242{

Callers

nothing calls this directly

Calls 1

SetDeckControlModeMethod · 0.45

Tested by

no test coverage detected