OSDN Git Service

oob: Refactor oob callback handling and move it to adapter code
authorSzymon Janc <szymon.janc@tieto.com>
Wed, 3 Oct 2012 13:18:28 +0000 (15:18 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 3 Oct 2012 19:44:15 +0000 (22:44 +0300)
commit94667c8290663eb79f4c6026fa5a278a89b6730d
treef7aa6d0c980da4e2b6202543afcfe5e5b53432a8
parent2640939604ce3c7d5c29c185962aceb3913c5737
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.
Makefile.am
plugins/dbusoob.c
src/adapter.c
src/adapter.h
src/mgmt.c
src/oob.c [deleted file]
src/oob.h [deleted file]