repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: handle samsung remote command 'return'
[deb_libcec.git]
/
src
/
lib
/
CECProcessor.h
diff --git
a/src/lib/CECProcessor.h
b/src/lib/CECProcessor.h
index c1dbfad7382dcdb8c4c749d4af5e643d6692c78b..4e9d1115c475aba934769702b5dc650ce63db0b1 100644
(file)
--- a/
src/lib/CECProcessor.h
+++ b/
src/lib/CECProcessor.h
@@
-32,7
+32,7
@@
*/
#include <string>
*/
#include <string>
-#include <
libcec/CECExport
s.h>
+#include <
cectype
s.h>
#include "platform/threads.h"
#include "util/buffer.h"
#include "platform/threads.h"
#include "util/buffer.h"
@@
-58,6
+58,9
@@
namespace CEC
virtual bool SetInactiveView(void);
virtual bool Transmit(const cec_command &data, bool bWaitForAck = true);
virtual bool SetLogicalAddress(cec_logical_address iLogicalAddress);
virtual bool SetInactiveView(void);
virtual bool Transmit(const cec_command &data, bool bWaitForAck = true);
virtual bool SetLogicalAddress(cec_logical_address iLogicalAddress);
+ virtual bool SetPhysicalAddress(uint16_t iPhysicalAddress);
+ virtual bool SetOSDString(cec_logical_address iLogicalAddress, cec_display_control duration, const char *strMessage);
+ virtual bool SwitchMonitoring(bool bEnable);
static const char *CECVendorIdToString(const uint64_t iVendorId);
static const char *CECVendorIdToString(const uint64_t iVendorId);
@@
-71,16
+74,19
@@
namespace CEC
virtual void ReportOSDName(cec_logical_address address = CECDEVICE_TV);
virtual void ReportPhysicalAddress(void);
virtual void BroadcastActiveSource(void);
virtual void ReportOSDName(cec_logical_address address = CECDEVICE_TV);
virtual void ReportPhysicalAddress(void);
virtual void BroadcastActiveSource(void);
+ virtual bool HandleANCommand(cec_command &command);
+ virtual bool HandleSLCommand(cec_command &command);
+ virtual bool HandleCecCommand(cec_command &command);
private:
void LogOutput(const cec_command &data);
bool WaitForAck(bool *bError, uint32_t iTimeout = 1000);
private:
void LogOutput(const cec_command &data);
bool WaitForAck(bool *bError, uint32_t iTimeout = 1000);
-
bool ParseMessage(cec_adapter_message &msg
);
+
void ParseMessage(cec_adapter_message &msg, bool *bError, bool *bTransmitSucceeded, bool *bEom, bool bProcessMessages = true
);
void ParseCommand(cec_command &command);
void ParseVendorId(cec_logical_address device, const cec_datapacket &data);
cec_command m_currentframe;
void ParseCommand(cec_command &command);
void ParseVendorId(cec_logical_address device, const cec_datapacket &data);
cec_command m_currentframe;
- uint16_t m_
physicala
ddress;
+ uint16_t m_
iPhysicalA
ddress;
cec_logical_address m_iLogicalAddress;
CecBuffer<cec_adapter_message> m_frameBuffer;
std::string m_strDeviceName;
cec_logical_address m_iLogicalAddress;
CecBuffer<cec_adapter_message> m_frameBuffer;
std::string m_strDeviceName;
@@
-89,5
+95,6
@@
namespace CEC
CLibCEC *m_controller;
uint64_t m_vendorIds[16];
uint8_t m_vendorClasses[16];
CLibCEC *m_controller;
uint64_t m_vendorIds[16];
uint8_t m_vendorClasses[16];
+ bool m_bMonitor;
};
};
};
};