repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0c271bd
)
added 'is' command to cec-client, to mark libCEC as inactive source
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Wed, 14 Nov 2012 23:07:22 +0000
(
00:07
+0100)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Wed, 14 Nov 2012 23:07:22 +0000
(
00:07
+0100)
src/testclient/main.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/testclient/main.cpp
b/src/testclient/main.cpp
index 372706189f11e25b3fcd548ddc4142a1cf2e1821..c6082921bf1844c22b70f86f114f211bd3cf7c67 100644
(file)
--- a/
src/testclient/main.cpp
+++ b/
src/testclient/main.cpp
@@
-285,6
+285,7
@@
void ShowHelpConsole(void)
"[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 <<
"[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 <<
"[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 <<
@@
-559,6
+560,13
@@
bool ProcessCommandAS(ICECAdapter *parser, const string &command, string & UNUSE
return false;
}
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))
{
bool ProcessCommandPING(ICECAdapter *parser, const string &command, string & UNUSED(arguments))
{
@@
-920,6
+928,7
@@
bool ProcessConsoleCommand(ICECAdapter *parser, string &input)
ProcessCommandP(parser, command, input) ||
ProcessCommandPA(parser, command, input) ||
ProcessCommandAS(parser, command, input) ||
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) ||
ProcessCommandOSD(parser, command, input) ||
ProcessCommandPING(parser, command, input) ||
ProcessCommandVOLUP(parser, command, input) ||