Constructor

GpiodglibLineSettingsnew

Declaration

GpiodglibLineSettings*
gpiodglib_line_settings_new (
  const gchar* first_prop,
  ...
)

Description

Create a new line settings object.

The constructor allows to set object’s properties when it’s first created instead of having to build an empty object and then call mutators separately.

Currently supported properties are: direction, edge-detection, bias, drive, debounce-period-us, active-low, ‘event-clockandoutput-value`.

This method is not directly available to language bindings.

Parameters

first_prop

Type: const gchar*

Name of the first property to set.

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

Type: 

No description available.

Return value

Type: GpiodglibLineSettings

New GpiodglibLineSettings.

The caller of the function takes ownership of the data, and is responsible for freeing it.