cec: added SwitchMonitoring()/cec_switch_monitoring() to the interface. when monitori...
[deb_libcec.git] / src / lib / LibCECC.cpp
index d062dff9357f39ccdd76b6156eee1663a3ac58f2..79157658df088d7231b6a0e4ad838bea45746f6c 100644 (file)
@@ -180,4 +180,11 @@ int cec_set_osd_string(cec_logical_address iLogicalAddress, cec_display_control
   return -1;
 }
 
+int cec_switch_monitoring(int bEnable)
+{
+  if (cec_parser)
+    return cec_parser->SwitchMonitoring(bEnable == 1) ? 1 : 0;
+  return -1;
+}
+
 //@}