Method

GioVolumeget_drive

Declaration

GDrive*
g_volume_get_drive (
  GVolume* volume
)

Description

Gets the drive for the volume.

Return value

Returns: GDrive
 

A GDrive or NULL if volume is not associated with a drive. The returned object should be unreffed with g_object_unref() when no longer needed.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.