return (cec_parser != NULL);
}
-bool cec_close(void)
+void cec_destroy(void)
{
+ cec_close();
delete cec_parser;
cec_parser = NULL;
- return true;
}
bool cec_open(const char *strPort, int iTimeout)
return false;
}
+void cec_close(void)
+{
+ if (cec_parser)
+ cec_parser->Close();
+}
+
bool cec_ping(void)
{
if (cec_parser)
return false;
}
-bool cec_transmit(const CEC::cec_frame &data, bool bWaitForAck /* = true */, int64_t iTimeout /* = 2000 */)
+bool cec_transmit(const CEC::cec_frame &data, bool bWaitForAck /* = true */)
{
if (cec_parser)
- return cec_parser->Transmit(data, bWaitForAck, iTimeout);
+ return cec_parser->Transmit(data, bWaitForAck);
return false;
}