tests: add line value enums for gpiosim GLib wrapper
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 13 Feb 2023 10:53:42 +0000 (11:53 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 15 Feb 2023 12:29:09 +0000 (13:29 +0100)
commit67ffa262e3938477637ffd39ace2b9572d49606b
tree9229f95350c79ddc58c5bde086090a29829aed99
parent96b686aacbab90b379478d89bba0092cd04c3e2c
tests: add line value enums for gpiosim GLib wrapper

libgpiosim has a dedicated enum type for line values but the GLib wrapper
still uses magic numbers (0 and 1). Add an enum type for the wrapper and
use it across all test cases.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tests/gpiod-test-sim.c
tests/gpiod-test-sim.h
tests/tests-line-config.c
tests/tests-line-request.c