X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcecc.h;h=bec392030e6cd67bce5443ed4f7aa3540efdcac7;hb=88c43521c98366880d9ea218aa476f278607b322;hp=f897e13632380e36e8931e17385a13a211f4fdae;hpb=6a1c0009842a1857b863655813595292422a512b;p=deb_libcec.git diff --git a/include/cecc.h b/include/cecc.h index f897e13..bec3920 100644 --- a/include/cecc.h +++ b/include/cecc.h @@ -232,6 +232,40 @@ extern DECLSPEC CEC::cec_version cec_get_device_cec_version(CEC::cec_logical_add extern DECLSPEC cec_version cec_get_device_cec_version(cec_logical_address iLogicalAddress); #endif +/*! + * @brief Get the menu language of the device with the given logical address + * @param iLogicalAddress The device to get the menu language for. + * @param language The requested menu language. + * @return True when fetched succesfully, false otherwise. + */ +#ifdef __cplusplus +extern DECLSPEC int cec_get_device_menu_language(CEC::cec_logical_address iLogicalAddress, CEC::cec_menu_language *language); +#else +extern DECLSPEC int cec_get_device_menu_language(cec_logical_address iLogicalAddress, cec_menu_language *language); +#endif + +/*! + * @brief Get the vendor ID of the device with the given logical address. + * @param iLogicalAddress The device to get the vendor id for. + * @return The vendor ID or 0 if it wasn't found. + */ +#ifdef __cplusplus +extern DECLSPEC uint64_t cec_get_device_vendor_id(CEC::cec_logical_address iLogicalAddress); +#else +extern DECLSPEC uint64_t cec_get_device_vendor_id(cec_logical_address iLogicalAddress); +#endif + +/*! + * @brief Get the power status of the device with the given logical address. + * @param iLogicalAddress The device to get the power status for. + * @return The power status or CEC_POWER_STATUS_UNKNOWN if it wasn't found. + */ +#ifdef __cplusplus +extern DECLSPEC CEC::cec_power_status cec_get_device_power_status(CEC::cec_logical_address iLogicalAddress); +#else +extern DECLSPEC cec_power_status cec_get_device_power_status(cec_logical_address iLogicalAddress); +#endif + #ifdef __cplusplus }; #endif