bindings: add GLib bindings
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 12 Aug 2024 08:22:24 +0000 (10:22 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 13 Aug 2024 08:38:40 +0000 (10:38 +0200)
commite090088c21b7e52f2f407dddd8d6f113182660d0
tree1805718288e58b2aa71e1625334bf7b8d3148d59
parentad325c0b650b2ff543ec1edb8f802cfb54a0d6e3
bindings: add GLib bindings

Implement GObject-based GLib bindings for libgpiod. Include generating
GObject introspection data, tests and examples.

Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Link: https://lore.kernel.org/r/20240812-dbus-v5-3-ead288509217@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
62 files changed:
.gitignore
README
bindings/Makefile.am
bindings/glib/.gitignore [new file with mode: 0644]
bindings/glib/Makefile.am [new file with mode: 0644]
bindings/glib/chip-info.c [new file with mode: 0644]
bindings/glib/chip.c [new file with mode: 0644]
bindings/glib/edge-event.c [new file with mode: 0644]
bindings/glib/error.c [new file with mode: 0644]
bindings/glib/examples/.gitignore [new file with mode: 0644]
bindings/glib/examples/Makefile.am [new file with mode: 0644]
bindings/glib/examples/find_line_by_name_glib.c [new file with mode: 0644]
bindings/glib/examples/get_chip_info_glib.c [new file with mode: 0644]
bindings/glib/examples/get_line_info_glib.c [new file with mode: 0644]
bindings/glib/examples/get_line_value_glib.c [new file with mode: 0644]
bindings/glib/examples/get_multiple_line_values_glib.c [new file with mode: 0644]
bindings/glib/examples/reconfigure_input_to_output_glib.c [new file with mode: 0644]
bindings/glib/examples/toggle_line_value_glib.c [new file with mode: 0644]
bindings/glib/examples/toggle_multiple_line_values_glib.c [new file with mode: 0644]
bindings/glib/examples/watch_line_info_glib.c [new file with mode: 0644]
bindings/glib/examples/watch_line_value_glib.c [new file with mode: 0644]
bindings/glib/examples/watch_multiple_edge_rising_glib.c [new file with mode: 0644]
bindings/glib/generated-enums.c.template [new file with mode: 0644]
bindings/glib/generated-enums.h.template [new file with mode: 0644]
bindings/glib/gpiod-glib.h [new file with mode: 0644]
bindings/glib/gpiod-glib.pc.in [new file with mode: 0644]
bindings/glib/gpiod-glib/chip-info.h [new file with mode: 0644]
bindings/glib/gpiod-glib/chip.h [new file with mode: 0644]
bindings/glib/gpiod-glib/edge-event.h [new file with mode: 0644]
bindings/glib/gpiod-glib/error.h [new file with mode: 0644]
bindings/glib/gpiod-glib/info-event.h [new file with mode: 0644]
bindings/glib/gpiod-glib/line-config.h [new file with mode: 0644]
bindings/glib/gpiod-glib/line-info.h [new file with mode: 0644]
bindings/glib/gpiod-glib/line-request.h [new file with mode: 0644]
bindings/glib/gpiod-glib/line-settings.h [new file with mode: 0644]
bindings/glib/gpiod-glib/line.h [new file with mode: 0644]
bindings/glib/gpiod-glib/misc.h [new file with mode: 0644]
bindings/glib/gpiod-glib/request-config.h [new file with mode: 0644]
bindings/glib/info-event.c [new file with mode: 0644]
bindings/glib/internal.c [new file with mode: 0644]
bindings/glib/internal.h [new file with mode: 0644]
bindings/glib/line-config.c [new file with mode: 0644]
bindings/glib/line-info.c [new file with mode: 0644]
bindings/glib/line-request.c [new file with mode: 0644]
bindings/glib/line-settings.c [new file with mode: 0644]
bindings/glib/misc.c [new file with mode: 0644]
bindings/glib/request-config.c [new file with mode: 0644]
bindings/glib/tests/.gitignore [new file with mode: 0644]
bindings/glib/tests/Makefile.am [new file with mode: 0644]
bindings/glib/tests/helpers.c [new file with mode: 0644]
bindings/glib/tests/helpers.h [new file with mode: 0644]
bindings/glib/tests/tests-chip-info.c [new file with mode: 0644]
bindings/glib/tests/tests-chip.c [new file with mode: 0644]
bindings/glib/tests/tests-edge-event.c [new file with mode: 0644]
bindings/glib/tests/tests-info-event.c [new file with mode: 0644]
bindings/glib/tests/tests-line-config.c [new file with mode: 0644]
bindings/glib/tests/tests-line-info.c [new file with mode: 0644]
bindings/glib/tests/tests-line-request.c [new file with mode: 0644]
bindings/glib/tests/tests-line-settings.c [new file with mode: 0644]
bindings/glib/tests/tests-misc.c [new file with mode: 0644]
bindings/glib/tests/tests-request-config.c [new file with mode: 0644]
configure.ac