summaryrefslogtreecommitdiff
path: root/hald/util.h
diff options
context:
space:
mode:
authorDavid Zeuthen <david@fubar.dk>2005-05-11 17:46:32 +0000
committerDavid Zeuthen <david@fubar.dk>2005-05-11 17:46:32 +0000
commit019a7dff6ecff26ac255b4b08b7c6eef2bf7d085 (patch)
treea5d9aa38f8912fb9b213070ca58190fad16ed378 /hald/util.h
parent2d4fd707c9ac9aff76621e4abcf4b072d2afaad9 (diff)
Also use the util_compute_time_remaining here
Patch from Richard Hughes <richard@hughsie.com> New function used to calculate the time remaining for ACPI laptops as the information is not provided. Add code to refresh "battery.remaining_time" using the new function util_compute_time_remaining.
Diffstat (limited to 'hald/util.h')
-rw-r--r--hald/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hald/util.h b/hald/util.h
index 9cb91911..21892418 100644
--- a/hald/util.h
+++ b/hald/util.h
@@ -29,6 +29,8 @@
#include "device.h"
#include "device_store.h"
+int util_compute_time_remaining (const char *id, int chargeRate, int chargeLevel, int chargeLastFull, gboolean isDischarging, gboolean isCharging);
+
gboolean hal_util_remove_trailing_slash (gchar *path);
gboolean hal_util_get_fs_mnt_path (const gchar *fs_type, gchar *mnt_path, gsize len);