Commit: 94667c8290663eb79f4c6026fa5a278a89b6730d
Parent: 2640939604ce3c7d5c29c185962aceb3913c5737
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-10-03 22:44:15
Tree: f7aa6d0c980da4e2b6202543afcfe5e5b53432a8

oob: Refactor oob callback handling and move it to adapter code This allows oob plugin to register for callback after executing certain action on adapter. Currently reading local OOB data and pairing is supported. It should be easy to support more callbacks in future if needed e.g. powering on. Thanks to this plugin is not required to duplicate code that would validate adapter/device when callback is received as callback condition is check in adapter. It also allows to pass user data which will be provided back when cb is called further reducing plugin code.

Diffstat

M Makefile.am | 3 +- -
M plugins/dbusoob.c | 62 +++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M src/adapter.c | 44 ++++++++++++++++++++++++++++++++++++++++
M src/adapter.h | 20 ++++++++++++++++++++
M src/mgmt.c | 8 +++- - - - -
D src/oob.c | 41 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
D src/oob.h | 32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

7 files changed, 81 insertions(+), 129 deletions(-)

View Full Diff | Patch