Glib.GDrives.Gdrive - this represent a piece of hardware connected to the machine. It's generally only created for removable hardware or hardware with removable media.
Glib.GDrives.Gdrive is a container class for Glib.GVolumes.Gvolume objects that stem from the same piece of media. As such, Glib.GDrives.Gdrive abstracts a drive with (or without) removable media and provides operations for querying whether media is available, determining whether media change is automatically detected and ejecting the media.
If the Glib.GDrives.Gdrive reports that media isn't automatically detected, one can poll for media; typically one should not do this periodically as a poll for media operation is potentially expensive and may spin up the drive creating noise.
Glib.GDrives.Gdrive supports starting and stopping drives with authentication support for the former. This can be used to support a diverse set of use cases including connecting/disconnecting iSCSI devices, powering down external disk enclosures and starting/stopping multi-disk devices such as RAID devices. Note that the actual semantics and side-effects of starting/stopping a Glib.GDrives.Gdrive may vary according to implementation. To choose the correct verbs in e.g. a file manager, use Glib.GDrives.Get_Start_Stop_Type.
For porting from GnomeVFS note that there is no equivalent of Glib.GDrives.Gdrive in that API.
function "+" (W : Gdrive) return Gdrive
function Can_Eject (Self : Gdrive) return Boolean
Checks if a drive can be ejected.
True if the Drive can be ejected, False otherwise.
function Can_Poll_For_Media (Self : Gdrive) return Boolean
Checks if a drive can be polled for media changes.
True if the Drive can be polled for media changes, False otherwise.
function Can_Start (Self : Gdrive) return Boolean
Checks if a drive can be started. Since: gtk+ 2.22
True if the Drive can be started, False otherwise.
function Can_Start_Degraded (Self : Gdrive) return Boolean
Checks if a drive can be started degraded. Since: gtk+ 2.22
True if the Drive can be started degraded, False otherwise.
function Can_Stop (Self : Gdrive) return Boolean
Checks if a drive can be stopped. Since: gtk+ 2.22
True if the Drive can be stopped, False otherwise.
type Cb_Gdrive_Void is not null access procedure (Self : Gdrive);
type Cb_GObject_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class);
procedure Eject_With_Operation
(Self : Gdrive;
Flags : Glib.GEnums.GMount_Unmount_Flags;
Mount_Operation : access Glib.GMountOperations.Gmount_Operation_Record'Class;
Cancellable : access Glib.Cancellable.Gcancellable_Record'Class;
Callback : Gasync_Ready_Callback)
Ejects a drive. This is an asynchronous operation, and is finished by calling Glib.GDrives.Eject_With_Operation_Finish with the Drive and Glib.G_Async_Result data returned in the Callback. Since: gtk+ 2.22
flags affecting the unmount if required for eject
a Glib.GMountOperations.Gmount_Operation or null to avoid user interaction.
optional Glib.Cancellable.Gcancellable object, null to ignore.
a Gasync_Ready_Callback, or null.
function Eject_With_Operation_Finish
(Self : Gdrive;
Result : Glib.G_Async_Result;
Error : out Glib.Error.GError) return Boolean
Finishes ejecting a drive. If any errors occurred during the operation, Error will be set to contain the errors and False will be returned. Since: gtk+ 2.22
a Glib.G_Async_Result.
the return location for a recoverable error
True if the drive was successfully ejected. False otherwise.
function Enumerate_Identifiers
(Self : Gdrive) return GNAT.Strings.String_List
Gets the kinds of identifiers that Drive has. Use Glib.GDrives.Get_Identifier to obtain the identifiers themselves.
a null-terminated array of strings containing kinds of identifiers. Use g_strfreev to free.
type Gasync_Ready_Callback is access procedure
(Source_Object : access Glib.Object.GObject_Record'Class;
Res : Glib.G_Async_Result);
Type definition for a function that will be called back when an asynchronous operation within GIO has been completed. Gasync_Ready_Callback callbacks from Gtask.Gtask are guaranteed to be invoked in a later iteration of the thread-default main context (see [methodGlib.MainContext.push_thread_default]) where the Gtask.Gtask was created. All other users of Gasync_Ready_Callback must likewise call it asynchronously in a later iteration of the main context. The asynchronous operation is guaranteed to have held a reference to Source_Object from the time when the *_async function was called, until after this callback returns.
the object the asynchronous operation was started with.
a Glib.G_Async_Result.
type Gdrive is new Glib.Types.GType_Interface;
subtype GDrives_Interface_Descr is Glib.Object.Interface_Description;
function Get_Icon (Self : Gdrive) return Glib.G_Icon.G_Icon
Gets the icon for Drive.
Glib.G_Icon.G_Icon for the Drive. Free the returned object with g_object_unref.
function Get_Identifier
(Self : Gdrive;
Kind : UTF8_String) return UTF8_String
Gets the identifier of the given kind for Drive. The only identifier currently available is G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE.
the kind of identifier to return
a newly allocated string containing the requested identifier, or null if the Glib.GDrives.Gdrive doesn't have this kind of identifier.
function Get_Name (Self : Gdrive) return UTF8_String
Gets the name of Drive.
a string containing Drive's name. The returned string should be freed when no longer needed.
function Get_Sort_Key (Self : Gdrive) return UTF8_String
Gets the sort key for Drive, if any. Since: gtk+ 2.32
Sorting key for Drive or null if no such key is available.
function Get_Start_Stop_Type
(Self : Gdrive) return Glib.GEnums.GDrive_Start_Stop_Type
Gets a hint about how a drive can be started/stopped. Since: gtk+ 2.22
A value from the Glib.GEnums.GDrive_Start_Stop_Type enumeration.
function Get_Symbolic_Icon (Self : Gdrive) return Glib.G_Icon.G_Icon
Gets the icon for Drive. Since: gtk+ 2.34
symbolic Glib.G_Icon.G_Icon for the Drive. Free the returned object with g_object_unref.
function Get_Type return Glib.GType
function Get_Volumes (Self : Gdrive) return Glib.GVolumes.GVolume_GList
Get a list of mountable volumes for Drive. The returned list should be freed with g_list_free, after its elements have been unreffed with g_object_unref.
GList containing any Glib.GVolumes.Gvolume objects on the given Drive.
function Has_Media (Self : Gdrive) return Boolean
Checks if the Drive has media. Note that the OS may not be polling the drive for media changes; see Glib.GDrives.Is_Media_Check_Automatic for more details.
True if Drive has media, False otherwise.
function Has_Volumes (Self : Gdrive) return Boolean
Check if Drive has any mountable volumes.
True if the Drive contains volumes, False otherwise.
function Is_Media_Check_Automatic (Self : Gdrive) return Boolean
Checks if Drive is capable of automatically detecting media changes.
True if the Drive is capable of automatically detecting media changes, False otherwise.
function Is_Media_Removable (Self : Gdrive) return Boolean
Checks if the Drive supports removable media.
True if Drive supports removable media, False otherwise.
function Is_Removable (Self : Gdrive) return Boolean
Checks if the Glib.GDrives.Gdrive and/or its media is considered removable by the user. See Glib.GDrives.Is_Media_Removable. Since: gtk+ 2.50
True if Drive and/or its media is considered removable, False otherwise.
Null_Gdrive : constant Gdrive;
procedure On_Changed
(Self : Gdrive;
Call : Cb_Gdrive_Void;
After : Boolean := False)
Emitted when the drive's state has changed.
procedure On_Changed
(Self : Gdrive;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted when the drive's state has changed.
procedure On_Disconnected
(Self : Gdrive;
Call : Cb_Gdrive_Void;
After : Boolean := False)
This signal is emitted when the Glib.GDrives.Gdrive have been disconnected. If the recipient is holding references to the object they should release them so the object can be finalized.
procedure On_Disconnected
(Self : Gdrive;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
This signal is emitted when the Glib.GDrives.Gdrive have been disconnected. If the recipient is holding references to the object they should release them so the object can be finalized.
procedure On_Eject_Button
(Self : Gdrive;
Call : Cb_Gdrive_Void;
After : Boolean := False)
Emitted when the physical eject button (if any) of a drive has been pressed.
procedure On_Eject_Button
(Self : Gdrive;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted when the physical eject button (if any) of a drive has been pressed.
procedure On_Stop_Button
(Self : Gdrive;
Call : Cb_Gdrive_Void;
After : Boolean := False)
Emitted when the physical stop button (if any) of a drive has been pressed.
procedure On_Stop_Button
(Self : Gdrive;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted when the physical stop button (if any) of a drive has been pressed.
procedure Poll_For_Media
(Self : Gdrive;
Cancellable : access Glib.Cancellable.Gcancellable_Record'Class;
Callback : Gasync_Ready_Callback)
Asynchronously polls Drive to see if media has been inserted or removed. When the operation is finished, Callback will be called. You can then call Glib.GDrives.Poll_For_Media_Finish to obtain the result of the operation.
optional Glib.Cancellable.Gcancellable object, null to ignore.
a Gasync_Ready_Callback, or null.
function Poll_For_Media_Finish
(Self : Gdrive;
Result : Glib.G_Async_Result;
Error : out Glib.Error.GError) return Boolean
Finishes an operation started with g_drive_poll_for_media on a drive.
a Glib.G_Async_Result.
the return location for a recoverable error
True if the drive has been poll_for_mediaed successfully, False otherwise.
procedure Set_Can_Eject
(Self : GDrives_Interface_Descr;
Handler : Virtual_Can_Eject)
procedure Set_Can_Poll_For_Media
(Self : GDrives_Interface_Descr;
Handler : Virtual_Can_Poll_For_Media)
procedure Set_Can_Start
(Self : GDrives_Interface_Descr;
Handler : Virtual_Can_Start)
procedure Set_Can_Start_Degraded
(Self : GDrives_Interface_Descr;
Handler : Virtual_Can_Start_Degraded)
procedure Set_Can_Stop
(Self : GDrives_Interface_Descr;
Handler : Virtual_Can_Stop)
procedure Set_Changed
(Self : GDrives_Interface_Descr;
Handler : Virtual_Changed)
procedure Set_Disconnected
(Self : GDrives_Interface_Descr;
Handler : Virtual_Disconnected)
procedure Set_Eject_Button
(Self : GDrives_Interface_Descr;
Handler : Virtual_Eject_Button)
procedure Set_Eject_With_Operation
(Self : GDrives_Interface_Descr;
Handler : Virtual_Eject_With_Operation)
procedure Set_Eject_With_Operation_Finish
(Self : GDrives_Interface_Descr;
Handler : Virtual_Eject_With_Operation_Finish)
procedure Set_Enumerate_Identifiers
(Self : GDrives_Interface_Descr;
Handler : Virtual_Enumerate_Identifiers)
procedure Set_Get_Icon
(Self : GDrives_Interface_Descr;
Handler : Virtual_Get_Icon)
procedure Set_Get_Identifier
(Self : GDrives_Interface_Descr;
Handler : Virtual_Get_Identifier)
procedure Set_Get_Name
(Self : GDrives_Interface_Descr;
Handler : Virtual_Get_Name)
procedure Set_Get_Sort_Key
(Self : GDrives_Interface_Descr;
Handler : Virtual_Get_Sort_Key)
procedure Set_Get_Start_Stop_Type
(Self : GDrives_Interface_Descr;
Handler : Virtual_Get_Start_Stop_Type)
procedure Set_Get_Symbolic_Icon
(Self : GDrives_Interface_Descr;
Handler : Virtual_Get_Symbolic_Icon)
procedure Set_Get_Volumes
(Self : GDrives_Interface_Descr;
Handler : Virtual_Get_Volumes)
procedure Set_Has_Media
(Self : GDrives_Interface_Descr;
Handler : Virtual_Has_Media)
procedure Set_Has_Volumes
(Self : GDrives_Interface_Descr;
Handler : Virtual_Has_Volumes)
procedure Set_Is_Media_Check_Automatic
(Self : GDrives_Interface_Descr;
Handler : Virtual_Is_Media_Check_Automatic)
procedure Set_Is_Media_Removable
(Self : GDrives_Interface_Descr;
Handler : Virtual_Is_Media_Removable)
procedure Set_Is_Removable
(Self : GDrives_Interface_Descr;
Handler : Virtual_Is_Removable)
procedure Set_Poll_For_Media
(Self : GDrives_Interface_Descr;
Handler : Virtual_Poll_For_Media)
procedure Set_Poll_For_Media_Finish
(Self : GDrives_Interface_Descr;
Handler : Virtual_Poll_For_Media_Finish)
procedure Set_Start
(Self : GDrives_Interface_Descr;
Handler : Virtual_Start)
procedure Set_Start_Finish
(Self : GDrives_Interface_Descr;
Handler : Virtual_Start_Finish)
procedure Set_Stop
(Self : GDrives_Interface_Descr;
Handler : Virtual_Stop)
procedure Set_Stop_Button
(Self : GDrives_Interface_Descr;
Handler : Virtual_Stop_Button)
procedure Set_Stop_Finish
(Self : GDrives_Interface_Descr;
Handler : Virtual_Stop_Finish)
See Glib.Object.Add_Interface
Signal_Changed : constant Glib.Signal_Name := "changed";
Emitted when the drive's state has changed.
Signal_Disconnected : constant Glib.Signal_Name := "disconnected";
This signal is emitted when the Glib.GDrives.Gdrive have been disconnected. If the recipient is holding references to the object they should release them so the object can be finalized.
Signal_Eject_Button : constant Glib.Signal_Name := "eject-button";
Emitted when the physical eject button (if any) of a drive has been pressed.
Signal_Stop_Button : constant Glib.Signal_Name := "stop-button";
Emitted when the physical stop button (if any) of a drive has been pressed.
procedure Start
(Self : Gdrive;
Flags : Glib.GEnums.GDrive_Start_Flags;
Mount_Operation : access Glib.GMountOperations.Gmount_Operation_Record'Class;
Cancellable : access Glib.Cancellable.Gcancellable_Record'Class;
Callback : Gasync_Ready_Callback)
Asynchronously starts a drive. When the operation is finished, Callback will be called. You can then call Glib.GDrives.Start_Finish to obtain the result of the operation. Since: gtk+ 2.22
flags affecting the start operation.
a Glib.GMountOperations.Gmount_Operation or null to avoid user interaction.
optional Glib.Cancellable.Gcancellable object, null to ignore.
a Gasync_Ready_Callback, or null.
function Start_Finish
(Self : Gdrive;
Result : Glib.G_Async_Result;
Error : out Glib.Error.GError) return Boolean
Finishes starting a drive. Since: gtk+ 2.22
a Glib.G_Async_Result.
the return location for a recoverable error
True if the drive has been started successfully, False otherwise.
procedure Stop
(Self : Gdrive;
Flags : Glib.GEnums.GMount_Unmount_Flags;
Mount_Operation : access Glib.GMountOperations.Gmount_Operation_Record'Class;
Cancellable : access Glib.Cancellable.Gcancellable_Record'Class;
Callback : Gasync_Ready_Callback)
Asynchronously stops a drive. When the operation is finished, Callback will be called. You can then call Glib.GDrives.Stop_Finish to obtain the result of the operation. Since: gtk+ 2.22
flags affecting the unmount if required for stopping.
a Glib.GMountOperations.Gmount_Operation or null to avoid user interaction.
optional Glib.Cancellable.Gcancellable object, null to ignore.
a Gasync_Ready_Callback, or null.
function Stop_Finish
(Self : Gdrive;
Result : Glib.G_Async_Result;
Error : out Glib.Error.GError) return Boolean
Finishes stopping a drive. Since: gtk+ 2.22
a Glib.G_Async_Result.
the return location for a recoverable error
True if the drive has been stopped successfully, False otherwise.
type Virtual_Can_Eject is access function (Self : Gdrive) return Glib.Gboolean;
Checks if a drive can be ejected.
True if the Drive can be ejected, False otherwise.
type Virtual_Can_Poll_For_Media is access function (Self : Gdrive) return Glib.Gboolean;
Checks if a drive can be polled for media changes.
True if the Drive can be polled for media changes, False otherwise.
type Virtual_Can_Start is access function (Self : Gdrive) return Glib.Gboolean;
Checks if a drive can be started. Since: gtk+ 2.22
True if the Drive can be started, False otherwise.
type Virtual_Can_Start_Degraded is access function (Self : Gdrive) return Glib.Gboolean;
Checks if a drive can be started degraded. Since: gtk+ 2.22
True if the Drive can be started degraded, False otherwise.
type Virtual_Can_Stop is access function (Self : Gdrive) return Glib.Gboolean;
Checks if a drive can be stopped. Since: gtk+ 2.22
True if the Drive can be stopped, False otherwise.
type Virtual_Changed is access procedure (Self : Gdrive);
Signal emitted when the drive is changed.
type Virtual_Disconnected is access procedure (Self : Gdrive);
The removed signal that is emitted when the Glib.GDrives.Gdrive have been disconnected. If the recipient is holding references to the object they should release them so the object can be finalized.
type Virtual_Eject_Button is access procedure (Self : Gdrive);
Signal emitted when the physical eject button (if any) of a drive have been pressed.
type Virtual_Eject_With_Operation is access procedure
(Self : Gdrive;
Flags : Glib.GEnums.GMount_Unmount_Flags;
Mount_Operation : System.Address;
Cancellable : System.Address;
Callback : System.Address;
User_Data : System.Address);
Ejects a drive. This is an asynchronous operation, and is finished by calling Glib.GDrives.Eject_With_Operation_Finish with the Drive and Glib.G_Async_Result data returned in the Callback. Since: gtk+ 2.22
flags affecting the unmount if required for eject
a Glib.GMountOperations.Gmount_Operation or null to avoid user interaction.
optional Glib.Cancellable.Gcancellable object, null to ignore.
a Gasync_Ready_Callback, or null.
user data passed to Callback.
type Virtual_Eject_With_Operation_Finish is access function
(Self : Gdrive;
Result : Glib.G_Async_Result;
Error : out Glib.Error.GError) return Glib.Gboolean;
Finishes ejecting a drive. If any errors occurred during the operation, Error will be set to contain the errors and False will be returned. Since: gtk+ 2.22
a Glib.G_Async_Result.
the return location for a recoverable error
True if the drive was successfully ejected. False otherwise.
type Virtual_Enumerate_Identifiers is access function (Self : Gdrive) return chars_ptr_array_access;
Gets the kinds of identifiers that Drive has. Use Glib.GDrives.Get_Identifier to obtain the identifiers themselves.
a null-terminated array of strings containing kinds of identifiers. Use g_strfreev to free.
type Virtual_Get_Icon is access function (Self : Gdrive) return Glib.G_Icon.G_Icon;
Gets the icon for Drive.
Glib.G_Icon.G_Icon for the Drive. Free the returned object with g_object_unref.
type Virtual_Get_Identifier is access function
(Self : Gdrive;
Kind : Gtkada.Types.Chars_Ptr) return Gtkada.Types.Chars_Ptr;
Gets the identifier of the given kind for Drive. The only identifier currently available is G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE.
the kind of identifier to return
a newly allocated string containing the requested identifier, or null if the Glib.GDrives.Gdrive doesn't have this kind of identifier.
type Virtual_Get_Name is access function (Self : Gdrive) return Gtkada.Types.Chars_Ptr;
Gets the name of Drive.
a string containing Drive's name. The returned string should be freed when no longer needed.
type Virtual_Get_Sort_Key is access function (Self : Gdrive) return Gtkada.Types.Chars_Ptr;
Gets the sort key for Drive, if any. Since: gtk+ 2.32
Sorting key for Drive or null if no such key is available.
type Virtual_Get_Start_Stop_Type is access function (Self : Gdrive) return Glib.GEnums.GDrive_Start_Stop_Type;
Gets a hint about how a drive can be started/stopped. Since: gtk+ 2.22
A value from the Glib.GEnums.GDrive_Start_Stop_Type enumeration.
type Virtual_Get_Symbolic_Icon is access function (Self : Gdrive) return Glib.G_Icon.G_Icon;
Gets the icon for Drive. Since: gtk+ 2.34
symbolic Glib.G_Icon.G_Icon for the Drive. Free the returned object with g_object_unref.
type Virtual_Get_Volumes is access function (Self : Gdrive) return System.Address;
Get a list of mountable volumes for Drive. The returned list should be freed with g_list_free, after its elements have been unreffed with g_object_unref.
GList containing any Glib.GVolumes.Gvolume objects on the given Drive.
type Virtual_Has_Media is access function (Self : Gdrive) return Glib.Gboolean;
Checks if the Drive has media. Note that the OS may not be polling the drive for media changes; see Glib.GDrives.Is_Media_Check_Automatic for more details.
True if Drive has media, False otherwise.
type Virtual_Has_Volumes is access function (Self : Gdrive) return Glib.Gboolean;
Check if Drive has any mountable volumes.
True if the Drive contains volumes, False otherwise.
type Virtual_Is_Media_Check_Automatic is access function (Self : Gdrive) return Glib.Gboolean;
Checks if Drive is capable of automatically detecting media changes.
True if the Drive is capable of automatically detecting media changes, False otherwise.
type Virtual_Is_Media_Removable is access function (Self : Gdrive) return Glib.Gboolean;
Checks if the Drive supports removable media.
True if Drive supports removable media, False otherwise.
type Virtual_Is_Removable is access function (Self : Gdrive) return Glib.Gboolean;
Checks if the Glib.GDrives.Gdrive and/or its media is considered removable by the user. See Glib.GDrives.Is_Media_Removable. Since: gtk+ 2.50
True if Drive and/or its media is considered removable, False otherwise.
type Virtual_Poll_For_Media is access procedure
(Self : Gdrive;
Cancellable : System.Address;
Callback : System.Address;
User_Data : System.Address);
Asynchronously polls Drive to see if media has been inserted or removed. When the operation is finished, Callback will be called. You can then call Glib.GDrives.Poll_For_Media_Finish to obtain the result of the operation.
optional Glib.Cancellable.Gcancellable object, null to ignore.
a Gasync_Ready_Callback, or null.
user data to pass to Callback
type Virtual_Poll_For_Media_Finish is access function
(Self : Gdrive;
Result : Glib.G_Async_Result;
Error : out Glib.Error.GError) return Glib.Gboolean;
Finishes an operation started with g_drive_poll_for_media on a drive.
a Glib.G_Async_Result.
the return location for a recoverable error
True if the drive has been poll_for_mediaed successfully, False otherwise.
type Virtual_Start is access procedure
(Self : Gdrive;
Flags : Glib.GEnums.GDrive_Start_Flags;
Mount_Operation : System.Address;
Cancellable : System.Address;
Callback : System.Address;
User_Data : System.Address);
Asynchronously starts a drive. When the operation is finished, Callback will be called. You can then call Glib.GDrives.Start_Finish to obtain the result of the operation. Since: gtk+ 2.22
flags affecting the start operation.
a Glib.GMountOperations.Gmount_Operation or null to avoid user interaction.
optional Glib.Cancellable.Gcancellable object, null to ignore.
a Gasync_Ready_Callback, or null.
user data to pass to Callback
type Virtual_Start_Finish is access function
(Self : Gdrive;
Result : Glib.G_Async_Result;
Error : out Glib.Error.GError) return Glib.Gboolean;
Finishes starting a drive. Since: gtk+ 2.22
a Glib.G_Async_Result.
the return location for a recoverable error
True if the drive has been started successfully, False otherwise.
type Virtual_Stop is access procedure
(Self : Gdrive;
Flags : Glib.GEnums.GMount_Unmount_Flags;
Mount_Operation : System.Address;
Cancellable : System.Address;
Callback : System.Address;
User_Data : System.Address);
Asynchronously stops a drive. When the operation is finished, Callback will be called. You can then call Glib.GDrives.Stop_Finish to obtain the result of the operation. Since: gtk+ 2.22
flags affecting the unmount if required for stopping.
a Glib.GMountOperations.Gmount_Operation or null to avoid user interaction.
optional Glib.Cancellable.Gcancellable object, null to ignore.
a Gasync_Ready_Callback, or null.
user data to pass to Callback
type Virtual_Stop_Button is access procedure (Self : Gdrive);
Signal emitted when the physical stop button (if any) of a drive have been pressed. Since 2.22.
type Virtual_Stop_Finish is access function
(Self : Gdrive;
Result : Glib.G_Async_Result;
Error : out Glib.Error.GError) return Glib.Gboolean;
Finishes stopping a drive. Since: gtk+ 2.22
a Glib.G_Async_Result.
the return location for a recoverable error
True if the drive has been stopped successfully, False otherwise.