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>
Showing
- bindings/cxx/gpiod.hpp 0 additions, 1 deletionbindings/cxx/gpiod.hpp
- bindings/cxx/iter.cpp 7 additions, 21 deletionsbindings/cxx/iter.cpp
- bindings/python/gpiodmodule.c 7 additions, 14 deletionsbindings/python/gpiodmodule.c
- include/gpiod.h 0 additions, 36 deletionsinclude/gpiod.h
- lib/helpers.c 14 additions, 18 deletionslib/helpers.c
- lib/iter.c 0 additions, 48 deletionslib/iter.c
- tests/gpiod-test.h 0 additions, 2 deletionstests/gpiod-test.h
- tests/tests-iter.c 0 additions, 23 deletionstests/tests-iter.c
- tools/gpioinfo.c 5 additions, 9 deletionstools/gpioinfo.c
Loading
Please register or sign in to comment