Function

FwupdPlugincommon_get_volume_by_device

Declaration [src]

FuVolume*
fu_common_get_volume_by_device (
  const gchar* device,
  GError** error
)

Description [src]

Finds the first volume from the specified device.

Available since:1.5.1

Parameters

device const gchar*
 

A device string, typically starting with /dev/

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

A volume, or NULL if the device was not found.

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