Method

GpiodglibLineInfodup_name

Declaration

gchar*
gpiodglib_line_info_dup_name (
  GpiodglibLineInfo* self
)

Description

Get the name of the line.

Return value

Type: gchar*

Name of the GPIO line as it is represented in the kernel. This function returns a valid pointer to a null-terminated string or NULL if the line is unnamed. The string is a copy of the line name and must be freed by the caller with g_free().

The caller of the method takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.