X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcec.h;h=98adaf9309b7bc9119122b9eaf2419230deeb95a;hb=6c3c8d5aee5542ba00a73ff4db9709e8d5324024;hp=44bf0244abdb8e6f5dbe29f59be811a28431223f;hpb=2dbd78f8f765f83e98190c01a123c569aea7c5b6;p=deb_libcec.git diff --git a/include/cec.h b/include/cec.h index 44bf024..98adaf9 100644 --- a/include/cec.h +++ b/include/cec.h @@ -251,6 +251,13 @@ namespace CEC */ virtual cec_power_status GetDevicePowerStatus(cec_logical_address iAddress) = 0; + /*! + * @brief Get the physical address of the device with the given logical address. + * @param iLogicalAddress The device to get the vendor id for. + * @return The physical address or 0 if it wasn't found. + */ + virtual uint16_t GetDevicePhysicalAddress(cec_logical_address iAddress) = 0; + /*! * @brief Sends a POLL message to a device. * @param iAddress The device to send the message to. @@ -322,6 +329,19 @@ namespace CEC */ virtual cec_osd_name GetOSDName(cec_logical_address iAddress) = 0; + /*! + * @brief Get the logical address of the device that is currently the active source on the CEC bus. + * @return The active source or CECDEVICE_UNKNOWN when unknown. + */ + virtual cec_logical_address GetActiveSource(void) = 0; + + /*! + * @brief Check whether a device is currently the active source on the CEC bus. + * @param iAddress The address to check. + * @return True when it is the active source, false otherwise. + */ + virtual bool IsActiveSource(cec_logical_address iAddress) = 0; + virtual const char *ToString(const cec_menu_state state) = 0; virtual const char *ToString(const cec_version version) = 0; virtual const char *ToString(const cec_power_status status) = 0;