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

Method GetMyDevices

src/libcec/implementations/CECCommandHandler.cpp:843–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841}
842
843size_t CCECCommandHandler::GetMyDevices(std::vector<CCECBusDevice *> &devices) const
844{
845 size_t iReturn(0);
846
847 cec_logical_addresses addresses = m_processor->GetLogicalAddresses();
848 for (uint8_t iPtr = CECDEVICE_TV; iPtr < CECDEVICE_BROADCAST; iPtr++)
849 {
850 if (addresses[iPtr])
851 {
852 devices.push_back(GetDevice((cec_logical_address) iPtr));
853 ++iReturn;
854 }
855 }
856
857 return iReturn;
858}
859
860CCECBusDevice *CCECCommandHandler::GetDevice(cec_logical_address iLogicalAddress) const
861{

Callers

nothing calls this directly

Calls 1

GetLogicalAddressesMethod · 0.45

Tested by

no test coverage detected