Method

FwupdPluginConfigget_value_bool

since: 1.9.1

Declaration [src]

gboolean
fu_config_get_value_bool (
  FuConfig* self,
  const gchar* section,
  const gchar* key,
  gboolean value_default
)

Description [src]

Return the value of a key, falling back to the default value if missing or empty.

Available since: 1.9.1

Parameters

section

Type: const gchar*

A settings section.

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

Type: const gchar*

A settings key.

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

Type: gboolean

A settings value default.

Return value

Type: gboolean

Boolean.