fixed - set the message state to ADAPTER_MESSAGE_STATE_ERROR when receiving an error...
[deb_libcec.git] / src / lib / adapter / Pulse-Eight / USBCECAdapterMessage.h
index f8ae4135362167378a5e4e61257484eeb1c87781..1b03d72063fcd322760f5b5de4ff4be0bb4165e4 100644 (file)
@@ -202,10 +202,22 @@ namespace CEC
     bool IsACK(void) const;
 
     /*!
-     * @return True when this message has been replied with an error code, false otherwise.
+     * @brief Checks whether the given messagecode is an error message.
+     * @param code The code to check.
+     * @return True when it's an error, false otherwise.
+     */
+    static bool MessageCodeIsError(const cec_adapter_messagecode code);
+
+    /*!
+     * @return True when this message contains an error code, false otherwise.
      */
     bool IsError(void) const;
 
+    /*!
+     * @return True when this message has been replied with an error code, false otherwise.
+     */
+    bool ReplyIsError(void) const;
+
     /*!
      * @return True when this message has been replied with an error code and needs to be retried, false otherwise.
      */