iterators: improve error handling of line iterators
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Jan 2017 10:34:14 +0000 (11:34 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Jan 2017 10:34:14 +0000 (11:34 +0100)
commit8dcee01a9c62d55b528477b571a92c7f2e5c31e4
treeaff1487ce7ce4afed36b59ea92134a462a902725
parentc56f7d8982c8be02306ebe068b6aba53487300c7
iterators: improve error handling of line iterators

As was done for chip iterators: extend the API to include functions
that allow to check if an error occured while iterating over lines
and use them in the foreach macro and in gpioinfo.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
gpiod.h
gpioinfo.c