Logo Search packages:      
Sourcecode: hal version File versions

HAL Storage and Volumes library


Detailed Description

HAL Storage and Volumes library.


Classes

struct  HalDrive_s
struct  HalStoragePolicy_s
struct  HalVolume_s
struct  IconMappingEntry_s

Defines

#define HAL_PROP_EXTRACT_BEGIN   if (FALSE)
#define HAL_PROP_EXTRACT_BOOL(_property_, _where_)   else if (strcmp (key, _property_) == 0 && type == DBUS_TYPE_BOOLEAN) _where_ = hal_psi_get_bool (&it)
#define HAL_PROP_EXTRACT_BOOL_BITFIELD(_property_, _where_, _field_)   else if (strcmp (key, _property_) == 0 && type == DBUS_TYPE_BOOLEAN) _where_ |= hal_psi_get_bool (&it) ? _field_ : 0
#define HAL_PROP_EXTRACT_END   ;
#define HAL_PROP_EXTRACT_INT(_property_, _where_)   else if (strcmp (key, _property_) == 0 && type == DBUS_TYPE_INT32) _where_ = hal_psi_get_int (&it)
#define HAL_PROP_EXTRACT_STRING(_property_, _where_)   else if (strcmp (key, _property_) == 0 && type == DBUS_TYPE_STRING) _where_ = (hal_psi_get_string (&it) != NULL && strlen (hal_psi_get_string (&it)) > 0) ? strdup (hal_psi_get_string (&it)) : NULL
#define MAX_STRING_SZ   256
#define MOUNT_OPTIONS_SIZE   256
#define strcat_len(dst, src, dstmaxlen)

Typedefs

typedef struct IconMappingEntry_s IconMappingEntry

Functions

