summaryrefslogtreecommitdiff
path: root/libupower-glib/up-client.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 /libupower-glib/up-client.h
parent4214c6a3450cb2e8f5ef936b1cbd76a772ffb5ed (diff)
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 'libupower-glib/up-client.h')
-rw-r--r--libupower-glib/up-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libupower-glib/up-client.h b/libupower-glib/up-client.h
index 54b55b1..995c5fb 100644
--- a/libupower-glib/up-client.h
+++ b/libupower-glib/up-client.h
@@ -86,6 +86,9 @@ gboolean up_client_enumerate_devices_sync (UpClient *client,
gboolean up_client_suspend_sync (UpClient *client,
GCancellable *cancellable,
GError **error);
+gboolean up_client_about_to_sleep_sync (UpClient *client,
+ GCancellable *cancellable,
+ GError **error);
gboolean up_client_hibernate_sync (UpClient *client,
GCancellable *cancellable,
GError **error);