LibCecSharp: fixed - set the primary LA in CecLogicalAddresses
[deb_libcec.git] / src / lib / devices / CECPlaybackDevice.cpp
index d1ac742c0ec39d4673c7dd343ea327fdffb3a014..ac5371efd72046965bd05094b6e5583b6876a968 100644 (file)
  *     http://www.pulse-eight.net/
  */
 
+#include "env.h"
 #include "CECPlaybackDevice.h"
-#include "../implementations/CECCommandHandler.h"
-#include "../CECProcessor.h"
-#include "../LibCEC.h"
+
+#include "lib/implementations/CECCommandHandler.h"
+#include "lib/CECProcessor.h"
+#include "lib/LibCEC.h"
+#include "lib/CECTypeUtils.h"
 
 using namespace CEC;
 using namespace PLATFORM;
 
-#define ToString(p) m_processor->GetLib()->ToString(p)
+#define ToString(p) CCECTypeUtils::ToString(p)
 
 CCECPlaybackDevice::CCECPlaybackDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = CEC_INVALID_PHYSICAL_ADDRESS */) :
     CCECBusDevice(processor, address, iPhysicalAddress),
@@ -80,7 +83,7 @@ void CCECPlaybackDevice::SetDeckControlMode(cec_deck_control_mode mode)
   }
 }
 
-bool CCECPlaybackDevice::TransmitDeckStatus(cec_logical_address dest)
+bool CCECPlaybackDevice::TransmitDeckStatus(cec_logical_address dest, bool bIsReply)
 {
   cec_deck_info state;
   {
@@ -89,7 +92,7 @@ bool CCECPlaybackDevice::TransmitDeckStatus(cec_logical_address dest)
     state = m_deckStatus;
   }
 
-  return m_handler->TransmitDeckStatus(m_iLogicalAddress, dest, state);
+  return m_handler->TransmitDeckStatus(m_iLogicalAddress, dest, state, bIsReply);
 }
 
 void CCECPlaybackDevice::ResetDeviceStatus(void)