Commit: ae92ea28f9c6bdec8a5f74c646af35df310de129
Parent: 2f3db9831df665fbf8aba6dddde1cb28934c9953
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-09-21 13:51:22
Tree: 9cb131ccbc65c9e8fef5c4c8208d89576c727bdd

device: Simplify DBusConnection object handling This patch removes redundant references and function parameters for DBusConnection object and uses btd_get_dbus_connection() call wherever such object is needed instead. Pointer returned by this call is guaranteed to be valid for entire bluetoothd lifetime and thus do not need to be refcounted.

Diffstat

M src/adapter.c | 26 +++++++++++++- - - - - - - - - - - - -
M src/device.c | 149 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M src/device.h | 29 +++++++++++++- - - - - - - - - - - - - - - -
M src/event.c | 8 ++- - - - - -

4 files changed, 93 insertions(+), 119 deletions(-)

View Full Diff | Patch