Method

FwupdClientemulation_load

Declaration [src]

gboolean
fwupd_client_emulation_load (
  FwupdClient* self,
  GBytes* data,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Loads an emulated device into the daemon backend that has the phases set by the JSON data, for instance, having one USB device emulated for the bootloader and another emulated for the runtime interface.

Available since:1.8.11

Parameters

data GBytes*
 

Archive data of JSON files.

 The data is owned by the caller of the function.
cancellable GCancellable*
 

Optional GCancellable.

 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: gboolean
 

TRUE for success.