summaryrefslogtreecommitdiff
path: root/libupower-glib/up-client.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-17 14:36:35 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-17 14:36:35 +0200
commit5f43bb78f7a089ff5079082d92e8488114786711 (patch)
tree75ef9cc3ce548d8cc99b226ad1125afa32942a1c /libupower-glib/up-client.h
parent0010e9325110e5a70a0d2381c84f88e7fb044ce4 (diff)
downloadupower-5f43bb78f7a089ff5079082d92e8488114786711.tar.gz
lib: Remove up_client_enumerate_devices_sync()
And make device-removed send an object path, not a UpDevice. This means that we don't keep all the remote devices as local UpDevices object, getting woken up any time any of them have a property changed, without anybody listening. This should greatly cut down on the wakeups on the client side, especially for applications that only use a small portion of the API like the "on-battery" or "warning-level" properties.
Diffstat (limited to 'libupower-glib/up-client.h')
-rw-r--r--libupower-glib/up-client.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/libupower-glib/up-client.h b/libupower-glib/up-client.h
index 935a651..60bfb15 100644
--- a/libupower-glib/up-client.h
+++ b/libupower-glib/up-client.h
@@ -56,7 +56,7 @@ typedef struct
void (*device_added) (UpClient *client,
UpDevice *device);
void (*device_removed) (UpClient *client,
- UpDevice *device);
+ const gchar *object_path);
/*< private >*/
/* Padding for future expansion */
void (*_up_client_reserved1) (void);
@@ -74,9 +74,6 @@ GType up_client_get_type (void);
UpClient *up_client_new (void);
/* sync versions */
-gboolean up_client_enumerate_devices_sync (UpClient *client,
- GCancellable *cancellable,
- GError **error);
UpDevice * up_client_get_display_device (UpClient *client);
char * up_client_get_critical_action (UpClient *client);