Function

Gpiodglibis_gpiochip_device

since: 1.0

Declaration

gboolean
gpiodglib_is_gpiochip_device (
  const gchar* path
)

Description

Check if the file pointed to by path is a GPIO chip character device.

Available since: 1.0

Parameters

path

Type: const gchar*

Path to check.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if the file exists and is either a GPIO chip character device or a symbolic link to one, FALSE otherwise.