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

Method CCECCommandHandler

src/libcec/implementations/CECCommandHandler.cpp:53–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51#define REQUEST_POWER_STATUS_TIMEOUT 5000
52
53CCECCommandHandler::CCECCommandHandler(CCECBusDevice *busDevice,
54 int32_t iTransmitTimeout /* = CEC_DEFAULT_TRANSMIT_TIMEOUT */,
55 int32_t iTransmitWait /* = CEC_DEFAULT_TRANSMIT_WAIT */,
56 int8_t iTransmitRetries /* = CEC_DEFAULT_TRANSMIT_RETRIES */,
57 int64_t iActiveSourcePending /* = 0 */) :
58 m_busDevice(busDevice),
59 m_processor(m_busDevice->GetProcessor()),
60 m_iTransmitTimeout(iTransmitTimeout),
61 m_iTransmitWait(iTransmitWait),
62 m_iTransmitRetries(iTransmitRetries),
63 m_bHandlerInited(false),
64 m_bOPTSendDeckStatusUpdateOnActiveSource(false),
65 m_vendorId(CEC_VENDOR_UNKNOWN),
66 m_iActiveSourcePending(iActiveSourcePending),
67 m_iPowerStatusRequested(0)
68{
69}
70
71bool CCECCommandHandler::HandleCommand(const cec_command &command)
72{

Callers

nothing calls this directly

Calls 1

GetProcessorMethod · 0.80

Tested by

no test coverage detected