diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-15 16:43:03 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-15 17:50:18 +0200 |
commit | 2cfd98c01d937922e24c6e0eaa80bc815efe4828 (patch) | |
tree | 9b6010bf409ce649f188a7991258d6cacabe752f /src/up-daemon.h | |
parent | 85ce906bf232b16ec8401200cf11810cd879330f (diff) | |
download | upower-2cfd98c01d937922e24c6e0eaa80bc815efe4828.tar.gz |
daemon: Coalesce PropertiesChanged signals together
Instead of sending one changed signal at a time, coalesce them
together to reduce wakeups.
We also export up_daemon_emit_properties_changed() for UpDevice
to use.
Diffstat (limited to 'src/up-daemon.h')
-rw-r--r-- | src/up-daemon.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/up-daemon.h b/src/up-daemon.h index 19ca334..ae50de6 100644 --- a/src/up-daemon.h +++ b/src/up-daemon.h @@ -89,7 +89,10 @@ UpDeviceLevel up_daemon_compute_warning_level(UpDaemon *daemon, gboolean power_supply, gdouble percentage, gint64 time_to_empty); - +void up_daemon_emit_properties_changed (DBusGConnection *gconnection, + const gchar *object_path, + const gchar *interface, + GHashTable *props); /* exported */ gboolean up_daemon_enumerate_devices (UpDaemon *daemon, |