Method

FwupdPluginPluginget_config_value_boolean

since: 1.4.0

Declaration [src]

gboolean
fu_plugin_get_config_value_boolean (
  FuPlugin* self,
  const gchar* key,
  gboolean value_default
)

Description [src]

Return the boolean value of a key if it’s been configured.

Available since: 1.4.0

Parameters

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

The default value of the key if not found.

Return value

Type: gboolean

TRUE if the value is true (case insensitive), FALSE otherwise.