@@ -572,7 +572,9 @@ namespace WPEFramework
572
572
uint32_t HdmiCecSourceImplementation::sendKeyPressEvent (const int logicalAddress, int keyCode)
573
573
{
574
574
if (!(_instance->smConnection ))
575
+ {
575
576
return Core::ERROR_GENERAL;
577
+ }
576
578
LOGINFO (" SendKeyPressEvent logicalAddress 0x%x keycode 0x%x\n " ,logicalAddress,keyCode);
577
579
switch (keyCode)
578
580
{
@@ -1281,7 +1283,7 @@ namespace WPEFramework
1281
1283
}
1282
1284
}
1283
1285
1284
- uint32_t HdmiCecSourceImplementation::getDeviceList (IHdmiCecSource::IHdmiCecSourceDeviceListIterator *&deviceList)
1286
+ uint32_t HdmiCecSourceImplementation::getDeviceList (IHdmiCecSource::IHdmiCecSourceDeviceListIterator *&deviceList, bool &success /* @out */ )
1285
1287
{ // sample servicemanager response:
1286
1288
LOGINFOMETHOD ();
1287
1289
std::vector<Exchange::HdmiCecSourceDevices> localDevices;
@@ -1290,7 +1292,7 @@ namespace WPEFramework
1290
1292
// Trigger CEC device poll here
1291
1293
pthread_cond_signal (&(_instance->m_condSig ));
1292
1294
1293
- bool success = true ;
1295
+ success = true ;
1294
1296
LOGINFO (" getDeviceListWrapper m_numberOfDevices :%d \n " , HdmiCecSourceImplementation::_instance->m_numberOfDevices );
1295
1297
try
1296
1298
{
@@ -1310,7 +1312,7 @@ namespace WPEFramework
1310
1312
success = false ;
1311
1313
}
1312
1314
deviceList = (Core::Service<RPC::IteratorType<Exchange::IHdmiCecSource::IHdmiCecSourceDeviceListIterator>>::Create<Exchange::IHdmiCecSource::IHdmiCecSourceDeviceListIterator>(localDevices));
1313
- returnResponse (success) ;
1315
+ return Core::ERROR_NONE ;
1314
1316
}
1315
1317
1316
1318
bool HdmiCecSourceImplementation::pingDeviceUpdateList (int idev)
@@ -1603,7 +1605,7 @@ namespace WPEFramework
1603
1605
{
1604
1606
std::list<Exchange::IHdmiCecSource::INotification*>::const_iterator index (_hdmiCecSourceNotifications.begin ());
1605
1607
while (index != _hdmiCecSourceNotifications.end ()) {
1606
- (*index)->OnKeyReleaseMsgReceived (logicalAddress);
1608
+ (*index)->SendKeyReleaseMsgEvent (logicalAddress);
1607
1609
index++;
1608
1610
}
1609
1611
}
@@ -1612,7 +1614,7 @@ namespace WPEFramework
1612
1614
{
1613
1615
std::list<Exchange::IHdmiCecSource::INotification*>::const_iterator index (_hdmiCecSourceNotifications.begin ());
1614
1616
while (index != _hdmiCecSourceNotifications.end ()) {
1615
- (*index)->OnKeyPressMsgReceived (logicalAddress,keyCode);
1617
+ (*index)->SendKeyPressMsgEvent (logicalAddress,keyCode);
1616
1618
index++;
1617
1619
}
1618
1620
}
0 commit comments