|
17 | 17 | * limitations under the License.
|
18 | 18 | **/
|
19 | 19 |
|
20 |
| -#define CCEC_NAMESPACE // Enable CCEC namespace |
21 | 20 | #include "HdmiCecSinkImplementation.h"
|
22 | 21 |
|
23 | 22 | #include "ccec/CCEC.hpp"
|
|
39 | 38 | #include "UtilssyncPersistFile.h"
|
40 | 39 | #include "UtilsSearchRDKProfile.h"
|
41 | 40 |
|
| 41 | +// Type aliases to resolve conflicts between CCEC message classes and implementation methods |
| 42 | +// CCEC classes are in global namespace when CCEC_NAMESPACE is not defined in headers |
| 43 | +using CCECRequestActiveSource = RequestActiveSource; |
| 44 | +using CCECSetMenuLanguage = SetMenuLanguage; |
| 45 | +using CCECRequestShortAudioDescriptor = RequestShortAudioDescriptor; |
| 46 | + |
42 | 47 | #define TEST_ADD 0
|
43 | 48 | #define HDMICECSINK_REQUEST_MAX_RETRY 3
|
44 | 49 | #define HDMICECSINK_REQUEST_MAX_WAIT_TIME_MS 2000
|
@@ -2040,7 +2045,7 @@ namespace WPEFramework
|
2040 | 2045 |
|
2041 | 2046 |
|
2042 | 2047 | _instance->smConnection->sendTo(LogicalAddress::BROADCAST,
|
2043 |
| - MessageEncoder().encode(CCEC::RequestActiveSource()), 500); |
| 2048 | + MessageEncoder().encode(CCECRequestActiveSource()), 500); |
2044 | 2049 | }
|
2045 | 2050 |
|
2046 | 2051 | void HdmiCecSinkImplementation::setActiveSource(bool isResponse)
|
@@ -2104,7 +2109,7 @@ namespace WPEFramework
|
2104 | 2109 |
|
2105 | 2110 | lang = _instance->deviceList[_instance->m_logicalAddressAllocated].m_currentLanguage;
|
2106 | 2111 |
|
2107 |
| - _instance->smConnection->sendTo(LogicalAddress::BROADCAST, MessageEncoder().encode(CCEC::SetMenuLanguage(lang)), 100); |
| 2112 | + _instance->smConnection->sendTo(LogicalAddress::BROADCAST, MessageEncoder().encode(CCECSetMenuLanguage(lang)), 100); |
2108 | 2113 | }
|
2109 | 2114 |
|
2110 | 2115 | void HdmiCecSinkImplementation::updateInActiveSource(const int logical_address, const InActiveSource &source )
|
@@ -2203,7 +2208,7 @@ namespace WPEFramework
|
2203 | 2208 | }
|
2204 | 2209 |
|
2205 | 2210 | LOGINFO(" Send requestShortAudioDescriptor Message ");
|
2206 |
| - _instance->smConnection->sendTo(LogicalAddress::AUDIO_SYSTEM,MessageEncoder().encode(CCEC::RequestShortAudioDescriptor(formatid,audioFormatCode,numberofdescriptor)), 1000); |
| 2211 | + _instance->smConnection->sendTo(LogicalAddress::AUDIO_SYSTEM,MessageEncoder().encode(CCECRequestShortAudioDescriptor(formatid,audioFormatCode,numberofdescriptor)), 1000); |
2207 | 2212 |
|
2208 | 2213 | }
|
2209 | 2214 |
|
|
0 commit comments