X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fadapter%2FAdapterCommunication.h;h=07026713042a19e934bc84af18d4060de42788cb;hb=217b236882e3f4e5303a135aae39f6207bfbd279;hp=03880b6ef921dafaa46657aa6069c2c56456c47b;hpb=b0a5e4fc9b66620b00f937f7e9a406bf22aaaf1d;p=deb_libcec.git diff --git a/src/lib/adapter/AdapterCommunication.h b/src/lib/adapter/AdapterCommunication.h index 03880b6..0702671 100644 --- a/src/lib/adapter/AdapterCommunication.h +++ b/src/lib/adapter/AdapterCommunication.h @@ -75,6 +75,12 @@ namespace CEC */ virtual bool HandleReceiveFailed(cec_logical_address initiator) = 0; + /*! + * @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. + */ + virtual void HandleLogicalAddressLost(cec_logical_address oldAddress) = 0; + virtual CLibCEC *GetLib(void) const = 0; }; @@ -200,6 +206,11 @@ namespace CEC */ virtual bool SupportsSourceLogicalAddress(const cec_logical_address address) = 0; + /*! + * @return The type of adapter that this instance is connected to. + */ + virtual cec_adapter_type GetAdapterType(void) = 0; + IAdapterCommunicationCallback *m_callback; }; };