iio: C API changes and C++ API enhancements
authorHenry Bruce <henry.bruce@intel.com>
Mon, 14 Dec 2015 19:50:30 +0000 (11:50 -0800)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 15 Dec 2015 10:42:14 +0000 (10:42 +0000)
commit8e4a809f1214f93ab78442f8a95216cf2e4a1067
tree16e00e41dfe03103afb4408fcacd132a2d2156ec
parent5f01de1bf1850c17931495b02c42a12c0953b44e
iio: C API changes and C++ API enhancements

- C API read/write integer functions changed to int to match C types
- C API now has close function to release resources acquired during init
- iio internal type isr_event() function now has args param in signature
- C++ API now supports events with handler interface and new data structure
- C and C++ examples updated to use API changes

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
api/mraa/iio.h
api/mraa/iio.hpp
examples/c++/Iio-dummy.cpp
examples/iio_driver.c
include/mraa_internal_types.h
src/iio/iio.c