repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: fix the command buffer
[deb_libcec.git]
/
include
/
CECExportsCpp.h
diff --git
a/include/CECExportsCpp.h
b/include/CECExportsCpp.h
index b49b1abdce050b02f7e52f8b93b4a0f34895018d..fd4ea9fa078c8f99501c93930ffa7d3230c73826 100644
(file)
--- a/
include/CECExportsCpp.h
+++ b/
include/CECExportsCpp.h
@@
-91,15
+91,25
@@
namespace CEC
*/
virtual bool GetNextKeypress(cec_keypress *key) = 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;
/*!
/*!
* @see cec_transmit
*/
virtual bool Transmit(const cec_frame &data, bool bWaitForAck = true, int64_t iTimeout = (int64_t) 5000) = 0;
/*!
- * @see cec_set_ack_mask
+ * @see cec_set_logical_address
+ */
+ virtual bool SetLogicalAddress(cec_logical_address iLogicalAddress) = 0;
+
+ /*!
+ * @deprecated use SetLogicalAddress() instead
*/
*/
- virtual bool SetAckMask(
cec_logical_address ackm
ask) = 0;
+ virtual bool SetAckMask(
uint16_t iM
ask) = 0;
/*!
* @see cec_get_min_version
/*!
* @see cec_get_min_version
@@
-128,7
+138,7
@@
static int g_iLibCECInstanceCount = 0;
*/
inline CEC::ICECDevice *LoadLibCec(const char *strName, CEC::cec_logical_address iLogicalAddress = CEC::CECDEVICE_PLAYBACKDEVICE1, int iPhysicalAddress = CEC_DEFAULT_PHYSICAL_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)
_CreateLibCec CreateLibCec;
if (!g_libCEC)