aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartekgola@gmail.com>2017-10-31 16:00:21 +0100
committerBartosz Golaszewski <bartekgola@gmail.com>2017-10-31 16:10:05 +0100
commit643538eb560246757d8241ae3ff7d453ad6ff648 (patch)
treeec67e9c656e212929455dbedbb1bd74e846c5e2d /include
parenta029549af5d2792762286536db09b2cf564dc7a7 (diff)
downloadexternal_libgpiod-643538eb560246757d8241ae3ff7d453ad6ff648.tar.gz
external_libgpiod-643538eb560246757d8241ae3ff7d453ad6ff648.tar.bz2
external_libgpiod-643538eb560246757d8241ae3ff7d453ad6ff648.zip
iter: use scandir() for chip iterators
Using scandir() instead of opendir() allows us to scan for all gpiochip devices already when creating the iterator. This simplifies the code and doesn't require keeping the directory open when iterating. Storing the array of all found GPIO chips will also make it easier if we ever want to implement a reverse iterator (e.g. for C++ bindings). Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions