Constructor

FwupdPluginVolumenew_by_device

Declaration [src]

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

Description [src]

Finds the first volume from the specified device.

Available since:1.8.2

Parameters

device const gchar*
 

A device string, typically starting with /dev/

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