summaryrefslogtreecommitdiff
path: root/libupower-glib/up-device.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-02-05 09:41:06 +0000
committerRichard Hughes <richard@hughsie.com>2010-02-05 09:41:06 +0000
commit29d4de79e1400200ec83d2de256926849296a0b7 (patch)
treeaf7c36fe88630839ef0d04658d25a73354a88cec /libupower-glib/up-device.h
parent4c02c6310dc7ebabfb0d772394ef6745cdd8f838 (diff)
downloadupower-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-device.h')
-rw-r--r--libupower-glib/up-device.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libupower-glib/up-device.h b/libupower-glib/up-device.h
index e75c871..231bcb2 100644
--- a/libupower-glib/up-device.h
+++ b/libupower-glib/up-device.h
@@ -27,7 +27,9 @@
#define __UP_DEVICE_H
#include <glib-object.h>
-#include <up-types.h>
+#include <gio/gio.h>
+
+#include <libupower-glib/up-types.h>
G_BEGIN_DECLS
@@ -72,17 +74,21 @@ gchar *up_device_to_text (UpDevice *device);
/* sync versions */
gboolean up_device_refresh_sync (UpDevice *device,
+ GCancellable *cancellable,
GError **error);
gboolean up_device_set_object_path_sync (UpDevice *device,
const gchar *object_path,
+ GCancellable *cancellable,
GError **error);
GPtrArray *up_device_get_history_sync (UpDevice *device,
const gchar *type,
guint timespec,
guint resolution,
+ GCancellable *cancellable,
GError **error);
GPtrArray *up_device_get_statistics_sync (UpDevice *device,
const gchar *type,
+ GCancellable *cancellable,
GError **error);
/* accessors */