summaryrefslogtreecommitdiff
path: root/src/up-daemon.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-11-20 15:55:37 +0100
committerRichard Hughes <richard@hughsie.com>2014-11-26 11:56:16 +0000
commit90994b0d81ca8e44e6a150c53d2c713fad39c29c (patch)
tree343aa8ec2c9dee4534d44f0868b5606945f8eb27 /src/up-daemon.h
parenta91d03a3a9310b5d00e65a249aab2241906733bc (diff)
downloadupower-90994b0d81ca8e44e6a150c53d2c713fad39c29c.tar.gz
daemon: release resources at shutdown
This makes it easier to find real memory leaks with valgrind. After calling the up_backend_unplug functions, you cannot restart it with up_backend_coldplug since the lists are cleared. Tested with Linux only (not on *BSD; dummy compiles). https://bugs.freedesktop.org/show_bug.cgi?id=82659
Diffstat (limited to 'src/up-daemon.h')
-rw-r--r--src/up-daemon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/up-daemon.h b/src/up-daemon.h
index 3392ad0..87857b3 100644
--- a/src/up-daemon.h
+++ b/src/up-daemon.h
@@ -72,6 +72,7 @@ guint up_daemon_get_number_devices_of_type (UpDaemon *daemon,
UpDeviceKind type);
UpDeviceList *up_daemon_get_device_list (UpDaemon *daemon);
gboolean up_daemon_startup (UpDaemon *daemon);
+void up_daemon_shutdown (UpDaemon *daemon);
void up_daemon_set_lid_is_closed (UpDaemon *daemon,
gboolean lid_is_closed);
void up_daemon_set_lid_is_present (UpDaemon *daemon,