LibCecSharp: better handling of callbacks
[deb_libcec.git] / src / lib / adapter / USBCECAdapterCommands.h
index 389aa5f680a74a44d19ccf125491f0f45a9b5ffd..70feae9c70c1795e835b7390401cf12c4501921d 100644 (file)
@@ -57,14 +57,14 @@ namespace CEC
      * @param configuration The configuration to persist.
      * @return True when persisted, false otherwise.
      */
-    bool PersistConfiguration(libcec_configuration *configuration);
+    bool PersistConfiguration(const libcec_configuration &configuration);
 
     /*!
      * @brief Get the persisted configuration from the EEPROM.
      * @param configuration The persisted configuration.
      * @return True when retrieved, false otherwise.
      */
-    bool GetConfiguration(libcec_configuration *configuration);
+    bool GetConfiguration(libcec_configuration &configuration);
 
     /*!
      * @brief Send a ping command to the adapter.
@@ -106,6 +106,11 @@ namespace CEC
      */
     uint32_t RequestBuildDate(void);
 
+    /*!
+     * @return The persisted build date.
+     */
+    uint32_t GetPersistedBuildDate(void) const { return m_iBuildDate; };
+
   private:
     /*!
      * @brief Reads all settings from the eeprom.