cec: added SwitchMonitoring()/cec_switch_monitoring() to the interface. when monitori...
[deb_libcec.git] / src / lib / LibCECC.cpp
index ccdd5b6a339b86762b2058db713ef0d7d6f16f70..79157658df088d7231b6a0e4ad838bea45746f6c 100644 (file)
@@ -173,4 +173,18 @@ int cec_set_inactive_view(void)
   return -1;
 }
 
+int cec_set_osd_string(cec_logical_address iLogicalAddress, cec_display_control duration, const char *strMessage)
+{
+  if (cec_parser)
+    return cec_parser->SetOSDString(iLogicalAddress, duration, strMessage) ? 1 : 0;
+  return -1;
+}
+
+int cec_switch_monitoring(int bEnable)
+{
+  if (cec_parser)
+    return cec_parser->SwitchMonitoring(bEnable == 1) ? 1 : 0;
+  return -1;
+}
+
 //@}