cec: added CEC command that were received by the adapter in a buffer that can be...
[deb_libcec.git] / src / lib / CECParserC.cpp
index 4b6a1efa7bb5414f7df00b64016c5c137284ccfb..a4841a0a69b0dec55860b17e65bd3e496338c6d3 100644 (file)
@@ -124,6 +124,13 @@ bool cec_get_next_keypress(cec_keypress *key)
   return false;
 }
 
+bool cec_get_next_command(cec_command *command)
+{
+  if (cec_parser)
+    return cec_parser->GetNextCommand(command);
+  return false;
+}
+
 bool cec_transmit(const CEC::cec_frame &data, bool bWaitForAck /* = true */, int64_t iTimeout /* = 2000 */)
 {
   if (cec_parser)