Skip to content
Permalink
Browse files

cosmetics

  • Loading branch information...
opdenkamp committed Oct 26, 2016
1 parent b0c6306 commit 472026f9f1f68c14ef043fd21da413f3ebcdf7fb
Showing with 0 additions and 15 deletions.
  1. +0 −15 src/libcec/adapter/AOCEC/AOCECAdapterCommunication.cpp
@@ -37,7 +37,6 @@
#include <fcntl.h>
#include <sys/ioctl.h>


#if defined(HAVE_AOCEC_API)
#include "AOCEC.h"
#include "AOCECAdapterCommunication.h"
@@ -51,7 +50,6 @@ using namespace P8PLATFORM;

#define LIB_CEC m_callback->GetLib()


CAOCECAdapterCommunication::CAOCECAdapterCommunication(IAdapterCommunicationCallback *callback) :
IAdapterCommunication(callback),
m_bLogicalAddressChanged(false)
@@ -62,19 +60,16 @@ CAOCECAdapterCommunication::CAOCECAdapterCommunication(IAdapterCommunicationCall
m_fd = INVALID_SOCKET_VALUE;
}


CAOCECAdapterCommunication::~CAOCECAdapterCommunication(void)
{
Close();
}


bool CAOCECAdapterCommunication::IsOpen(void)
{
return IsInitialised() && m_fd != INVALID_SOCKET_VALUE;
}


bool CAOCECAdapterCommunication::Open(uint32_t UNUSED(iTimeoutMs), bool UNUSED(bSkipChecks), bool bStartListening)
{
CLockObject lock(m_mutex);
@@ -101,7 +96,6 @@ bool CAOCECAdapterCommunication::Open(uint32_t UNUSED(iTimeoutMs), bool UNUSED(b
return false;
}


void CAOCECAdapterCommunication::Close(void)
{
StopThread(0);
@@ -119,14 +113,12 @@ void CAOCECAdapterCommunication::Close(void)
m_fd = INVALID_SOCKET_VALUE;
}


std::string CAOCECAdapterCommunication::GetError(void) const
{
std::string strError(m_strError);
return strError;
}


cec_adapter_message_state CAOCECAdapterCommunication::Write(
const cec_command &data, bool &UNUSED(bRetry), uint8_t UNUSED(iLineTimeout), bool UNUSED(bIsReply))
{
@@ -168,7 +160,6 @@ cec_adapter_message_state CAOCECAdapterCommunication::Write(
return rc;
}


uint16_t CAOCECAdapterCommunication::GetFirmwareVersion(void)
{
int version = 0;
@@ -185,7 +176,6 @@ uint16_t CAOCECAdapterCommunication::GetFirmwareVersion(void)
return (uint16_t)version;
}


cec_vendor_id CAOCECAdapterCommunication::GetVendorId(void)
{
int vendor_id = CEC_VENDOR_UNKNOWN;
@@ -202,7 +192,6 @@ cec_vendor_id CAOCECAdapterCommunication::GetVendorId(void)
return cec_vendor_id(vendor_id);
}


uint16_t CAOCECAdapterCommunication::GetPhysicalAddress(void)
{
int phys_addr = CEC_INVALID_PHYSICAL_ADDRESS;
@@ -220,13 +209,11 @@ uint16_t CAOCECAdapterCommunication::GetPhysicalAddress(void)
return (uint16_t)phys_addr;
}


cec_logical_addresses CAOCECAdapterCommunication::GetLogicalAddresses(void)
{
return m_logicalAddresses;
}


bool CAOCECAdapterCommunication::SetLogicalAddresses(const cec_logical_addresses &addresses)
{
CLockObject lock(m_mutex);
@@ -246,7 +233,6 @@ bool CAOCECAdapterCommunication::SetLogicalAddresses(const cec_logical_addresses
return true;
}


void CAOCECAdapterCommunication::HandleLogicalAddressLost(cec_logical_address UNUSED(oldAddress))
{
unsigned int log_addr = CECDEVICE_BROADCAST;
@@ -262,7 +248,6 @@ void CAOCECAdapterCommunication::HandleLogicalAddressLost(cec_logical_address UN
}
}


void *CAOCECAdapterCommunication::Process(void)
{
uint8_t buffer[CEC_MAX_FRAME_SIZE];

0 comments on commit 472026f

Please sign in to comment.
You can’t perform that action at this time.