X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fcfg.h;h=a029960c285ac64a3600b75064827bd256ca2d37;hb=270d8e258b541a4e481c7323a2c1feb49f19dc2e;hp=2aa5a3e06c2bac4c0cf244ba3eafe5257e64ecc3;hpb=0ef6b5963fe07dcdf417058327a35b1655e44498;p=psensor.git diff --git a/src/cfg.h b/src/cfg.h index 2aa5a3e..a029960 100644 --- a/src/cfg.h +++ b/src/cfg.h @@ -47,8 +47,6 @@ struct config { /* Position of the sensors list table */ enum sensorlist_position sensorlist_position; - bool window_decoration_enabled; - bool window_keep_below_enabled; bool window_restore_enabled; /* Last saved position of the window. */ int window_x; @@ -87,10 +85,10 @@ void config_cleanup(void); GdkRGBA *config_get_sensor_color(const char *); void config_set_sensor_color(const char *, const GdkRGBA *); -int config_get_sensor_alarm_high_threshold(const char *); +bool config_get_sensor_alarm_high_threshold(const char *, double *); void config_set_sensor_alarm_high_threshold(const char *, int); -int config_get_sensor_alarm_low_threshold(const char *); +bool config_get_sensor_alarm_low_threshold(const char *, double *); void config_set_sensor_alarm_low_threshold(const char *, int); bool config_get_sensor_alarm_enabled(const char *); @@ -146,7 +144,15 @@ void config_set_nvctrl_enable(bool); bool config_is_atiadlsdk_enabled(void); void config_set_atiadlsdk_enable(bool); -int config_get_sensor_unit(void); +enum temperature_unit config_get_temperature_unit(void); + +double config_get_default_high_threshold_temperature(void); + +bool config_is_window_decoration_enabled(void); +void config_set_window_decoration_enabled(bool); + +bool config_is_window_keep_below_enabled(void); +void config_set_window_keep_below_enabled(bool); /* * Returns the user directory containing psensor data (configuration