summaryrefslogtreecommitdiff
path: root/src/up-daemon.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2011-03-30 15:09:57 +0100
committerRichard Hughes <richard@hughsie.com>2011-05-04 17:57:13 +0100
commit0fd304c3f3ed41b503fdd4b0e36fe84ba939fb69 (patch)
tree0b4b47e6c5f217573fc8b2021532094035c6a767 /src/up-daemon.h
parent62024c49c8de4c447a1b04a927f32366f3760960 (diff)
downloadupower-0fd304c3f3ed41b503fdd4b0e36fe84ba939fb69.tar.gz
Add new NotifySleep() and NotifyResume() signals that include the sleep type
This allows session power managers to do different actions depending on whether the user is suspending or hibernating. This allows the session policy agent to poke other things (for instance, the screensaver) even if another process initiated the sleep. This is based on a patch from Phillip Susi <psusi@cfl.rr.com>, many thanks.
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 09252b2..6feff2f 100644
--- a/src/up-daemon.h
+++ b/src/up-daemon.h
@@ -98,6 +98,7 @@ gboolean up_daemon_get_low_battery (UpDaemon *daemon,
gboolean up_daemon_suspend (UpDaemon *daemon,
DBusGMethodInvocation *context);
gboolean up_daemon_about_to_sleep (UpDaemon *daemon,
+ const gchar *sleep_kind,
DBusGMethodInvocation *context);
gboolean up_daemon_suspend_allowed (UpDaemon *daemon,
DBusGMethodInvocation *context);