added the type of adapter to libcec_configuration, and display the type in cec-client...
[deb_libcec.git] / src / lib / adapter / Pulse-Eight / USBCECAdapterCommands.h
index df376f3c4b80539ce74f5c88004c0d283913da4a..fa7f543261ef8e8c6aee8a9b0dc5c4c81f5fdad7 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include "lib/platform/threads/mutex.h"
+#include "USBCECAdapterMessage.h"
 
 namespace CEC
 {
@@ -113,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.
@@ -232,6 +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;
   };
 }