Method

FwupdJsonObjectadd_boolean

since: 2.1.1

Declaration [src]

void
fwupd_json_object_add_boolean (
  FwupdJsonObject* self,
  const gchar* key,
  gboolean value
)

Description [src]

Adds a boolean value to the JSON object.

Available since: 2.1.1

Parameters

key

Type: const gchar*

Dictionary key.

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

Type: gboolean

Boolean.