Store sensor properties into $HOME/.psensor/psensor.cfg instead of using GConf
[psensor.git] / src / cfg.h
index 728ed51..d56f18b 100644 (file)
--- a/src/cfg.h
+++ b/src/cfg.h
@@ -25,7 +25,7 @@
 #include "color.h"
 
 enum temperature_unit {
-       CELCIUS,
+       CELSIUS,
        FAHRENHEIT
 };
 
@@ -122,4 +122,16 @@ void config_set_sensor_position(const char *, int);
 
 char *config_get_notif_script();
 void config_set_notif_script(const char *);
+
+/*
+ * Returns the user directory containing psensor data (configuration
+ * and log).
+ * Corresponds to $HOME/.psensor/
+ * Creates the directory if it does not exist;
+ * Returns NULL if it cannot be determined.
+ */
+const char *get_psensor_user_dir();
+
+void config_sync();
+
 #endif