Virtual Method

GioVolumeget_uuid

Declaration [src]

char*
get_uuid (
  GVolume* volume
)

Description [src]

Gets the UUID for the volume. The reference is typically based on the file system UUID for the volume in question and should be considered an opaque string. Returns NULL if there is no UUID available.

Return value

Type: char*

The UUID for volume or NULL if no UUID can be computed. The returned string should be freed with g_free() when no longer needed.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.