Method

GpiodglibLineInfodup_consumer

Declaration

gchar*
gpiodglib_line_info_dup_consumer (
  GpiodglibLineInfo* self
)

Description

Get the name of the consumer of the line.

Return value

Type: gchar*

Name of the GPIO consumer as it is represented in the kernel. This function returns a valid pointer to a null-terminated string or NULL if the consumer name is not set. The string is a copy of the consumer label 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.