gpiomon: switch to using gpiod_ctxless_event_monitor_multiple()
authorBartosz Golaszewski <bartekgola@gmail.com>
Tue, 2 Oct 2018 15:05:38 +0000 (17:05 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Sun, 7 Oct 2018 08:37:20 +0000 (10:37 +0200)
commit093b90b2368b1024b92af4433ed3c6b452e5c0d9
tree3975b937fef6ec1d00daf69f9f5403fbf2ef6195
parent61498a0ee52a72f609f811c3bf7eba6530667272
gpiomon: switch to using gpiod_ctxless_event_monitor_multiple()

Switch to using the new context-less routine for event monitoring. We
can now simplify the event callback as there's no need anymore to
check the event type in the handler.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/tools/gpiomon.c