repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cec: added SetHDMIPort()/cec_set_hdmi_port(). devices are now detected on load and...
[deb_libcec.git]
/
src
/
lib
/
LibCECC.cpp
diff --git
a/src/lib/LibCECC.cpp
b/src/lib/LibCECC.cpp
index ec703f2d69ba6c178fb3365f012b8d91977c1195..76f2992882a97c41d4bd255da8b21aad1498ea44 100644
(file)
--- a/
src/lib/LibCECC.cpp
+++ b/
src/lib/LibCECC.cpp
@@
-264,4
+264,11
@@
int cec_is_active_device_type(cec_device_type type)
return -1;
}
+int cec_set_hdmi_port(uint8_t iPort)
+{
+ if (cec_parser)
+ return cec_parser->SetHDMIPort(iPort) ? 1 : 0;
+ return -1;
+}
+
//@}