* @param iAddress The device to get the OSD name for.
* @return The OSD name.
*/
- virtual cec_osd_name GetOSDName(cec_logical_address iAddress) = 0;
+ virtual cec_osd_name GetDeviceOSDName(cec_logical_address iAddress) = 0;
/*!
* @brief Get the logical address of the device that is currently the active source on the CEC bus.
#endif
#ifdef __cplusplus
-extern DECLSPEC CEC::cec_osd_name cec_get_osd_name(CEC::cec_logical_address iAddress);
+extern DECLSPEC CEC::cec_osd_name cec_get_device_osd_name(CEC::cec_logical_address iAddress);
#else
-extern DECLSPEC cec_osd_name cec_get_osd_name(cec_logical_address iAddress);
+extern DECLSPEC cec_osd_name cec_get_device_osd_name(cec_logical_address iAddress);
#endif
extern DECLSPEC int cec_enable_physical_address_detection(void);
return m_libCec->SendKeyRelease((cec_logical_address)destination, wait);
}
- String ^ GetOSDName(CecLogicalAddress logicalAddress)
+ String ^ GetDeviceOSDName(CecLogicalAddress logicalAddress)
{
- cec_osd_name osd = m_libCec->GetOSDName((cec_logical_address) logicalAddress);
+ cec_osd_name osd = m_libCec->GetDeviceOSDName((cec_logical_address) logicalAddress);
return gcnew String(osd.name);
}
return false;
}
-cec_osd_name CLibCEC::GetOSDName(cec_logical_address iAddress)
+cec_osd_name CLibCEC::GetDeviceOSDName(cec_logical_address iAddress)
{
cec_osd_name retVal;
retVal.device = iAddress;
virtual uint8_t MuteAudio(bool bWait = true);
virtual bool SendKeypress(cec_logical_address iDestination, cec_user_control_code key, bool bWait = false);
virtual bool SendKeyRelease(cec_logical_address iDestination, bool bWait = false);
- virtual cec_osd_name GetOSDName(cec_logical_address iAddress);
+ virtual cec_osd_name GetDeviceOSDName(cec_logical_address iAddress);
virtual bool EnablePhysicalAddressDetection(void);
virtual cec_logical_address GetActiveSource(void);
virtual bool IsActiveSource(cec_logical_address iAddress);
return -1;
}
-cec_osd_name cec_get_osd_name(cec_logical_address iAddress)
+cec_osd_name cec_get_device_osd_name(cec_logical_address iAddress)
{
cec_osd_name retVal;
retVal.device = iAddress;
retVal.name[0] = 0;
if (cec_parser)
- retVal = cec_parser->GetOSDName(iAddress);
+ retVal = cec_parser->GetDeviceOSDName(iAddress);
return retVal;
}
int iDev = atoi(strDev);
if (iDev >= 0 && iDev < 15)
{
- cec_osd_name name = parser->GetOSDName((cec_logical_address)iDev);
+ cec_osd_name name = parser->GetDeviceOSDName((cec_logical_address)iDev);
cout << "OSD name of device " << iDev << " is '" << name.name << "'" << endl;
}
return true;
uint16_t iPhysicalAddress = parser->GetDevicePhysicalAddress((cec_logical_address)iPtr);
cec_version iCecVersion = parser->GetDeviceCecVersion((cec_logical_address)iPtr);
cec_power_status power = parser->GetDevicePowerStatus((cec_logical_address)iPtr);
- cec_osd_name osdName = parser->GetOSDName((cec_logical_address)iPtr);
+ cec_osd_name osdName = parser->GetDeviceOSDName((cec_logical_address)iPtr);
CStdString strAddr;
strAddr.Format("%04x", iPhysicalAddress);
cec_menu_language lang;