| 168 | } |
| 169 | |
| 170 | static 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 | |
| 182 | void CecLogMessage(void *UNUSED(cbParam), const cec_log_message* message) |
| 183 | { |
no test coverage detected