+static bool sensor_get_double(const char *sid, const char *att, double *d)
+{
+ GKeyFile *kfile;
+ GError *err;
+ double v;
+
+ kfile = get_sensor_key_file();
+
+ err = NULL;
+ v = g_key_file_get_double(kfile, sid, att, &err);
+
+ if (err)
+ return false;
+
+ *d = v;
+ return true;
+}
+