| Top |
| typedef | LibHalVolume |
| typedef | LibHalStoragePolicy |
| enum | LibHalStoragePolicyIcon |
| LibHalStoragePolicyIconPair | |
| enum | LibHalDriveBus |
| enum | LibHalDriveType |
| enum | LibHalDriveCdromCaps |
| enum | LibHalVolumeUsage |
| enum | LibHalVolumeDiscType |
| struct | LibHalDrive_s |
| struct | LibHalStoragePolicy_s |
| struct | LibHalVolume_s |
LibHalStoragePolicy *
libhal_storage_policy_new (void);
libhal_storage_policy_new is deprecated and should not be used in newly-written code.
void
libhal_storage_policy_free (LibHalStoragePolicy *policy);
libhal_storage_policy_free is deprecated and should not be used in newly-written code.
void libhal_storage_policy_set_icon_path (LibHalStoragePolicy *policy,LibHalStoragePolicyIcon icon,const char *path);
libhal_storage_policy_set_icon_path is deprecated and should not be used in newly-written code.
void libhal_storage_policy_set_icon_mapping (LibHalStoragePolicy *policy,LibHalStoragePolicyIconPair *pairs);
libhal_storage_policy_set_icon_mapping is deprecated and should not be used in newly-written code.
const char * libhal_storage_policy_lookup_icon (LibHalStoragePolicy *policy,LibHalStoragePolicyIcon icon);
libhal_storage_policy_lookup_icon is deprecated and should not be used in newly-written code.
LibHalDrive * libhal_drive_from_udi (LibHalContext *hal_ctx,const char *udi);
LibHalDrive * libhal_drive_from_device_file (LibHalContext *hal_ctx,const char *device_file);
void
libhal_drive_free (LibHalDrive *drive);
Free all resources used by a LibHalDrive object.
dbus_bool_t
libhal_drive_uses_removable_media (LibHalDrive *drive);
dbus_bool_t
libhal_drive_is_media_detection_automatic
(LibHalDrive *drive);
const char *
libhal_drive_get_partition_scheme (LibHalDrive *drive);
dbus_bool_t
libhal_drive_no_partitions_hint (LibHalDrive *drive);
LibHalDriveCdromCaps
libhal_drive_get_cdrom_caps (LibHalDrive *drive);
const char *
libhal_drive_get_firmware_version (LibHalDrive *drive);
const char *
libhal_drive_get_physical_device_udi (LibHalDrive *drive);
const char *
libhal_drive_get_dedicated_icon_drive (LibHalDrive *drive);
const char *
libhal_drive_get_dedicated_icon_volume
(LibHalDrive *drive);
char * libhal_drive_policy_compute_display_name (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy);
libhal_drive_policy_compute_display_name is deprecated and should not be used in newly-written code.
char * libhal_drive_policy_compute_icon_name (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy);
libhal_drive_policy_compute_icon_name is deprecated and should not be used in newly-written code.
dbus_bool_t libhal_drive_policy_is_mountable (LibHalDrive *drive,LibHalStoragePolicy *policy);
libhal_drive_policy_is_mountable is deprecated and should not be used in newly-written code.
const char * libhal_drive_policy_get_desired_mount_point (LibHalDrive *drive,LibHalStoragePolicy *policy);
libhal_drive_policy_get_desired_mount_point is deprecated and should not be used in newly-written code.
const char * libhal_drive_policy_get_mount_options (LibHalDrive *drive,LibHalStoragePolicy *policy);
libhal_drive_policy_get_mount_options is deprecated and should not be used in newly-written code.
const char * libhal_drive_policy_get_mount_fs (LibHalDrive *drive,LibHalStoragePolicy *policy);
libhal_drive_policy_get_mount_fs is deprecated and should not be used in newly-written code.
char ** libhal_drive_find_all_volumes (LibHalContext *hal_ctx,LibHalDrive *drive,int *num_volumes);
char *
libhal_drive_policy_default_get_mount_root
(LibHalContext *hal_ctx);
libhal_drive_policy_default_get_mount_root is deprecated and should not be used in newly-written code.
dbus_bool_t
libhal_drive_policy_default_use_managed_keyword
(LibHalContext *hal_ctx);
libhal_drive_policy_default_use_managed_keyword is deprecated and should not be used in newly-written code.
char *
libhal_drive_policy_default_get_managed_keyword_primary
(LibHalContext *hal_ctx);
libhal_drive_policy_default_get_managed_keyword_primary is deprecated and should not be used in newly-written code.
char *
libhal_drive_policy_default_get_managed_keyword_secondary
(LibHalContext *hal_ctx);
libhal_drive_policy_default_get_managed_keyword_secondary is deprecated and should not be used in newly-written code.
LibHalVolume * libhal_volume_from_udi (LibHalContext *hal_ctx,const char *udi);
LibHalVolume * libhal_volume_from_device_file (LibHalContext *hal_ctx,const char *device_file);
LibHalVolume * libhal_volume_from_mount_point (LibHalContext *hal_ctx,const char *mount_point);
void
libhal_volume_free (LibHalVolume *volume);
Free all resources used by a LibHalVolume object.
dbus_uint64_t
libhal_volume_get_disc_capacity (LibHalVolume *volume);
unsigned int
libhal_volume_get_device_major (LibHalVolume *volume);
unsigned int
libhal_volume_get_device_minor (LibHalVolume *volume);
dbus_bool_t
libhal_volume_is_mounted_read_only (LibHalVolume *volume);
const char *
libhal_volume_get_partition_scheme (LibHalVolume *volume);
const char *
libhal_volume_get_partition_type (LibHalVolume *volume);
const char *
libhal_volume_get_partition_label (LibHalVolume *volume);
const char *
libhal_volume_get_partition_uuid (LibHalVolume *volume);
const char **
libhal_volume_get_partition_flags (LibHalVolume *volume);
unsigned int
libhal_volume_get_partition_number (LibHalVolume *volume);
dbus_uint64_t
libhal_volume_get_partition_start_offset
(LibHalVolume *volume);
dbus_uint64_t
libhal_volume_get_partition_media_size
(LibHalVolume *volume);
const char *
libhal_volume_get_storage_device_udi (LibHalVolume *volume);
const char *
libhal_volume_crypto_get_backing_volume_udi
(LibHalVolume *volume);
char * libhal_volume_crypto_get_clear_volume_udi (LibHalContext *hal_ctx,LibHalVolume *volume);
dbus_bool_t
libhal_volume_disc_is_rewritable (LibHalVolume *volume);
dbus_bool_t
libhal_volume_disc_is_appendable (LibHalVolume *volume);
LibHalVolumeDiscType
libhal_volume_get_disc_type (LibHalVolume *volume);
int
libhal_volume_get_msdos_part_table_type
(LibHalVolume *volume);
libhal_volume_get_msdos_part_table_type is deprecated and should not be used in newly-written code.
dbus_uint64_t
libhal_volume_get_msdos_part_table_start
(LibHalVolume *volume);
libhal_volume_get_msdos_part_table_start is deprecated and should not be used in newly-written code.
dbus_uint64_t
libhal_volume_get_msdos_part_table_size
(LibHalVolume *volume);
libhal_volume_get_msdos_part_table_size is deprecated and should not be used in newly-written code.
char *
libhal_volume_policy_compute_size_as_string
(LibHalVolume *volume);
libhal_volume_policy_compute_size_as_string is deprecated and should not be used in newly-written code.
char * libhal_volume_policy_compute_display_name (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy);
libhal_volume_policy_compute_display_name is deprecated and should not be used in newly-written code.
char * libhal_volume_policy_compute_icon_name (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy);
libhal_volume_policy_compute_icon_name is deprecated and should not be used in newly-written code.
dbus_bool_t libhal_volume_policy_should_be_visible (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy,const char *target_mount_point);
libhal_volume_policy_should_be_visible is deprecated and should not be used in newly-written code.
drive |
Drive that the volume is stemming from |
|
volume |
Volume |
|
policy |
Policy object |
|
target_mount_point |
The mount point that the volume is expected to be mounted at if not already mounted. This may e.g. stem from /etc/fstab. If this is NULL the then mount point isn't taking into account when evaluating whether the volume should be visible |
Whether the volume should be shown in a desktop environment. Policy function to determine if a volume should be visible in a desktop environment. This is useful to hide certain system volumes as bootstrap partitions, the /usr partition, swap partitions and other volumes that a unprivileged desktop user shouldn't know even exists.
dbus_bool_t libhal_volume_policy_is_mountable (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy);
libhal_volume_policy_is_mountable is deprecated and should not be used in newly-written code.
const char * libhal_volume_policy_get_desired_mount_point (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy);
libhal_volume_policy_get_desired_mount_point is deprecated and should not be used in newly-written code.
const char * libhal_volume_policy_get_mount_options (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy);
libhal_volume_policy_get_mount_options is deprecated and should not be used in newly-written code.
const char * libhal_volume_policy_get_mount_fs (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy);
libhal_volume_policy_get_mount_fs is deprecated and should not be used in newly-written code.
typedef struct {
LibHalStoragePolicyIcon icon;
const char *icon_path;
} LibHalStoragePolicyIconPair;