Method
FwupdClientmodify_device
since: 1.0.4
Declaration [src]
gboolean
fwupd_client_modify_device (
FwupdClient* self,
const gchar* device_id,
const gchar* key,
const gchar* value,
GCancellable* cancellable,
GError** error
)
Description [src]
Modifies a device in a specific way. Not all properties on the FwupdDevice
are settable by the client, and some may have other restrictions on value
.
NOTE: User authentication may be required to complete this action.
Available since: 1.0.4
Parameters
device_id
-
Type:
const gchar*
The device ID.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. key
-
Type:
const gchar*
The key, e.g.
Flags
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. value
-
Type:
const gchar*
The key, e.g.
reported
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. cancellable
-
Type:
GCancellable
Optional
GCancellable
.The argument can be NULL
.The data is owned by the caller of the function. error
-
Type:
GError **
The return location for a recoverable error.
The argument can be NULL
.If the return location is not NULL
, then you must initialize it to aNULL
GError*
.The argument will left initialized to NULL
by the method if there are no errors.In case of error, the argument will be set to a newly allocated GError
; the caller will take ownership of the data, and be responsible for freeing it.