summaryrefslogtreecommitdiff
path: root/src/up-daemon.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-11-18 10:12:56 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-11-18 10:30:51 +0100
commita8366e2a6a3f013d527bbba912eee0e59f08224b (patch)
treead8484fed457f7e2be0daa5cea3bfce969419618 /src/up-daemon.h
parent20076ab59ee4ff46bf24488d112515c16a54657a (diff)
downloadupower-daemon-mess.tar.gz
[WIP] attempt to fix refcount leak of UpDaemondaemon-mess
Debug in GDB with: break up-main.c:260 # just after daemon = up_daemon_new () p &daemon->parent.ref_count break *(guint *)ADDR_PRINTED_ABOVE commands bt c end c Refcount of daemon was over 100 at the end...
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,