cleanup notification support
[psensor.git] / src / cfg.h
index c9e3ef5..8b09a67 100644 (file)
--- a/src/cfg.h
+++ b/src/cfg.h
 
 #include "color.h"
 
-#define SENSORLIST_POSITION_RIGHT 0
-#define SENSORLIST_POSITION_LEFT 1
-#define SENSORLIST_POSITION_TOP 2
-#define SENSORLIST_POSITION_BOTTOM 3
+enum sensorlist_position {
+       SENSORLIST_POSITION_RIGHT,
+       SENSORLIST_POSITION_LEFT,
+       SENSORLIST_POSITION_TOP,
+       SENSORLIST_POSITION_BOTTOM
+};
 
 struct config {
        struct color *graph_bgcolor;
@@ -38,7 +40,7 @@ struct config {
        /*
           Position of the sensors list table
         */
-       int sensorlist_position;
+       enum sensorlist_position sensorlist_position;
 
        int window_decoration_enabled;
        int window_keep_below_enabled;
@@ -76,13 +78,11 @@ void config_init();
 
 void config_cleanup();
 
-struct color *config_get_sensor_color(char *sensor_name,
-                                     struct color *default_color);
-
-void config_set_sensor_color(char *sensor_name, struct color *color);
+struct color *config_get_sensor_color(char *, struct color *);
+void config_set_sensor_color(char *, struct color *);
 
 int config_get_sensor_alarm_limit(char *, int);
-void config_set_sensor_alarm_limit(char *sensor_name, int alarm_limit);
+void config_set_sensor_alarm_limit(char *, int);
 
 int config_get_sensor_alarm_enabled(char *);
 void config_set_sensor_alarm_enabled(char *, int);