Method

GioVolumeget_identifier

Declaration

char*
g_volume_get_identifier (
  GVolume* volume,
  const char* kind
)

Description

Gets the identifier of the given kind for volume. See the [introduction][volume-identifier] for more information about volume identifiers.

Parameters

kind const char*
 

The kind of identifier to return.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: utf8
 

A newly allocated string containing the requested identifier, or NULL if the GVolume doesn’t have this kind of identifier.

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