*/
virtual bool Open(const char *strPort, int iTimeoutMs = 10000) = 0;
+ /*!
+ * @see cec_close
+ */
+ virtual bool Close(int iTimeoutMs = 2000) = 0;
+
/*!
* @see cec_find_devices
*/
virtual bool StartBootloader(void) = 0;
/*!
- * @see cec_power_off_devices
+ * @depcrecated Use StandbyDevices() instead
*/
virtual bool PowerOffDevices(cec_logical_address address = CECDEVICE_BROADCAST) = 0;
*/
virtual bool GetNextKeypress(cec_keypress *key) = 0;
+ /*!
+ * @see cec_get_next_command
+ */
+ virtual bool GetNextCommand(cec_command *command) = 0;
+
/*!
* @see cec_transmit
*/
- virtual bool Transmit(const cec_frame &data, bool bWaitForAck = true, int64_t iTimeout = (int64_t) 5000) = 0;
+ virtual bool Transmit(const cec_frame &data, bool bWaitForAck = true) = 0;
/*!
* @see cec_set_logical_address
*/
inline CEC::ICECDevice *LoadLibCec(const char *strName, CEC::cec_logical_address iLogicalAddress = CEC::CECDEVICE_PLAYBACKDEVICE1, int iPhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS)
{
- typedef void* (__cdecl*_CreateLibCec)(const char *);
+ typedef void* (__cdecl*_CreateLibCec)(const char *, uint8_t, uint8_t);
_CreateLibCec CreateLibCec;
if (!g_libCEC)