diff options
author | Richard Hughes <richard@hughsie.com> | 2010-02-05 09:41:06 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2010-02-05 09:41:06 +0000 |
commit | 29d4de79e1400200ec83d2de256926849296a0b7 (patch) | |
tree | af7c36fe88630839ef0d04658d25a73354a88cec /libupower-glib/up-client.h | |
parent | 4c02c6310dc7ebabfb0d772394ef6745cdd8f838 (diff) | |
download | upower-29d4de79e1400200ec83d2de256926849296a0b7.tar.gz |
Use GCancellable in libupower-glib so we can eventually get to GIO async methods without breaking future API
Diffstat (limited to 'libupower-glib/up-client.h')
-rw-r--r-- | libupower-glib/up-client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libupower-glib/up-client.h b/libupower-glib/up-client.h index 5df072b..54b55b1 100644 --- a/libupower-glib/up-client.h +++ b/libupower-glib/up-client.h @@ -27,6 +27,8 @@ #define __UP_CLIENT_H #include <glib-object.h> +#include <gio/gio.h> + #include <libupower-glib/up-device.h> G_BEGIN_DECLS @@ -76,12 +78,16 @@ UpClient *up_client_new (void); /* sync versions */ gboolean up_client_get_properties_sync (UpClient *client, + GCancellable *cancellable, GError **error); gboolean up_client_enumerate_devices_sync (UpClient *client, + GCancellable *cancellable, GError **error); gboolean up_client_suspend_sync (UpClient *client, + GCancellable *cancellable, GError **error); gboolean up_client_hibernate_sync (UpClient *client, + GCancellable *cancellable, GError **error); /* accessors */ |