Method

FwupdPluginFdtImageget_attr_str

Declaration [src]

gboolean
fu_fdt_image_get_attr_str (
  FuFdtImage* self,
  const gchar* key,
  gchar** val,
  GError** error
)

Description [src]

Gets a string attribute from the image. val is always NUL terminated.

Available since:1.8.2

Parameters

key const gchar*
 

String, e.g. creator

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

Value.

 The argument will be set by the function.
 The argument can be set to NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if val was set.