Thread (7 messages) 7 messages, 2 authors, 2012-11-29
STALE4989d

[PATCH BlueZ 3/3] core: Attach and detach object manager

From: Lucas De Marchi <hidden>
Date: 2012-11-29 13:19:33
Subsystem: the rest · Maintainer: Linus Torvalds

From: Lucas De Marchi <redacted>

---
 src/main.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/src/main.c b/src/main.c
index 414849a..ccb5fa5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -381,6 +381,7 @@ static void disconnect_dbus(void)
 	if (!conn || !dbus_connection_get_is_connected(conn))
 		return;
 
+	g_dbus_detach_object_manager(conn);
 	set_dbus_connection(NULL);
 
 	dbus_connection_unref(conn);
@@ -412,6 +413,7 @@ static int connect_dbus(void)
 	set_dbus_connection(conn);
 
 	g_dbus_set_disconnect_function(conn, disconnected_dbus, NULL, NULL);
+	g_dbus_attach_object_manager(conn);
 
 	return 0;
 }
-- 
1.8.0.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help