X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FLibCEC.h;h=9c3e8f1002c235bd73f5ea150cb47346f794ab86;hb=e046c7bff238e90b4080f0604c00a45340b0b68c;hp=9bff00f28fd4dd5dde5ecdab64182bbcf30971f6;hpb=eab72c4079c8f106f825f799d1f2f6218066d3ed;p=deb_libcec.git diff --git a/src/lib/LibCEC.h b/src/lib/LibCEC.h index 9bff00f..9c3e8f1 100644 --- a/src/lib/LibCEC.h +++ b/src/lib/LibCEC.h @@ -89,13 +89,15 @@ namespace CEC virtual bool IsActiveDevice(cec_logical_address iAddress); virtual bool IsActiveDeviceType(cec_device_type type); virtual bool SetHDMIPort(cec_logical_address iBaseDevice, uint8_t iPort = CEC_DEFAULT_HDMI_PORT); - virtual uint8_t VolumeUp(bool bWait = true); - virtual uint8_t VolumeDown(bool bWait = true); - 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 uint8_t VolumeUp(bool bSendRelease = true); + virtual uint8_t VolumeDown(bool bSendRelease = true); + virtual uint8_t MuteAudio(bool bSendRelease = true); + virtual bool SendKeypress(cec_logical_address iDestination, cec_user_control_code key, bool bWait = true); + virtual bool SendKeyRelease(cec_logical_address iDestination, bool bWait = true); + 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); const char *ToString(const cec_menu_state state); const char *ToString(const cec_version version);