mirror of
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
synced 2026-10-24 00:48:53 +03:00
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>
18 lines
375 B
C
18 lines
375 B
C
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
// SPDX-FileCopyrightText: 2022-2024 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
|
|
|
|
#include <gpiod.h>
|
|
#include <gpiod-glib.h>
|
|
|
|
gboolean gpiodglib_is_gpiochip_device(const gchar *path)
|
|
{
|
|
g_assert(path);
|
|
|
|
return gpiod_is_gpiochip_device(path);
|
|
}
|
|
|
|
const gchar *gpiodglib_api_version(void)
|
|
{
|
|
return gpiod_api_version();
|
|
}
|