diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-17 09:04:03 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-17 09:04:03 +0200 |
commit | db31456921f9977d8fef8ed1dcee6517107358ff (patch) | |
tree | dcd098e7365d3d1b2fb8bc2170a4cf29c1a92a3c /src/up-daemon.h | |
parent | a7870229ee32616ac9e55edbab1045d1dac171be (diff) | |
download | upower-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-daemon.h')
-rw-r--r-- | src/up-daemon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/up-daemon.h b/src/up-daemon.h index 43b534b..68c575c 100644 --- a/src/up-daemon.h +++ b/src/up-daemon.h @@ -99,6 +99,8 @@ gboolean up_daemon_enumerate_devices (UpDaemon *daemon, DBusGMethodInvocation *context); gboolean up_daemon_get_display_device (UpDaemon *daemon, DBusGMethodInvocation *context); +gboolean up_daemon_get_critical_action (UpDaemon *daemon, + DBusGMethodInvocation *context); G_END_DECLS |