cec: added SetActiveSource()/cec_set_active_source() to the interface. deprecated...
[deb_libcec.git] / include / cec.h
index 5c8ce125e9cbe5012d7b26426530d9932d3d69fe..84cd7e6ee92c7d35eb0826f4c826a8493cecf0a6 100644 (file)
@@ -152,9 +152,15 @@ namespace CEC
     virtual bool StandbyDevices(cec_logical_address address = CECDEVICE_BROADCAST) = 0;
 
     /*!
-     * @brief Broadcast a message that notifies connected CEC capable devices that this device is the active source.
+     * @brief Change the active source.
+     * @param type The new active source. Leave empty to use the primary type
      * @return True when the command was sent succesfully, false otherwise.
      */
+    virtual bool SetActiveSource(cec_device_type type = CEC_DEVICE_TYPE_RESERVED) = 0;
+
+    /*!
+     * @deprecated Use SetActiveSource() instead
+     */
     virtual bool SetActiveView(void) = 0;
 
     /*!