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

Function GetAddressFromInput

src/cec-client/cec-client.cpp:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170static cec_logical_address GetAddressFromInput(std::string& arguments)
171{
172 std::string strDev;
173 if (GetWord(arguments, strDev))
174 {
175 unsigned long iDev = strtoul(strDev.c_str(), NULL, 16);
176 if ((iDev >= CECDEVICE_TV) && (iDev <= CECDEVICE_BROADCAST))
177 return (cec_logical_address)iDev;
178 }
179 return CECDEVICE_UNKNOWN;
180}
181
182void CecLogMessage(void *UNUSED(cbParam), const cec_log_message* message)
183{

Callers 9

ProcessCommandSPLFunction · 0.85
ProcessCommandLAFunction · 0.85
ProcessCommandPFunction · 0.85
ProcessCommandLANGFunction · 0.85
ProcessCommandVENFunction · 0.85
ProcessCommandVERFunction · 0.85
ProcessCommandPOWFunction · 0.85
ProcessCommandNAMEFunction · 0.85
ProcessCommandADFunction · 0.85

Calls 1

GetWordFunction · 0.85

Tested by

no test coverage detected