using namespace std;
using namespace PLATFORM;
-#define CEC_CONFIG_VERSION CEC_CLIENT_VERSION_2_0_3;
+#define CEC_CONFIG_VERSION CEC_CLIENT_VERSION_CURRENT;
#include "../../include/cecloader.h"
"[p] {device} {port} change the HDMI port number of the CEC adapter." << endl <<
"[pa] {physical address} change the physical address of the CEC adapter." << endl <<
"[as] make the CEC adapter the active source." << endl <<
+ "[is] mark the CEC adapter as inactive source." << endl <<
"[osd] {addr} {string} set OSD message on the specified device." << endl <<
"[ver] {addr} get the CEC version of the specified device." << endl <<
"[ven] {addr} get the vendor ID of the specified device." << endl <<
cec_command bytes;
bytes.Clear();
+ CStdString strArguments(arguments);
+ strArguments.Replace(':', ' ');
+ arguments = strArguments;
+
while (GetWord(arguments, strvalue) && HexStrToInt(strvalue, ivalue))
bytes.PushBack(ivalue);
return false;
}
+bool ProcessCommandIS(ICECAdapter *parser, const string &command, string & UNUSED(arguments))
+{
+ if (command == "is")
+ return parser->SetInactiveView();
+
+ return false;
+}
bool ProcessCommandPING(ICECAdapter *parser, const string &command, string & UNUSED(arguments))
{
ProcessCommandP(parser, command, input) ||
ProcessCommandPA(parser, command, input) ||
ProcessCommandAS(parser, command, input) ||
+ ProcessCommandIS(parser, command, input) ||
ProcessCommandOSD(parser, command, input) ||
ProcessCommandPING(parser, command, input) ||
ProcessCommandVOLUP(parser, command, input) ||