Commit: 813b674bce1aab009e7f2d14d1825f603330563d
Parent: c7c092bca3f13348f2f92e72999ee585f98e7974
Author: Johan Hedberg <johan.hedberg@intel.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-09-03 14:16:15
Tree: cae198a1ee959b3cafd9f528e8c3ccacebbd77ae

Add profile abstraction (replaces btd_device drivers) This patch removes the btd_device_driver concept and replaces it with btd_profile. The new construct also contains the necessary parts for adapter drivers, so btd_adapter_driver is only needed for non-profile related functionality (most of which is in plugins/*). The main purpose of this new construct is to facilitate a centralized connection creation mechanism for profiles, ultimately enabling the addition of a Device.Connect() method instead of requiring a UI to know to call e.g. Input.Connect or Audio.Connect. This feature will also be extended to externally implemented profiles once the internal implementation gets more stable, such as OBEX (obexd) and HFP (oFono). The new D-Bus interface will also partially restore functionality which was previously available through the Serial interface.

Diffstat

M attrib/client.c | 1 +
M audio/avctp.c | 1 +
M audio/avdtp.c | 1 +
M audio/avrcp.c | 1 +
M audio/control.c | 12 +++++- - - - - - -
M audio/control.h | 4 ++- -
M audio/device.c | 1 +
M audio/gateway.h | 2 +-
M audio/headset.c | 81 +++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M audio/headset.h | 8 ++++- - - -
M audio/manager.c | 283 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M audio/manager.h | 2 - -
M audio/sink.c | 1 +
M audio/source.c | 1 +
M plugins/adaptername.c | 1 +
M plugins/dbusoob.c | 2 ++
M plugins/wiimote.c | 2 ++
M profiles/deviceinfo/deviceinfo.c | 2 ++
M profiles/deviceinfo/manager.c | 15 ++++++++- - - - - - -
M profiles/gatt/gas.c | 2 ++
M profiles/gatt/manager.c | 15 ++++++++- - - - - - -
M profiles/health/hdp.c | 1 +
M profiles/health/hdp_manager.c | 30 +++++++++++++++- - - - - - - - - - - - - - -
M profiles/health/hdp_util.c | 1 +
M profiles/input/device.c | 1 +
M profiles/input/fakehid.c | 1 +
M profiles/input/hog_device.c | 1 +
M profiles/input/hog_manager.c | 15 ++++++++- - - - - - -
M profiles/input/manager.c | 43 +++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - -
M profiles/network/connection.c | 14 ++++- - - - - - - - - -
M profiles/network/connection.h | 2 +-
M profiles/network/manager.c | 91 ++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M profiles/proximity/immalert.c | 2 ++
M profiles/proximity/linkloss.c | 2 ++
M profiles/proximity/manager.c | 43 +++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - -
M profiles/proximity/monitor.c | 1 +
M profiles/proximity/reporter.c | 21 ++++++- - - - - - - - - - - - - - -
M profiles/proximity/reporter.h | 3 +++
M profiles/sap/manager.c | 15 +++++++++- - - - - -
M profiles/thermometer/manager.c | 15 ++++++++- - - - - - -
M profiles/thermometer/thermometer.c | 5 ++++-
M profiles/time/manager.c | 17 ++++++++++- - - - - - -
M src/adapter.c | 50 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - -
M src/agent.c | 1 +
M src/attrib-server.c | 1 +
M src/device.c | 190 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M src/device.h | 46 +++++++++++++++++++++++++++++++++- - - - - - - - - - - - -
M src/event.c | 1 +
M src/mgmt.c | 1 +

49 files changed, 516 insertions(+), 536 deletions(-)

View Full Diff | Patch