cec: added SetActiveSource()/cec_set_active_source() to the interface. deprecated...
[deb_libcec.git] / src / lib / LibCECC.cpp
index a2e58c509434ce5a4fb37a8408b15b306bcec340..c1250cba7a953aa6432e13b59d4442d92872bf27 100644 (file)
@@ -179,6 +179,13 @@ int cec_set_active_view(void)
   return -1;
 }
 
+int cec_set_active_source(cec_device_type type)
+{
+  if (cec_parser)
+    return cec_parser->SetActiveSource(type) ? 1 : 0;
+  return -1;
+}
+
 int cec_set_inactive_view(void)
 {
   if (cec_parser)