summaryrefslogtreecommitdiff
path: root/src/up-daemon.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-14 14:27:48 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-14 14:27:48 +0200
commit77c3278ff525edf30e2e7adb417a8944b59ccefa (patch)
treeb9d8b263f50eee07c07a9e24a2d5bea73a5652da /src/up-daemon.h
parentac1708e86e0f87c25e5cf7e11a82324c5d002fba (diff)
downloadupower-77c3278ff525edf30e2e7adb417a8944b59ccefa.tar.gz
daemon: Move all computations of warning level to daemon
There's no reason why the state check should be done in the UpDevice implementation, and the state will be needed to add a new warning level for UPSes.
Diffstat (limited to 'src/up-daemon.h')
-rw-r--r--src/up-daemon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/up-daemon.h b/src/up-daemon.h
index 3bf7a19..19ca334 100644
--- a/src/up-daemon.h
+++ b/src/up-daemon.h
@@ -84,6 +84,7 @@ void up_daemon_set_on_battery (UpDaemon *daemon,
void up_daemon_set_warning_level (UpDaemon *daemon,
UpDeviceLevel warning_level);
UpDeviceLevel up_daemon_compute_warning_level(UpDaemon *daemon,
+ UpDeviceState state,
UpDeviceKind kind,
gboolean power_supply,
gdouble percentage,