simple-api: handle receiving multiple events
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Oct 2017 13:37:32 +0000 (15:37 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Oct 2017 14:47:12 +0000 (16:47 +0200)
commit07698f995016aade4a5bbf8b9efafd6b8536e00e
treee6ae78fea92eaaddc409a45cb51c0b7c1d606200
parent23f7bc07f3b8f3d3ec8e9b87e58b6fa7aab21277
simple-api: handle receiving multiple events

Make the simple event loop poll callback capable of signalling to the
caller that more than one event occurred. Make the event loop routine
for multiple lines aware of that so that it reads all the event data
queued up instead of needlessly polling in that case.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
include/gpiod.h
src/lib/simple.c
src/tools/gpiomon.c