Type Alias GVolumeIface

Source
pub type GVolumeIface = _GVolumeIface;
Expand description

GVolumeIface: @g_iface: The parent interface. @changed: Changed signal that is emitted when the volume’s state has changed. @removed: The removed signal that is emitted when the #GVolume have been removed. If the recipient is holding references to the object they should release them so the object can be finalized. @get_name: Gets a string containing the name of the #GVolume. @get_icon: Gets a #GIcon for the #GVolume. @get_uuid: Gets the UUID for the #GVolume. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns %NULL if there is no UUID available. @get_drive: Gets a #GDrive the volume is located on. Returns %NULL if the #GVolume is not associated with a #GDrive. @get_mount: Gets a #GMount representing the mounted volume. Returns %NULL if the #GVolume is not mounted. @can_mount: Returns %TRUE if the #GVolume can be mounted. @can_eject: Checks if a #GVolume can be ejected. @mount_fn: Mounts a given #GVolume. #GVolume implementations must emit the #GMountOperation::aborted signal before completing a mount operation that is aborted while awaiting input from the user through a #GMountOperation instance. @mount_finish: Finishes a mount operation. @eject: Ejects a given #GVolume. @eject_finish: Finishes an eject operation. @get_identifier: Returns the [identifier][volume-identifier] of the given kind, or %NULL if the #GVolume doesn’t have one. @enumerate_identifiers: Returns an array strings listing the kinds of [identifiers][volume-identifier] which the #GVolume has. @should_automount: Returns %TRUE if the #GVolume should be automatically mounted. @get_activation_root: Returns the activation root for the #GVolume if it is known in advance or %NULL if it is not known. @eject_with_operation: Starts ejecting a #GVolume 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 #GVolume instance or %NULL if no such key exists. Since 2.32. @get_symbolic_icon: Gets a symbolic #GIcon for the #GVolume. Since 2.34.

Interface for implementing operations for mountable volumes.

Aliased Type§

struct GVolumeIface {
Show 22 fields pub g_iface: _GTypeInterface, pub changed: Option<unsafe extern "C" fn(*mut _GVolume)>, pub removed: Option<unsafe extern "C" fn(*mut _GVolume)>, pub get_name: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut i8>, pub get_icon: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GIcon>, pub get_uuid: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut i8>, pub get_drive: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GDrive>, pub get_mount: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GMount>, pub can_mount: Option<unsafe extern "C" fn(*mut _GVolume) -> i32>, pub can_eject: Option<unsafe extern "C" fn(*mut _GVolume) -> i32>, pub mount_fn: Option<unsafe extern "C" fn(*mut _GVolume, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>, pub mount_finish: Option<unsafe extern "C" fn(*mut _GVolume, *mut _GAsyncResult, *mut *mut _GError) -> i32>, pub eject: Option<unsafe extern "C" fn(*mut _GVolume, 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 _GVolume, *mut _GAsyncResult, *mut *mut _GError) -> i32>, pub get_identifier: Option<unsafe extern "C" fn(*mut _GVolume, *const i8) -> *mut i8>, pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut *mut i8>, pub should_automount: Option<unsafe extern "C" fn(*mut _GVolume) -> i32>, pub get_activation_root: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GFile>, pub eject_with_operation: Option<unsafe extern "C" fn(*mut _GVolume, 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 _GVolume, *mut _GAsyncResult, *mut *mut _GError) -> i32>, pub get_sort_key: Option<unsafe extern "C" fn(*mut _GVolume) -> *const i8>, pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GIcon>,
}

Fields§

§g_iface: _GTypeInterface§changed: Option<unsafe extern "C" fn(*mut _GVolume)>§removed: Option<unsafe extern "C" fn(*mut _GVolume)>§get_name: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut i8>§get_icon: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GIcon>§get_uuid: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut i8>§get_drive: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GDrive>§get_mount: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GMount>§can_mount: Option<unsafe extern "C" fn(*mut _GVolume) -> i32>§can_eject: Option<unsafe extern "C" fn(*mut _GVolume) -> i32>§mount_fn: Option<unsafe extern "C" fn(*mut _GVolume, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§mount_finish: Option<unsafe extern "C" fn(*mut _GVolume, *mut _GAsyncResult, *mut *mut _GError) -> i32>§eject: Option<unsafe extern "C" fn(*mut _GVolume, 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 _GVolume, *mut _GAsyncResult, *mut *mut _GError) -> i32>§get_identifier: Option<unsafe extern "C" fn(*mut _GVolume, *const i8) -> *mut i8>§enumerate_identifiers: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut *mut i8>§should_automount: Option<unsafe extern "C" fn(*mut _GVolume) -> i32>§get_activation_root: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GFile>§eject_with_operation: Option<unsafe extern "C" fn(*mut _GVolume, 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 _GVolume, *mut _GAsyncResult, *mut *mut _GError) -> i32>§get_sort_key: Option<unsafe extern "C" fn(*mut _GVolume) -> *const i8>§get_symbolic_icon: Option<unsafe extern "C" fn(*mut _GVolume) -> *mut _GIcon>