gpio: add ownership gaurd
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Tue, 20 May 2014 12:51:12 +0000 (13:51 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 20 May 2014 13:11:41 +0000 (14:11 +0100)
commit7abd8f5529c62235309980f59b84ed4e785caa5c
tree4ef2335d2f0fcc60056a5d19228d9b76ffb83974
parent5fa6f50edccc3835078b56b1caef7e8b2704515b
gpio: add ownership gaurd

* Will not unexport if the context did not export it. Can be forced.
* Checks if pin is already exported.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
api/gpio.h
api/gpio.hpp
src/gpio/gpio.c