X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FAdapterCommunication.h;h=889c87b8716c98b3fe347f61c76ce7f5209438ef;hb=99aeafb929fa132a096c236c4ae1eb78c2a595ec;hp=f8dc4bc23f5122ada19a2e7f829868233649181b;hpb=5daed059e1d5bca3ddfa0787679ef4e7b349e382;p=deb_libcec.git diff --git a/src/lib/adapter/AdapterCommunication.h b/src/lib/adapter/AdapterCommunication.h index f8dc4bc..889c87b 100644 --- a/src/lib/adapter/AdapterCommunication.h +++ b/src/lib/adapter/AdapterCommunication.h @@ -36,6 +36,8 @@ namespace CEC { + class CLibCEC; + class IAdapterCommunicationCallback { public: @@ -62,6 +64,8 @@ namespace CEC * @return True when this is an error, false otherwise. */ virtual bool HandleReceiveFailed(cec_logical_address initiator) = 0; + + virtual CLibCEC *GetLib(void) const = 0; }; class IAdapterCommunication @@ -126,6 +130,7 @@ namespace CEC * @return True when set, false otherwise. */ virtual bool SetAckMask(uint16_t iMask) = 0; + virtual uint16_t GetAckMask(void) = 0; /*! * @brief Check whether the CEC adapter responds @@ -177,7 +182,6 @@ namespace CEC */ virtual uint16_t GetPhysicalAddress(void) = 0; - protected: IAdapterCommunicationCallback *m_callback; }; };