Function

FwupdPluginefivar_get_data_bytes

Declaration [src]

GBytes*
fu_efivar_get_data_bytes (
  const gchar* guid,
  const gchar* name,
  guint32* attr,
  GError** error
)

Description [src]

Gets the data from a UEFI variable in NVRAM.

Available since:1.5.0

Parameters

guid const gchar*
 

Globally unique identifier.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
name const gchar*
 

Variable name.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
attr guint32*
 

Attributes.

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

A GBytes, or NULL.

 The caller of the function takes ownership of the data, and is responsible for freeing it.