core: add a helper for requesting all types of events
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Jan 2017 15:07:27 +0000 (16:07 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Jan 2017 15:11:26 +0000 (16:11 +0100)
commit64c778c847f341db0a4d2ba7a603e65dbadfd4c8
tree1c7c39006bf38127926ecc2a3047c9c3f7751feb
parent34a560f95aa759aad882ed4cd7363e60e8a872a6
core: add a helper for requesting all types of events

Implement gpiod_line_event_request_all() which requests all types of
events on a single line with less arguments. While we're at it: use it
in gpiod_simple_event_loop().

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