summaryrefslogtreecommitdiff
path: root/src/up-backend.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-17 09:04:03 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-17 09:04:03 +0200
commitdb31456921f9977d8fef8ed1dcee6517107358ff (patch)
treedcd098e7365d3d1b2fb8bc2170a4cf29c1a92a3c /src/up-backend.h
parenta7870229ee32616ac9e55edbab1045d1dac171be (diff)
downloadupower-db31456921f9977d8fef8ed1dcee6517107358ff.tar.gz
all: Add GetCriticalAction daemon method
This allows desktop front-ends to get which action will actually be taken when we hit critical battery. This is not a property as availability of actions might change over the course of the run of the system, and we didn't want to make unnecessary D-Bus calls on startup.
Diffstat (limited to 'src/up-backend.h')
-rw-r--r--src/up-backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/up-backend.h b/src/up-backend.h
index 71b074c..7b3145c 100644
--- a/src/up-backend.h
+++ b/src/up-backend.h
@@ -70,6 +70,7 @@ void up_backend_test (gpointer user_data);
gboolean up_backend_coldplug (UpBackend *backend,
UpDaemon *daemon);
void up_backend_take_action (UpBackend *backend);
+const char *up_backend_get_critical_action (UpBackend *backend);
G_END_DECLS