X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FRPi%2FRPiCECAdapterCommunication.h;h=3cbbdde6551e612870dfbfc153049ec02c3a51a7;hb=95587b956c69ead0b46d301f5ca70e977890c3fd;hp=530aec105b8a1923afd317891258c7b577443d24;hpb=b0a5e4fc9b66620b00f937f7e9a406bf22aaaf1d;p=deb_libcec.git diff --git a/src/lib/adapter/RPi/RPiCECAdapterCommunication.h b/src/lib/adapter/RPi/RPiCECAdapterCommunication.h index 530aec1..3cbbdde 100644 --- a/src/lib/adapter/RPi/RPiCECAdapterCommunication.h +++ b/src/lib/adapter/RPi/RPiCECAdapterCommunication.h @@ -31,10 +31,14 @@ * http://www.pulse-eight.net/ */ +#include "env.h" #if defined(HAVE_RPI_API) #include "lib/adapter/AdapterCommunication.h" -#include "lib/platform/threads/mutex.h" +#include "lib/platform/threads/threads.h" + +#define RPI_ADAPTER_VID 0x2708 +#define RPI_ADAPTER_PID 0x1001 extern "C" { #include @@ -78,6 +82,9 @@ namespace CEC bool SetControlledMode(bool UNUSED(controlled)) { return true; }; cec_vendor_id GetVendorId(void) { return CEC_VENDOR_BROADCOM; } bool SupportsSourceLogicalAddress(const cec_logical_address address) { return address > CECDEVICE_TV && address < CECDEVICE_BROADCAST; } + cec_adapter_type GetAdapterType(void) { return ADAPTERTYPE_RPI; }; + uint16_t GetAdapterVendorId(void) const { return RPI_ADAPTER_VID; } + uint16_t GetAdapterProductId(void) const { return RPI_ADAPTER_PID; } ///} bool IsInitialised(void); @@ -101,6 +108,7 @@ namespace CEC PLATFORM::CMutex m_mutex; VCHI_INSTANCE_T m_vchi_instance; VCHI_CONNECTION_T * m_vchi_connection; + cec_logical_address m_previousLogicalAddress; }; };