forked from enlightenment/enlightenment
parent
b208a072af
commit
013cf15a76
|
@ -637,9 +637,9 @@ _battery_cb_check(void *data)
|
|||
ef = data;
|
||||
if (ef->battery_check_mode == 0)
|
||||
{
|
||||
if (e_file_is_dir("/proc/acpi"))
|
||||
if (ecore_file_is_dir("/proc/acpi"))
|
||||
ef->battery_check_mode = CHECK_LINUX_ACPI;
|
||||
else if (e_file_exists("/proc/apm"))
|
||||
else if (ecore_file_exists("/proc/apm"))
|
||||
ef->battery_check_mode = CHECK_LINUX_APM;
|
||||
}
|
||||
switch (ef->battery_check_mode)
|
||||
|
@ -784,7 +784,7 @@ _battery_linux_acpi_check(Battery *ef)
|
|||
stat = E_NEW(Status, 1);
|
||||
|
||||
/* Read some information on first run. */
|
||||
bats = e_file_ls("/proc/acpi/battery");
|
||||
bats = ecore_file_ls("/proc/acpi/battery");
|
||||
while (bats)
|
||||
{
|
||||
FILE *f;
|
||||
|
|
|
@ -780,7 +780,7 @@ _temperature_cb_check(void *data)
|
|||
char buf[4096];
|
||||
|
||||
ef = data;
|
||||
therms = e_file_ls("/proc/acpi/thermal_zone");
|
||||
therms = ecore_file_ls("/proc/acpi/thermal_zone");
|
||||
if (!therms)
|
||||
{
|
||||
FILE *f;
|
||||
|
|
Loading…
Reference in New Issue