Method

FwupdPluginDeviceset_contents_bytes

Declaration [src]

gboolean
fu_device_set_contents_bytes (
  FuDevice* self,
  const gchar* filename,
  GBytes* blob,
  FuProgress* progress,
  GError** error
)

Description [src]

Writes blob to filename, emulating if required.

Available since:2.0.2

Parameters

filename const gchar*
 

Full path to a file.

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

Data to write.

 The data is owned by the caller of the function.
progress FuProgress
 

Optional FuProgress.

 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 on success.