static void fixup_string (char *s)
char ** hal_drive_find_all_volumes (LibHalContext *hal_ctx, HalDrive *drive, int *num_volumes)
void hal_drive_free (HalDrive *drive)
HalDrive * hal_drive_from_device_file (LibHalContext *hal_ctx, const char *device_file)
HalDrive * hal_drive_from_udi (LibHalContext *hal_ctx, const char *udi)
HalDriveBus hal_drive_get_bus (HalDrive *drive)
HalDriveCdromCaps hal_drive_get_cdrom_caps (HalDrive *drive)
const char * hal_drive_get_dedicated_icon_drive (HalDrive *drive)
const char * hal_drive_get_dedicated_icon_volume (HalDrive *drive)
const char * hal_drive_get_device_file (HalDrive *drive)
unsigned int hal_drive_get_device_major (HalDrive *drive)
unsigned int hal_drive_get_device_minor (HalDrive *drive)
const char * hal_drive_get_firmware_version (HalDrive *drive)
const char * hal_drive_get_model (HalDrive *drive)
const char * hal_drive_get_physical_device_udi (HalDrive *drive)
const char * hal_drive_get_serial (HalDrive *drive)
HalDriveType hal_drive_get_type (HalDrive *drive)
const char * hal_drive_get_type_textual (HalDrive *drive)
const char * hal_drive_get_udi (HalDrive *drive)
const char * hal_drive_get_vendor (HalDrive *drive)
dbus_bool_t hal_drive_is_hotpluggable (HalDrive *drive)
dbus_bool_t hal_drive_no_partitions_hint (HalDrive *drive)
char * hal_drive_policy_compute_display_name (HalDrive *drive, HalVolume *volume, HalStoragePolicy *policy)
char * hal_drive_policy_compute_icon_name (HalDrive *drive, HalVolume *volume, HalStoragePolicy *policy)
char * hal_drive_policy_default_get_managed_keyword_primary (LibHalContext *hal_ctx)
char * hal_drive_policy_default_get_managed_keyword_secondary (LibHalContext *hal_ctx)
char * hal_drive_policy_default_get_mount_root (LibHalContext *hal_ctx)
dbus_bool_t hal_drive_policy_default_use_managed_keyword (LibHalContext *hal_ctx)
const char * hal_drive_policy_get_desired_mount_point (HalDrive *drive, HalStoragePolicy *policy)
const char * hal_drive_policy_get_mount_fs (HalDrive *drive, HalStoragePolicy *policy)
const char * hal_drive_policy_get_mount_options (HalDrive *drive, HalStoragePolicy *policy)
dbus_bool_t hal_drive_policy_is_mountable (HalDrive *drive, HalStoragePolicy *policy)
dbus_bool_t hal_drive_requires_eject (HalDrive *drive)
dbus_bool_t hal_drive_uses_removable_media (HalDrive *drive)
void hal_storage_policy_free (HalStoragePolicy *policy)
const char * hal_storage_policy_lookup_icon (HalStoragePolicy *policy, HalStoragePolicyIcon icon)
HalStoragePolicy * hal_storage_policy_new ()
void hal_storage_policy_set_icon_mapping (HalStoragePolicy *policy, HalStoragePolicyIconPair *pairs)
void hal_storage_policy_set_icon_path (HalStoragePolicy *policy, HalStoragePolicyIcon icon, const char *path)
dbus_bool_t hal_volume_disc_has_audio (HalVolume *volume)
dbus_bool_t hal_volume_disc_has_data (HalVolume *volume)
dbus_bool_t hal_volume_disc_is_appendable (HalVolume *volume)
dbus_bool_t hal_volume_disc_is_blank (HalVolume *volume)
dbus_bool_t hal_volume_disc_is_rewritable (HalVolume *volume)
void hal_volume_free (HalVolume *vol)
HalVolume * hal_volume_from_device_file (LibHalContext *hal_ctx, const char *device_file)
HalVolume * hal_volume_from_udi (LibHalContext *hal_ctx, const char *udi)
const char * hal_volume_get_device_file (HalVolume *volume)
unsigned int hal_volume_get_device_major (HalVolume *volume)
unsigned int hal_volume_get_device_minor (HalVolume *volume)
HalVolumeDiscType hal_volume_get_disc_type (HalVolume *volume)
const char * hal_volume_get_fstype (HalVolume *volume)
HalVolumeUsage hal_volume_get_fsusage (HalVolume *volume)
const char * hal_volume_get_fsversion (HalVolume *volume)
const char * hal_volume_get_label (HalVolume *volume)
const char * hal_volume_get_mount_point (HalVolume *volume)
int hal_volume_get_msdos_part_table_type (HalVolume *volume)
unsigned int hal_volume_get_partition_number (HalVolume *volume)
dbus_uint64_t hal_volume_get_size (HalVolume *volume)
const char * hal_volume_get_storage_device_udi (HalVolume *volume)
const char * hal_volume_get_udi (HalVolume *volume)
const char * hal_volume_get_uuid (HalVolume *volume)
dbus_bool_t hal_volume_is_disc (HalVolume *volume)
dbus_bool_t hal_volume_is_mounted (HalVolume *volume)
dbus_bool_t hal_volume_is_partition (HalVolume *volume)
char * hal_volume_policy_compute_display_name (HalDrive *drive, HalVolume *volume, HalStoragePolicy *policy)
char * hal_volume_policy_compute_icon_name (HalDrive *drive, HalVolume *volume, HalStoragePolicy *policy)
char * hal_volume_policy_compute_size_as_string (HalVolume *volume)
const char * hal_volume_policy_get_desired_mount_point (HalDrive *drive, HalVolume *volume, HalStoragePolicy *policy)
const char * hal_volume_policy_get_mount_fs (HalDrive *drive, HalVolume *volume, HalStoragePolicy *policy)
const char * hal_volume_policy_get_mount_options (HalDrive *drive, HalVolume *volume, HalStoragePolicy *policy)
dbus_bool_t hal_volume_policy_is_mountable (HalDrive *drive, HalVolume *volume, HalStoragePolicy *policy)
dbus_bool_t hal_volume_policy_should_be_visible (HalDrive *drive, HalVolume *volume, HalStoragePolicy *policy, const char *target_mount_point)
static void mopts_collect (LibHalContext *hal_ctx, const char *namespace, int namespace_len, const char *udi, char *options_string, size_t options_max_len, dbus_bool_t only_collect_imply_opts)


Generated by  Doxygen 1.6.0   Back to index