X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FPulse-Eight%2FUSBCECAdapterCommands.h;h=fa7f543261ef8e8c6aee8a9b0dc5c4c81f5fdad7;hb=b272f558d4b0567f581d8cea04a6ac2b6ed49146;hp=ff0c187e89fc9e7e76544e68d69f37730238fda3;hpb=2b44051cbfa70deafc30d9767323214debbc1a75;p=deb_libcec.git diff --git a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommands.h b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommands.h index ff0c187..fa7f543 100644 --- a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommands.h +++ b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommands.h @@ -31,6 +31,9 @@ * http://www.pulse-eight.net/ */ +#include "lib/platform/threads/mutex.h" +#include "USBCECAdapterMessage.h" + namespace CEC { class CUSBCECAdapterCommunication; @@ -111,6 +114,17 @@ namespace CEC */ uint32_t GetPersistedBuildDate(void) const { return m_iBuildDate; }; + /*! + * @brief Request the adapter type. + * @return The type + */ + p8_cec_adapter_type RequestAdapterType(void); + + /*! + * @return The persisted build date. + */ + p8_cec_adapter_type GetPersistedAdapterType(void) const { return m_adapterType; }; + /*! * @brief Persist the current settings in the EEPROM * @return True when persisted, false otherwise. @@ -230,5 +244,8 @@ namespace CEC bool m_bNeedsWrite; /**< true when we sent changed settings to the adapter that have not been persisted */ libcec_configuration m_persistedConfiguration; /**< the configuration that is persisted in the eeprom */ uint32_t m_iBuildDate; /**< the build date of the firmware */ + bool m_bControlledMode; /**< current value of the controlled mode feature */ + p8_cec_adapter_type m_adapterType; /**< the type of the adapter that we're connected to */ + PLATFORM::CMutex m_mutex; }; }