getDrive

open fun getDrive(): Drive?

Gets the drive for the @volume.

Return

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.