summaryrefslogtreecommitdiff
path: root/src/up-daemon.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-02-08 12:18:50 +0000
committerRichard Hughes <richard@hughsie.com>2010-02-08 12:18:50 +0000
commit02914e71ec36ab9d6642c020929fbf9a2b31235b (patch)
treec71f3ace0175c4823e9fe309efb1e6170010e5a2 /src/up-daemon.h
parent4214c6a3450cb2e8f5ef936b1cbd76a772ffb5ed (diff)
downloadupower-02914e71ec36ab9d6642c020929fbf9a2b31235b.tar.gz
Add a new method and two new signals to inform userspace of the pending suspend and the resume event
Based on an idea from Matthew Garrett and Lennart Poettering
Diffstat (limited to 'src/up-daemon.h')
-rw-r--r--src/up-daemon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/up-daemon.h b/src/up-daemon.h
index 9361ae8..c919a91 100644
--- a/src/up-daemon.h
+++ b/src/up-daemon.h
@@ -83,6 +83,8 @@ gboolean up_daemon_get_low_battery (UpDaemon *daemon,
DBusGMethodInvocation *context);
gboolean up_daemon_suspend (UpDaemon *daemon,
DBusGMethodInvocation *context);
+gboolean up_daemon_about_to_sleep (UpDaemon *daemon,
+ DBusGMethodInvocation *context);
gboolean up_daemon_hibernate (UpDaemon *daemon,
DBusGMethodInvocation *context);
gboolean up_daemon_can_suspend (UpDaemon *daemon,