X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FAdapterCommunication.h;h=b1762b7a111db0755c03ede6922cf4e7ac785ae8;hb=ebcedb051be7d8e1e19ecd3f0aa164baae252400;hp=22e00cbef5998f7a324639e3da320a14feb5f128;hpb=f60ee8b35a31f8795658407a6863425a2c5c84d7;p=deb_libcec.git diff --git a/src/lib/adapter/AdapterCommunication.h b/src/lib/adapter/AdapterCommunication.h index 22e00cb..b1762b7 100644 --- a/src/lib/adapter/AdapterCommunication.h +++ b/src/lib/adapter/AdapterCommunication.h @@ -78,9 +78,8 @@ namespace CEC /*! * @brief Callback method for IAdapterCommunication, called when a logical address that libCEC uses was taken by another device. * @param oldAddress The logical address that was taken by another device. - * @param newAddress The new logical address, or CECDEVICE_UNKNOWN if no new LA could be allocated. */ - virtual void HandleLogicalAddressLost(cec_logical_address oldAddress, cec_logical_address newAddress) = 0; + virtual void HandleLogicalAddressLost(cec_logical_address oldAddress) = 0; virtual CLibCEC *GetLib(void) const = 0; }; @@ -212,6 +211,23 @@ namespace CEC */ virtual cec_adapter_type GetAdapterType(void) = 0; + /*! + * @return The (virtual) USB vendor id + */ + virtual uint16_t GetAdapterVendorId(void) const = 0; + + /*! + * @return The (virtual) USB product id + */ + virtual uint16_t GetAdapterProductId(void) const = 0; + + /*! + * @brief Marks the adapter as active or inactive source + * @param bSetTo True to mark as active source, false to mark as inactive source + * @param bClientUnregistered True when the client was unregistered, false when the device was explicitly marked as (in)active source + */ + virtual void SetActiveSource(bool bSetTo, bool bClientUnregistered) = 0; + IAdapterCommunicationCallback *m_callback; }; };