X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcec.h;h=1d36eb98ded34a299c3b48df92df97e3d17bdb82;hb=75af24f133bfd316bc69a9b63e190047186f169a;hp=35f41c9a7136bbc8fd0227431a83c83bb0fb3974;hpb=d40928b571290a0d7d9191adc1c847608cca55e2;p=deb_libcec.git diff --git a/include/cec.h b/include/cec.h index 35f41c9..1d36eb9 100644 --- a/include/cec.h +++ b/include/cec.h @@ -376,6 +376,25 @@ namespace CEC */ virtual bool GetCurrentConfiguration(libcec_configuration *configuration) = 0; + /*! + * @brief Change libCEC's configuration. + * @param configuration The new configuration. + * @return True when the configuration was changed successfully, false otherwise. + */ + virtual bool SetConfiguration(const libcec_configuration *configuration) = 0; + + /*! + * @return True when this device can persist the user configuration, false otherwise. + */ + virtual bool CanPersistConfiguration(void) = 0; + + /*! + * @brief Persist the given configuration in adapter (if supported) + * @brief The configuration to store. + * @return True when the configuration was persisted, false otherwise. + */ + virtual bool PersistConfiguration(libcec_configuration *configuration) = 0; + virtual const char *ToString(const cec_menu_state state) = 0; virtual const char *ToString(const cec_version version) = 0; virtual const char *ToString(const cec_power_status status) = 0;