Type Alias GDriveIface

Source
pub type GDriveIface = _GDriveIface;
Expand description

GDriveIface: @g_iface: The parent interface. @changed: Signal emitted when the drive is changed. @disconnected: The removed signal that is emitted when the #GDrive have been disconnected. If the recipient is holding references to the object they should release them so the object can be finalized. @eject_button: Signal emitted when the physical eject button (if any) of a drive have been pressed. @get_name: Returns the name for the given #GDrive. @get_icon: Returns a #GIcon for the given #GDrive. @has_volumes: Returns %TRUE if the #GDrive has mountable volumes. @get_volumes: Returns a list #GList of #GVolume for the #GDrive. @is_removable: Returns %TRUE if the #GDrive and/or its media is considered removable by the user. Since 2.50. @is_media_removable: Returns %TRUE if the #GDrive supports removal and insertion of media. @has_media: Returns %TRUE if the #GDrive has media inserted. @is_media_check_automatic: Returns %TRUE if the #GDrive is capable of automatically detecting media changes. @can_poll_for_media: Returns %TRUE if the #GDrive is capable of manually polling for media change. @can_eject: Returns %TRUE if the #GDrive can eject media. @eject: Ejects a #GDrive. @eject_finish: Finishes an eject operation. @poll_for_media: Poll for media insertion/removal on a #GDrive. @poll_for_media_finish: Finishes a media poll operation. @get_identifier: Returns the identifier of the given kind, or %NULL if the #GDrive doesn’t have one. @enumerate_identifiers: Returns an array strings listing the kinds of identifiers which the #GDrive has. @get_start_stop_type: Gets a #GDriveStartStopType with details about starting/stopping the drive. Since 2.22. @can_stop: Returns %TRUE if a #GDrive can be stopped. Since 2.22. @stop: Stops a #GDrive. Since 2.22. @stop_finish: Finishes a stop operation. Since 2.22. @can_start: Returns %TRUE if a #GDrive can be started. Since 2.22. @can_start_degraded: Returns %TRUE if a #GDrive can be started degraded. Since 2.22. @start: Starts a #GDrive. Since 2.22. @start_finish: Finishes a start operation. Since 2.22. @stop_button: Signal emitted when the physical stop button (if any) of a drive have been pressed. Since 2.22. @eject_with_operation: Starts ejecting a #GDrive using a #GMountOperation. Since 2.22. @eject_with_operation_finish: Finishes an eject operation using a #GMountOperation. Since 2.22. @get_sort_key: Gets a key used for sorting #GDrive instances or %NULL if no such key exists. Since 2.32. @get_symbolic_icon: Returns a symbolic #GIcon for the given #GDrive. Since 2.34.

Interface for creating #GDrive implementations.

Aliased Type§

struct GDriveIface {
Show 33 fields pub g_iface: _GTypeInterface, pub changed: Option<unsafe extern "C" fn(*mut _GDrive)>, pub disconnected: Option<unsafe extern "C" fn(*mut _GDrive)>, pub eject_button: Option<unsafe extern "C" fn(*mut _GDrive)>, pub get_name: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut i8>, pub get_icon: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut _GIcon>, pub has_volumes: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>, pub get_volumes: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut _GList>, pub is_media_removable: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>, pub has_media: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>, pub is_media_check_automatic: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>, pub can_eject: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>, pub can_poll_for_media: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>, pub eject: Option<unsafe extern "C" fn(*mut _GDrive, u32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>, pub eject_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>, pub poll_for_media: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>, pub poll_for_media_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>, pub get_identifier: Option<unsafe extern "C" fn(*mut _GDrive, *const i8) -> *mut i8>, pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut *mut i8>, pub get_start_stop_type: Option<unsafe extern "C" fn(*mut _GDrive) -> u32>, pub can_start: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>, pub can_start_degraded: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>, pub start: Option<unsafe extern "C" fn(*mut _GDrive, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>, pub start_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>, pub can_stop: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>, pub stop: Option<unsafe extern "C" fn(*mut _GDrive, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>, pub stop_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>, pub stop_button: Option<unsafe extern "C" fn(*mut _GDrive)>, pub eject_with_operation: Option<unsafe extern "C" fn(*mut _GDrive, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>, pub eject_with_operation_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>, pub get_sort_key: Option<unsafe extern "C" fn(*mut _GDrive) -> *const i8>, pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut _GIcon>, pub is_removable: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>,
}

Fields§

§g_iface: _GTypeInterface§changed: Option<unsafe extern "C" fn(*mut _GDrive)>§disconnected: Option<unsafe extern "C" fn(*mut _GDrive)>§eject_button: Option<unsafe extern "C" fn(*mut _GDrive)>§get_name: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut i8>§get_icon: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut _GIcon>§has_volumes: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>§get_volumes: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut _GList>§is_media_removable: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>§has_media: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>§is_media_check_automatic: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>§can_eject: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>§can_poll_for_media: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>§eject: Option<unsafe extern "C" fn(*mut _GDrive, u32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§eject_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>§poll_for_media: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§poll_for_media_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>§get_identifier: Option<unsafe extern "C" fn(*mut _GDrive, *const i8) -> *mut i8>§enumerate_identifiers: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut *mut i8>§get_start_stop_type: Option<unsafe extern "C" fn(*mut _GDrive) -> u32>§can_start: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>§can_start_degraded: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>§start: Option<unsafe extern "C" fn(*mut _GDrive, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§start_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>§can_stop: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>§stop: Option<unsafe extern "C" fn(*mut _GDrive, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§stop_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>§stop_button: Option<unsafe extern "C" fn(*mut _GDrive)>§eject_with_operation: Option<unsafe extern "C" fn(*mut _GDrive, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§eject_with_operation_finish: Option<unsafe extern "C" fn(*mut _GDrive, *mut _GAsyncResult, *mut *mut _GError) -> i32>§get_sort_key: Option<unsafe extern "C" fn(*mut _GDrive) -> *const i8>§get_symbolic_icon: Option<unsafe extern "C" fn(*mut _GDrive) -> *mut _GIcon>§is_removable: Option<unsafe extern "C" fn(*mut _GDrive) -> i32>