Skip to content

Commit efa5839

Browse files
committed
Adding CCEC Namespace
1 parent ec512e7 commit efa5839

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

HdmiCecSink/HdmiCecSinkImplementation.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include "HdmiCecSinkImplementation.h"
2121

22+
#include "ccec/CCEC.hpp"
2223
#include "ccec/Connection.hpp"
2324
#include "ccec/CECFrame.hpp"
2425
#include "ccec/MessageEncoder.hpp"
@@ -104,7 +105,6 @@ static std::vector<DeviceFeatures> deviceFeatures = {DEVICE_FEATURES_TV};
104105
#define API_VERSION_NUMBER_MINOR 3
105106
#define API_VERSION_NUMBER_PATCH 7
106107

107-
using namespace CCEC;
108108
using PowerState = WPEFramework::Exchange::IPowerManager::PowerState;
109109

110110
namespace WPEFramework
@@ -2039,7 +2039,7 @@ namespace WPEFramework
20392039

20402040

20412041
_instance->smConnection->sendTo(LogicalAddress::BROADCAST,
2042-
MessageEncoder().encode(RequestActiveSource()), 500);
2042+
MessageEncoder().encode(CCEC::RequestActiveSource()), 500);
20432043
}
20442044

20452045
void HdmiCecSinkImplementation::setActiveSource(bool isResponse)
@@ -2103,7 +2103,7 @@ namespace WPEFramework
21032103

21042104
lang = _instance->deviceList[_instance->m_logicalAddressAllocated].m_currentLanguage;
21052105

2106-
_instance->smConnection->sendTo(LogicalAddress::BROADCAST, MessageEncoder().encode(SetMenuLanguage(lang)), 100);
2106+
_instance->smConnection->sendTo(LogicalAddress::BROADCAST, MessageEncoder().encode(CCEC::SetMenuLanguage(lang)), 100);
21072107
}
21082108

21092109
void HdmiCecSinkImplementation::updateInActiveSource(const int logical_address, const InActiveSource &source )
@@ -2202,7 +2202,7 @@ namespace WPEFramework
22022202
}
22032203

22042204
LOGINFO(" Send requestShortAudioDescriptor Message ");
2205-
_instance->smConnection->sendTo(LogicalAddress::AUDIO_SYSTEM,MessageEncoder().encode(RequestShortAudioDescriptor(formatid,audioFormatCode,numberofdescriptor)), 1000);
2205+
_instance->smConnection->sendTo(LogicalAddress::AUDIO_SYSTEM,MessageEncoder().encode(CCEC::RequestShortAudioDescriptor(formatid,audioFormatCode,numberofdescriptor)), 1000);
22062206

22072207
}
22082208

HdmiCecSource/HdmiCecSourceImplementation.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ static PowerStatus tvPowerState = 1;
7878
static bool isDeviceActiveSource = false;
7979
static bool isLGTvConnected = false;
8080

81-
using namespace CCEC;
8281
using namespace WPEFramework;
8382

8483

@@ -1032,7 +1031,7 @@ namespace WPEFramework
10321031
LOGINFO("Command: sending GiveDevicePowerStatus \r\n");
10331032
smConnection->sendTo(LogicalAddress::TV, MessageEncoder().encode(GiveDevicePowerStatus()));
10341033
LOGINFO("Command: sending request active Source isDeviceActiveSource is set to false\r\n");
1035-
smConnection->sendTo(LogicalAddress::BROADCAST, MessageEncoder().encode(RequestActiveSource()));
1034+
smConnection->sendTo(LogicalAddress::BROADCAST, MessageEncoder().encode(CCEC::RequestActiveSource()));
10361035
isDeviceActiveSource = false;
10371036
LOGINFO("Command: GiveDeviceVendorID sending VendorID response :%s\n", \
10381037
(isLGTvConnected)?lgVendorId.toString().c_str():appVendorId.toString().c_str());

0 commit comments

Comments
 (0)