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

Function ProcessCommandVEN

src/cec-client/cec-client.cpp:758–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758bool ProcessCommandVEN(ICECAdapter *parser, const std::string &command, std::string &arguments)
759{
760 if (command == "ven")
761 {
762 cec_logical_address addr = GetAddressFromInput(arguments);
763 if ((addr != CECDEVICE_UNKNOWN) && (addr != CECDEVICE_BROADCAST))
764 {
765 uint64_t iVendor = parser->GetDeviceVendorId(addr);
766 PrintToStdOut("vendor id: %06llx", iVendor);
767 return true;
768 }
769 }
770
771 return false;
772}
773
774bool ProcessCommandVER(ICECAdapter *parser, const std::string &command, std::string &arguments)
775{

Callers 1

ProcessConsoleCommandFunction · 0.85

Calls 3

GetAddressFromInputFunction · 0.85
PrintToStdOutFunction · 0.85
GetDeviceVendorIdMethod · 0.45

Tested by

no test coverage detected