Method
FwupdClientget_device_by_id
Declaration [src]
FwupdDevice*
fwupd_client_get_device_by_id (
FwupdClient* self,
const gchar* device_id,
GCancellable* cancellable,
GError** error
)
Parameters
device_id |
const gchar* |
The device ID, e.g. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
cancellable |
GCancellable |
Optional |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | FwupdDevice |
A device or |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. |