X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftestclient%2Fmain.cpp;h=9a0bf3a6130c9c7466f72945f96e2c0c010fe9fa;hb=83be070122f15d5d8fa878608131ba69845fcd75;hp=fafd204b561c6c75b8e0de8c8ed509d5f0b8ea5d;hpb=aa52c2e0f66cc36959347d796c819ce800cafc0c;p=deb_libcec.git diff --git a/src/testclient/main.cpp b/src/testclient/main.cpp index fafd204..9a0bf3a 100644 --- a/src/testclient/main.cpp +++ b/src/testclient/main.cpp @@ -236,6 +236,7 @@ void ShowHelpConsole(void) "[la] {logical address} change the logical address of the CEC adapter." << endl << "[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 << "[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 << @@ -422,6 +423,18 @@ bool ProcessCommandOSD(ICECAdapter *parser, const string &command, string &argum return false; } +bool ProcessCommandAS(ICECAdapter *parser, const string &command, string &arguments) +{ + if (command == "as") + { + parser->SetActiveView(); + return true; + } + + return false; +} + + bool ProcessCommandPING(ICECAdapter *parser, const string &command, string &arguments) { if (command == "ping") @@ -770,6 +783,7 @@ bool ProcessConsoleCommand(ICECAdapter *parser, string &input) ProcessCommandLA(parser, command, input) || ProcessCommandP(parser, command, input) || ProcessCommandPA(parser, command, input) || + ProcessCommandAS(parser, command, input) || ProcessCommandOSD(parser, command, input) || ProcessCommandPING(parser, command, input) || ProcessCommandVOLUP(parser, command, input) ||