cec: add GetDevicePhysicalAddress()/cec_get_device_physical_address()
[deb_libcec.git] / include / cec.h
index 44bf0244abdb8e6f5dbe29f59be811a28431223f..c5f0522c20b22d7a255cafeb656e90913f45bef2 100644 (file)
@@ -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.