summaryrefslogtreecommitdiff
path: root/src/freebsd
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-13 02:46:32 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-14 11:06:53 +0200
commit68b9975ad98b94a28ce2e2ca21316e603d464f1a (patch)
treeca1b10096a7c2d6bca0b32913f1fc14575eefc99 /src/freebsd
parent28438a7672eec8277341d14121bf267f8e0542b3 (diff)
downloadupower-68b9975ad98b94a28ce2e2ca21316e603d464f1a.tar.gz
daemon: Add CriticalPowerAction
Paraphrasing from the configuration option: The action to take when "TimeAction" or "PercentageAction" above has been reached for the batteries (UPS or laptop batteries) supplying the computer. This is done 20 seconds after the warning-level variable got set to UP_DEVICE_LEVEL_ACTION has been set, to give the opportunity to front-ends to display a (short) warning. This is only implemented for the Linux backend, using logind.
Diffstat (limited to 'src/freebsd')
-rw-r--r--src/freebsd/up-backend.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/freebsd/up-backend.c b/src/freebsd/up-backend.c
index 74a0b77..1466bbf 100644
--- a/src/freebsd/up-backend.c
+++ b/src/freebsd/up-backend.c
@@ -295,6 +295,18 @@ up_backend_coldplug (UpBackend *backend, UpDaemon *daemon)
return TRUE;
}
+/**
+ * up_backend_take_action:
+ * @backend: The %UpBackend class instance
+ *
+ * Act upon the %UP_DEVICE_LEVEL_ACTION warning-level.
+ **/
+void
+up_backend_take_action (UpBackend *backend)
+{
+ /* FIXME: Implement */
+}
+
/* Return value: a percentage value */
gfloat
up_backend_get_used_swap (UpBackend *backend)