cec: added SetHDMIPort()/cec_set_hdmi_port(). devices are now detected on load and...
[deb_libcec.git] / src / lib / LibCECC.cpp
index ec703f2d69ba6c178fb3365f012b8d91977c1195..76f2992882a97c41d4bd255da8b21aad1498ea44 100644 (file)
@@ -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;
+}
+
 //@}