repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: refactor USB adapter communication. less locks, shorter locks, added documentati...
[deb_libcec.git]
/
src
/
lib
/
implementations
/
CECCommandHandler.cpp
diff --git
a/src/lib/implementations/CECCommandHandler.cpp
b/src/lib/implementations/CECCommandHandler.cpp
index eb7d58ea9bac3b83c7631578b54621ec5a296186..eed60878d8231244346e80756ef45f39081f9d5d 100644
(file)
--- a/
src/lib/implementations/CECCommandHandler.cpp
+++ b/
src/lib/implementations/CECCommandHandler.cpp
@@
-392,7
+392,7
@@
bool CCECCommandHandler::HandleMenuRequest(const cec_command &command)
bool CCECCommandHandler::HandlePoll(const cec_command &command)
{
bool CCECCommandHandler::HandlePoll(const cec_command &command)
{
- m_busDevice->HandlePoll(command.
initiator
);
+ m_busDevice->HandlePoll(command.
destination
);
return true;
}
return true;
}
@@
-769,52
+769,52
@@
bool CCECCommandHandler::TransmitStandby(const cec_logical_address iInitiator, c
return Transmit(command, false);
}
return Transmit(command, false);
}
-bool CCECCommandHandler::TransmitRequestCecVersion(const cec_logical_address iInitiator, const cec_logical_address iDestination)
+bool CCECCommandHandler::TransmitRequestCecVersion(const cec_logical_address iInitiator, const cec_logical_address iDestination
, bool bWaitForResponse /* = true */
)
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GET_CEC_VERSION);
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GET_CEC_VERSION);
- return Transmit(command,
tru
e, CEC_OPCODE_CEC_VERSION);
+ return Transmit(command,
bWaitForRespons
e, CEC_OPCODE_CEC_VERSION);
}
}
-bool CCECCommandHandler::TransmitRequestMenuLanguage(const cec_logical_address iInitiator, const cec_logical_address iDestination)
+bool CCECCommandHandler::TransmitRequestMenuLanguage(const cec_logical_address iInitiator, const cec_logical_address iDestination
, bool bWaitForResponse /* = true */
)
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GET_MENU_LANGUAGE);
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GET_MENU_LANGUAGE);
- return Transmit(command,
tru
e, CEC_OPCODE_SET_MENU_LANGUAGE);
+ return Transmit(command,
bWaitForRespons
e, CEC_OPCODE_SET_MENU_LANGUAGE);
}
}
-bool CCECCommandHandler::TransmitRequestOSDName(const cec_logical_address iInitiator, const cec_logical_address iDestination)
+bool CCECCommandHandler::TransmitRequestOSDName(const cec_logical_address iInitiator, const cec_logical_address iDestination
, bool bWaitForResponse /* = true */
)
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GIVE_OSD_NAME);
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GIVE_OSD_NAME);
- return Transmit(command,
tru
e, CEC_OPCODE_SET_OSD_NAME);
+ return Transmit(command,
bWaitForRespons
e, CEC_OPCODE_SET_OSD_NAME);
}
}
-bool CCECCommandHandler::TransmitRequestPhysicalAddress(const cec_logical_address iInitiator, const cec_logical_address iDestination)
+bool CCECCommandHandler::TransmitRequestPhysicalAddress(const cec_logical_address iInitiator, const cec_logical_address iDestination
, bool bWaitForResponse /* = true */
)
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GIVE_PHYSICAL_ADDRESS);
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GIVE_PHYSICAL_ADDRESS);
- return Transmit(command,
tru
e, CEC_OPCODE_REPORT_PHYSICAL_ADDRESS);
+ return Transmit(command,
bWaitForRespons
e, CEC_OPCODE_REPORT_PHYSICAL_ADDRESS);
}
}
-bool CCECCommandHandler::TransmitRequestPowerStatus(const cec_logical_address iInitiator, const cec_logical_address iDestination)
+bool CCECCommandHandler::TransmitRequestPowerStatus(const cec_logical_address iInitiator, const cec_logical_address iDestination
, bool bWaitForResponse /* = true */
)
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GIVE_DEVICE_POWER_STATUS);
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GIVE_DEVICE_POWER_STATUS);
- return Transmit(command,
tru
e, CEC_OPCODE_REPORT_POWER_STATUS);
+ return Transmit(command,
bWaitForRespons
e, CEC_OPCODE_REPORT_POWER_STATUS);
}
}
-bool CCECCommandHandler::TransmitRequestVendorId(const cec_logical_address iInitiator, const cec_logical_address iDestination)
+bool CCECCommandHandler::TransmitRequestVendorId(const cec_logical_address iInitiator, const cec_logical_address iDestination
, bool bWaitForResponse /* = true */
)
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GIVE_DEVICE_VENDOR_ID);
{
cec_command command;
cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_GIVE_DEVICE_VENDOR_ID);
- return Transmit(command,
tru
e, CEC_OPCODE_DEVICE_VENDOR_ID);
+ return Transmit(command,
bWaitForRespons
e, CEC_OPCODE_DEVICE_VENDOR_ID);
}
bool CCECCommandHandler::TransmitActiveSource(const cec_logical_address iInitiator, uint16_t iPhysicalAddress)
}
bool CCECCommandHandler::TransmitActiveSource(const cec_logical_address iInitiator, uint16_t iPhysicalAddress)