Method

FwupdPluginDeviceprepare

Declaration [src]

gboolean
fu_device_prepare (
  FuDevice* self,
  FuProgress* progress,
  FwupdInstallFlags flags,
  GError** error
)

Description [src]

Prepares a device for update. A different plugin can handle each of FuDevice->prepare(), FuDevice->detach() and FuDevice->write_firmware().

Available since:1.3.3

Parameters

progress FuProgress
 

A FuProgress.

 The data is owned by the caller of the function.
flags FwupdInstallFlags
 

Install flags.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success.