X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcecc.h;h=c069b140dbd75da2d65d9fbec2f6c5d8c44e581e;hb=cd505625984870e36f98323209d3c2d7273e3266;hp=bfbe0ccba60b60838d5c0214f6010152fb07fe6d;hpb=02ee2c6832291a768a1bf749baf68ec8756db528;p=deb_libcec.git diff --git a/include/cecc.h b/include/cecc.h index bfbe0cc..c069b14 100644 --- a/include/cecc.h +++ b/include/cecc.h @@ -175,26 +175,45 @@ extern DECLSPEC int cec_get_next_command(cec_command *command); /*! * @brief Transmit a frame on the CEC line. * @param data The frame to send. - * @param bWaitForAck Wait for an ACK message for 1 second after this frame has been sent. * @return True when the data was sent and acked, false otherwise. */ #ifdef __cplusplus -extern DECLSPEC int cec_transmit(const CEC::cec_command &data, int bWaitForAck = 1); +extern DECLSPEC int cec_transmit(const CEC::cec_command &data); #else -extern DECLSPEC int cec_transmit(const cec_command &data, int bWaitForAck = 1); +extern DECLSPEC int cec_transmit(const cec_command &data); #endif /*! - * @brief Set the logical address of the CEC adapter. - * @param iLogicalAddress The cec adapter's logical address. - * @return True when the logical address was set succesfully, false otherwise. + * @brief Change the logical address of the CEC adapter. + * @param iLogicalAddress The CEC adapter's new logical address. + * @return True when the logical address was set successfully, false otherwise. */ #ifdef __cplusplus -extern DECLSPEC int cec_set_logical_address(CEC::cec_logical_address iLogicalAddress); +extern DECLSPEC int cec_set_logical_address(CEC::cec_logical_address iLogicalAddress = CEC::CECDEVICE_PLAYBACKDEVICE1); #else extern DECLSPEC int cec_set_logical_address(cec_logical_address myAddress, cec_logical_address targetAddress); #endif +/*! + * @brief Change the physical address (HDMI port) of the CEC adapter. + * @param iPhysicalAddress The CEC adapter's new physical address. + * @brief True when the physical address was set successfully, false otherwise. + */ +extern DECLSPEC int cec_set_physical_address(uint16_t iPhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS); + +/*! + * @brief Display a message on the TV. + * @brief The message to display. + * @return True when the command was sent, false otherwise. + */ +#ifdef __cplusplus +extern DECLSPEC int cec_set_osd_string(CEC::cec_logical_address iLogicalAddress, CEC::cec_display_control duration, const char *strMessage); +#else +extern DECLSPEC int cec_set_osd_string(cec_logical_address iLogicalAddress, cec_display_control duration, const char *strMessage); +#endif + +extern DECLSPEC int cec_switch_monitoring(int bEnable); + #ifdef __cplusplus }; #endif