libnm: add NMObject:dbus-connection property to inject DBUS connection

System Internals / NetworkManager - Thomas Haller [redhat.com] - 3 October 2014 04:21 UTC

Commit b732380d1eb86d4278578559b0ec00990202e3fc removed the gobject property "NMObject:connection". However, this property is still needed to inject the DBUS connection when creating new proxy objects. Without it, we call _nm_dbus_new_connection() in the constructor for every proxy NMObject.

In case of non-private connections, g_bus_get_sync() already returns the same connection. However for private connections, g_dbus_connection_new_for_address_sync() would create a separate DBUS connection.

https://bugzilla.gnome.org/show_bug.cgi?id=737725

df57b6b libnm: add NMObject:dbus-connection property to inject DBUS connection
libnm/nm-object.c | 29 ++++++++++++++++++++++++++++-
libnm/nm-object.h | 1 +
2 files changed, 29 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share