core: drop line iterators
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 25 Nov 2020 10:45:55 +0000 (11:45 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 14 Dec 2020 14:56:43 +0000 (15:56 +0100)
commit0bdee1e36f76f151e02765dba4fc68d389fe3965
tree48ca3b1ba3b721adb24c67018d083273556049a0
parentcada6cad2a6d198044573f6733d703658c88f2bd
core: drop line iterators

Hand-crafted iterators don't make much sense in C and impose an
additional layer of memory allocation and resource releasing. Remove
the line iterators from the core C library.

We're leaving the iterators where they make sense: in C++ and Python
bindings but we convert them to using other means of keeping track of
lines.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
bindings/cxx/gpiod.hpp
bindings/cxx/iter.cpp
bindings/python/gpiodmodule.c
include/gpiod.h
lib/helpers.c
lib/iter.c
tests/gpiod-test.h
tests/tests-iter.c
tools/gpioinfo.c