cec: don't forward the standby opcode more than once every 10 seconds
[deb_libcec.git] / src / lib / CECClient.h
index fccb083e4dd49a3d3b85bc2706b17c4fbb6b209e..26944a7068281229d444b36e77dedbf6c2d1a673 100644 (file)
@@ -307,6 +307,7 @@ namespace CEC
     PLATFORM::CMutex                        m_logMutex;       /**< mutex that is held when sending a log message back to the client */
     cec_user_control_code                   m_iCurrentButton; /**< the control code of the button that's currently held down (if any) */
     int64_t                                 m_buttontime;     /**< the timestamp when the button was pressed (in seconds since epoch), or 0 if none was pressed. */
+    int64_t                                 m_iPreventForwardingPowerOffCommand; /**< prevent forwarding standby commands until this time */
     PLATFORM::SyncedBuffer<cec_log_message> m_logBuffer;      /**< @deprecated will be removed in v2.0. buffer for log messages */
     PLATFORM::SyncedBuffer<cec_keypress>    m_keyBuffer;      /**< @deprecated will be removed in v2.0. buffer for keypresses */
     PLATFORM::SyncedBuffer<cec_command>     m_commandBuffer;  /**< @deprecated will be removed in v2.0. buffer for commands */