core: provide gpiod_line_get()
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 29 Sep 2017 16:47:51 +0000 (18:47 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Fri, 29 Sep 2017 16:47:51 +0000 (18:47 +0200)
commit1cef8332aea84a400193f21a986109b092654ffe
treeb4c1339641845273c817eb4c8c4f4ec85f481446
parentd477b96778ffee47dfdb4607d375f2c995b0cb97
core: provide gpiod_line_get()

Provide a routine which simplifies the process of getting the handle
for a single GPIO line by encapsulating the calls opening the chip and
retrieving the line handle in a single function.

Implement test cases as well.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
include/gpiod.h
src/lib/core.c
tests/tests-line.c