aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/temperature/tempget.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-05-20 10:12:41 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-05-20 10:12:41 +0000
commit95c41867487e3f974cabccf083e139b24398baa9 (patch)
tree9e29e2ecaeb6d31fa8c53de5e66b97adeabd129e /src/modules/temperature/tempget.c
parentfix stringshare delete (diff)
downloadenlightenment-95c41867487e3f974cabccf083e139b24398baa9.tar.gz
add full udev support for temp module:
if e is compiled with eeze as the preferred backend, a new config page will appear in the settings for the temperature module where internal and udev are selectable options. udev mode should support ALL possible hardware, so if you've been having issues with the current temp module, try udev mode! also note that udev mode provides an extra amount of precision for hahas; it also still obeys the configurable polling intervals. please test and report all bugs! SVN revision: 49062
Diffstat (limited to 'src/modules/temperature/tempget.c')
-rw-r--r--src/modules/temperature/tempget.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/modules/temperature/tempget.c b/src/modules/temperature/tempget.c
index 9cfb785ce..ab7a1bf06 100644
--- a/src/modules/temperature/tempget.c
+++ b/src/modules/temperature/tempget.c
@@ -51,28 +51,28 @@ temperature_get_bus_files(const char* bus)
EINA_LIST_FREE(therms, name)
{
- Eina_List *files;
- char *file;
-
- /* Search each device for temp*_input, these should be
- * temperature devices. */
- snprintf(path, sizeof(path),"%s/%s", busdir, name);
- files = ecore_file_ls(path);
- EINA_LIST_FREE(files, file)
- {
- if ((!strncmp("temp", file, 4)) &&
- (!strcmp("_input", &file[strlen(file) - 6])))
- {
- char *f;
-
- snprintf(path, sizeof(path),
- "%s/%s/%s", busdir, name, file);
- f = strdup(path);
- if (f) result = eina_list_append(result, f);
- }
- free(file);
- }
- free(name);
+ Eina_List *files;
+ char *file;
+
+ /* Search each device for temp*_input, these should be
+ * temperature devices. */
+ snprintf(path, sizeof(path),"%s/%s", busdir, name);
+ files = ecore_file_ls(path);
+ EINA_LIST_FREE(files, file)
+ {
+ if ((!strncmp("temp", file, 4)) &&
+ (!strcmp("_input", &file[strlen(file) - 6])))
+ {
+ char *f;
+
+ snprintf(path, sizeof(path),
+ "%s/%s/%s", busdir, name, file);
+ f = strdup(path);
+ if (f) result = eina_list_append(result, f);
+ }
+ free(file);
+ }
+ free(name);
}
return result;
}