cec: added CEC command that were received by the adapter in a buffer that can be...
[deb_libcec.git] / include / CECExportsC.h
index 6fa4dbeebc6115f991a65040a4770d68d56c9bbf..5d278f4c63dcae14b3cc3fe4ebc4b48f84f72a7d 100644 (file)
@@ -145,6 +145,17 @@ extern DECLSPEC bool cec_get_next_keypress(CEC::cec_keypress *key);
 extern DECLSPEC bool cec_get_next_keypress(cec_keypress *key);
 #endif
 
+/*!
+ * @brief Get the next CEC command that was received by the adapter.
+ * @param action The next command.
+ * @return True when a command was passed, false otherwise.
+ */
+#ifdef __cplusplus
+extern DECLSPEC bool cec_get_next_command(CEC::cec_command *command);
+#else
+extern DECLSPEC bool cec_get_next_command(cec_command *command);
+#endif
+
 /*!
  * @brief Transmit a frame on the CEC line.
  * @param data The frame to send.