return g_settings_get_int(settings, k);
}
-char *config_get_notif_script()
+char *config_get_notif_script(void)
{
char *str;
set_string(KEY_NOTIFICATION_SCRIPT, "");
}
-static struct color *get_background_color()
+static struct color *get_background_color(void)
{
char *scolor;
struct color *c;
return c;
}
-static struct color *get_foreground_color()
+static struct color *get_foreground_color(void)
{
char *scolor;
struct color *c;
return c;
}
-static bool is_alpha_channel_enabled()
+static bool is_alpha_channel_enabled(void)
{
return get_bool(KEY_ALPHA_CHANNEL_ENABLED);
}
set_bool(KEY_ALPHA_CHANNEL_ENABLED, b);
}
-static enum sensorlist_position get_sensorlist_position()
+static enum sensorlist_position get_sensorlist_position(void)
{
return get_int(KEY_INTERFACE_SENSORLIST_POSITION);
}
set_int(KEY_INTERFACE_SENSORLIST_POSITION, pos);
}
-static double get_graph_background_alpha()
+static double get_graph_background_alpha(void)
{
return get_double(KEY_GRAPH_BACKGROUND_ALPHA);
}
free(str);
}
-bool is_slog_enabled()
+bool is_slog_enabled(void)
{
return get_bool(KEY_SLOG_ENABLED);
}
log_fct_exit();
}
-int config_get_slog_interval()
+int config_get_slog_interval(void)
{
return get_int(KEY_SLOG_INTERVAL);
}
set_int(KEY_SLOG_INTERVAL, interval);
}
-static bool is_window_decoration_enabled()
+static bool is_window_decoration_enabled(void)
{
return !get_bool(KEY_INTERFACE_WINDOW_DECORATION_DISABLED);
}
-static bool is_window_keep_below_enabled()
+static bool is_window_keep_below_enabled(void)
{
return get_bool(KEY_INTERFACE_WINDOW_KEEP_BELOW_ENABLED);
}
set_bool(KEY_INTERFACE_WINDOW_KEEP_BELOW_ENABLED, enabled);
}
-bool config_is_smooth_curves_enabled()
+bool config_is_smooth_curves_enabled(void)
{
return get_bool(KEY_GRAPH_SMOOTH_CURVES_ENABLED);
}
}
-static void init()
+static void init(void)
{
log_fct_enter();
log_fct_exit();
}
-void config_cleanup()
+void config_cleanup(void)
{
config_sync();
slog_enabled_cbk = NULL;
}
-struct config *config_load()
+struct config *config_load(void)
{
struct config *c;
set_int(KEY_INTERFACE_TEMPERATURE_UNIT, c->temperature_unit);
}
-const char *get_psensor_user_dir()
+const char *get_psensor_user_dir(void)
{
const char *home;
return user_dir;
}
-static const char *get_sensor_config_path()
+static const char *get_sensor_config_path(void)
{
const char *dir;
return sensor_config_path;
}
-static GKeyFile *get_sensor_key_file()
+static GKeyFile *get_sensor_key_file(void)
{
int ret;
GError *err;
return key_file;
}
-static void save_sensor_key_file()
+static void save_sensor_key_file(void)
{
GKeyFile *kfile;
const char *path;
log_fct_exit();
}
-void config_sync()
+void config_sync(void)
{
log_fct_enter();
if (settings)
sensor_set_bool(sid, ATT_SENSOR_APPINDICATOR_LABEL_ENABLED, enabled);
}
-GSettings *config_get_GSettings()
+GSettings *config_get_GSettings(void)
{
return settings;
}
return get_bool(KEY_PROVIDER_LMSENSORS_ENABLED);
}
-bool config_is_gtop2_enabled()
+bool config_is_gtop2_enabled(void)
{
return get_bool(KEY_PROVIDER_GTOP2_ENABLED);
}
-bool config_is_udisks2_enabled()
+bool config_is_udisks2_enabled(void)
{
return get_bool(KEY_PROVIDER_UDISKS2_ENABLED);
}
-bool config_is_hddtemp_enabled()
+bool config_is_hddtemp_enabled(void)
{
return get_bool(KEY_PROVIDER_HDDTEMP_ENABLED);
}
-bool config_is_libatasmart_enabled()
+bool config_is_libatasmart_enabled(void)
{
return get_bool(KEY_PROVIDER_LIBATASMART_ENABLED);
}
-bool config_is_nvctrl_enabled()
+bool config_is_nvctrl_enabled(void)
{
return get_bool(KEY_PROVIDER_NVCTRL_ENABLED);
}
-bool config_is_atiadlsdk_enabled()
+bool config_is_atiadlsdk_enabled(void)
{
return get_bool(KEY_PROVIDER_ATIADLSDK_ENABLED);
}