Function

FwupdPlugincommon_get_volumes_by_kind

Declaration [src]

GPtrArray*
fu_common_get_volumes_by_kind (
  const gchar* kind,
  GError** error
)

Description [src]

Finds all volumes of a specific partition type.

Available since:1.4.6

Parameters

kind const gchar*
 

A volume kind, typically a GUID.

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

Return value

Returns: An array of FuVolume*
 

A GPtrArray, or NULL if the kind was not found.

 The caller of the function takes ownership of the data container, but not the data inside it.