core: implement public line update routines
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 4 Jan 2017 16:09:28 +0000 (17:09 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 4 Jan 2017 16:09:28 +0000 (17:09 +0100)
commit296c6aacaa7f2473e203ceee5c1fd2e5cff8f2b2
tree052eb187dc605d6be1ff1d48949102049ad91398
parent45a5390c529e4d64ae56dbfc0008f83a36707371
core: implement public line update routines

Line info is retrieved from the kernel for the first time
automatically when gpiod_chip_get_line() is called. Then the line
is updated automatically on request/release. If the ioctl fails in the
latter case, the up_to_date flag is set to false.

Expose an interface allowing users to check if a line is up-to-date
and manually update it if needed.

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