X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FPulse-Eight%2FUSBCECAdapterCommands.h;h=4c44221ac086b7966e2063a2c2af4a01e7153337;hb=4f5046734389cc554448da5cee93970f3091348b;hp=897ed1cb417239784cd78e7914f9ef5c06357023;hpb=a38292a3c2ec93a21d74da778516276e92d431c0;p=deb_libcec.git diff --git a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommands.h b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommands.h index 897ed1c..4c44221 100644 --- a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommands.h +++ b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommands.h @@ -2,7 +2,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -32,6 +32,7 @@ */ #include "lib/platform/threads/mutex.h" +#include "USBCECAdapterMessage.h" namespace CEC { @@ -113,12 +114,25 @@ 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. */ bool WriteEEPROM(void); + void SetActiveSource(bool bSetTo, bool bClientUnregistered); + private: /*! * @brief Reads all settings from the eeprom. @@ -233,6 +247,7 @@ namespace CEC 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; }; }