Function

FwupdPlugincommon_extract_archive

Declaration [src]

gboolean
fu_common_extract_archive (
  GBytes* blob,
  const gchar* dir,
  GError** error
)

Description [src]

Extracts an archive to a directory.

Available since:0.9.7

Parameters

blob GBytes*
 

Data archive as a blob.

 The data is owned by the caller of the function.
dir const gchar*
 

A directory name to extract to.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE for success.