core: separate the chip and line logic
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 30 Jun 2017 10:55:36 +0000 (12:55 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 6 Jul 2017 09:11:36 +0000 (11:11 +0200)
commitffe1776244e10c137def5df85da0349d4381d701
tree611a04de4e9ffc24fcdd607e42bcf745d913605b
parentbdf429543ace6765407fe9a6350a547482e55369
core: separate the chip and line logic

Lazily allocate memory for line objects in chip.c. This eliminates the
need for chip routines to know the size of a line object.

Line objects now contain the chip file descriptor as well, so that we
don't need to access the chip object in any way from line.c.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/Makefile.am
src/lib/chip.c
src/lib/gpiod-internal.h [deleted file]
src/lib/line.c
src/lib/line.h [new file with mode: 0644]