/*
* This file is part of the libCEC(R) library.
*
- * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
return *this;
}
+ bool operator ==(const struct cec_datapacket& packet) const
+ {
+ if (size != packet.size)
+ return false;
+ for (uint8_t iPtr = 0; iPtr < size; iPtr++)
+ if (packet.data[iPtr] != data[iPtr])
+ return false;
+ return true;
+ }
+
bool IsEmpty(void) const { return size == 0; } /**< @return True when this packet is empty, false otherwise. */
bool IsFull(void) const { return size == 100; } /**< @return True when this packet is false, false otherwise. */
CEC_ALERT_CONNECTION_LOST,
CEC_ALERT_PERMISSION_ERROR,
CEC_ALERT_PORT_BUSY,
- CEC_ALERT_PHYSICAL_ADDRESS_ERROR
+ CEC_ALERT_PHYSICAL_ADDRESS_ERROR,
+ CEC_ALERT_TV_POLL_FAILED
} libcec_alert;
typedef enum libcec_parameter_type
CEC_CLIENT_VERSION_2_0_4 = 0x2004,
CEC_CLIENT_VERSION_2_0_5 = 0x2005,
CEC_CLIENT_VERSION_2_1_0 = 0x2100,
- CEC_CLIENT_VERSION_CURRENT = 0x2100
+ CEC_CLIENT_VERSION_2_1_1 = 0x2101,
+ CEC_CLIENT_VERSION_CURRENT = 0x2101
} cec_client_version;
typedef enum cec_server_version
CEC_SERVER_VERSION_2_0_4 = 0x2004,
CEC_SERVER_VERSION_2_0_5 = 0x2005,
CEC_SERVER_VERSION_2_1_0 = 0x2100,
- CEC_SERVER_VERSION_CURRENT = 0x2100
+ CEC_SERVER_VERSION_2_1_1 = 0x2101,
+ CEC_SERVER_VERSION_CURRENT = 0x2101
} cec_server_version;
struct libcec_configuration