event: implement gpiod_line_event_read_fd()
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Jan 2017 13:20:38 +0000 (14:20 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Jan 2017 13:20:38 +0000 (14:20 +0100)
commit49a11437a576886457cad6208d611b01591b9c1a
tree31c6cbf2da6b2206bab61b53c08c72a0cc6a8101
parent3e530450c38f82505ae5526d26c513ed8e61aff8
event: implement gpiod_line_event_read_fd()

Add a new function which allows to read GPIO event data directly from
a file descriptor instead of a gpiod_line object. This is useful if
the user is already directly polling the file descriptors for events.

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