Parent: 940428c4145591c54744bea3f42856a6deb11e52
Author: Alex Deymo <deymo@chromium.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-05-10 10:08:33
Tree: 5e43bc0d805906bead8af8883431c9dc14156f2f
core: Convert the pincode callback to an interable list. The current pincode callback list on the adapter keeps track of all the pincode callbacks registered by a plugin for that adapter and calls each one until one provides a pincode for the current bonding. This mechanism forgets about what happened with previous bonding attempts and pushes the status track to the plugin side. This patch creates an iterator struct (struct pincb_iter) that keeps track of the last function called and the number of times called. This will allow to provide more information about the bonding status to the pincode callback.
Diffstat
| M | src/adapter.c | | | 58 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - |
| M | src/adapter.h | | | 5 | +++++ |
| M | src/device.c | | | 14 | ++++++++++++++ |
| M | src/device.h | | | 1 | + |
4 files changed, 70 insertions(+), 8 deletions(-)