X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcec.h;h=84cd7e6ee92c7d35eb0826f4c826a8493cecf0a6;hb=f2198ab5e1803596b15174da8dce022bae5d8282;hp=5c8ce125e9cbe5012d7b26426530d9932d3d69fe;hpb=d9106f0886dca327718b7f701287c6263462b2c1;p=deb_libcec.git diff --git a/include/cec.h b/include/cec.h index 5c8ce12..84cd7e6 100644 --- a/include/cec.h +++ b/include/cec.h @@ -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; /*!