summaryrefslogtreecommitdiff
path: root/libupower-glib/up-wakeups.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-wakeups.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-wakeups.h')
-rw-r--r--libupower-glib/up-wakeups.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/libupower-glib/up-wakeups.h b/libupower-glib/up-wakeups.h
index a44fb2b..745971b 100644
--- a/libupower-glib/up-wakeups.h
+++ b/libupower-glib/up-wakeups.h
@@ -27,6 +27,8 @@
#define __UP_WAKEUPS_H
#include <glib-object.h>
+#include <gio/gio.h>
+
#include <libupower-glib/up-types.h>
#include <libupower-glib/up-device.h>
#include <libupower-glib/up-wakeup-item.h>
@@ -60,11 +62,20 @@ typedef struct
GType up_wakeups_get_type (void);
UpWakeups *up_wakeups_new (void);
+
+/* sync versions */
guint up_wakeups_get_total_sync (UpWakeups *wakeups,
+ GCancellable *cancellable,
GError **error);
GPtrArray *up_wakeups_get_data_sync (UpWakeups *wakeups,
+ GCancellable *cancellable,
GError **error);
-gboolean up_wakeups_has_capability_sync (UpWakeups *wakeups);
+gboolean up_wakeups_get_properties_sync (UpWakeups *wakeups,
+ GCancellable *cancellable,
+ GError **error);
+
+/* accessors */
+gboolean up_wakeups_get_has_capability (UpWakeups *wakeups);
G_END_DECLS