  
    
index.htmlMain Page     
modules.htmlModules     
annotated.htmlData Structures     
files.htmlFiles     
pages.htmlRelated Pages   
Storage and Volume abstraction
Data Structures
struct  structLibHalStoragePolicyIconPair.htmlLibHalStoragePolicyIconPair Enumerations
enum  group__HAL.html#gc27af7f0b8e7cf7120a3bc08bce80501LibHalStoragePolicyIcon  {   
LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK =  0x10000, 
LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_IDE =  0x10001, 
LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_SCSI =  0x10002, 
LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_USB =  0x10003, 
  
LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_IEEE1394 =  0x10004, 
LIBHAL_STORAGE_ICON_DRIVE_DISK =  0x10100, 
LIBHAL_STORAGE_ICON_DRIVE_DISK_IDE =  0x10101, 
LIBHAL_STORAGE_ICON_DRIVE_DISK_SCSI =  0x10102, 
  
LIBHAL_STORAGE_ICON_DRIVE_DISK_USB =  0x10103, 
LIBHAL_STORAGE_ICON_DRIVE_DISK_IEEE1394 =  0x10104, 
LIBHAL_STORAGE_ICON_DRIVE_CDROM =  0x10200, 
LIBHAL_STORAGE_ICON_DRIVE_CDROM_IDE =  0x10201, 
  
LIBHAL_STORAGE_ICON_DRIVE_CDROM_SCSI =  0x10202, 
LIBHAL_STORAGE_ICON_DRIVE_CDROM_USB =  0x10203, 
LIBHAL_STORAGE_ICON_DRIVE_CDROM_IEEE1394 =  0x10204, 
LIBHAL_STORAGE_ICON_DRIVE_FLOPPY =  0x10300, 
  
LIBHAL_STORAGE_ICON_DRIVE_FLOPPY_IDE =  0x10301, 
LIBHAL_STORAGE_ICON_DRIVE_FLOPPY_SCSI =  0x10302, 
LIBHAL_STORAGE_ICON_DRIVE_FLOPPY_USB =  0x10303, 
LIBHAL_STORAGE_ICON_DRIVE_FLOPPY_IEEE1394 =  0x10304, 
  
LIBHAL_STORAGE_ICON_DRIVE_TAPE =  0x10400, 
LIBHAL_STORAGE_ICON_DRIVE_COMPACT_FLASH =  0x10500, 
LIBHAL_STORAGE_ICON_DRIVE_MEMORY_STICK =  0x10600, 
LIBHAL_STORAGE_ICON_DRIVE_SMART_MEDIA =  0x10700, 
  
LIBHAL_STORAGE_ICON_DRIVE_SD_MMC =  0x10800, 
LIBHAL_STORAGE_ICON_DRIVE_CAMERA =  0x10900, 
LIBHAL_STORAGE_ICON_DRIVE_PORTABLE_AUDIO_PLAYER =  0x10a00, 
LIBHAL_STORAGE_ICON_DRIVE_ZIP =  0x10b00, 
  
LIBHAL_STORAGE_ICON_DRIVE_JAZ =  0x10c00, 
LIBHAL_STORAGE_ICON_DRIVE_FLASH_KEY =  0x10d00, 
LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK =  0x20000, 
LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK_IDE =  0x20001, 
  
LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK_SCSI =  0x20002, 
LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK_USB =  0x20003, 
LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK_IEEE1394 =  0x20004, 
LIBHAL_STORAGE_ICON_VOLUME_DISK =  0x20100, 
  
LIBHAL_STORAGE_ICON_VOLUME_DISK_IDE =  0x20101, 
LIBHAL_STORAGE_ICON_VOLUME_DISK_SCSI =  0x20102, 
LIBHAL_STORAGE_ICON_VOLUME_DISK_USB =  0x20103, 
LIBHAL_STORAGE_ICON_VOLUME_DISK_IEEE1394 =  0x20104, 
  
LIBHAL_STORAGE_ICON_VOLUME_CDROM =  0x20200, 
LIBHAL_STORAGE_ICON_VOLUME_CDROM_IDE =  0x20201, 
LIBHAL_STORAGE_ICON_VOLUME_CDROM_SCSI =  0x20202, 
LIBHAL_STORAGE_ICON_VOLUME_CDROM_USB =  0x20203, 
  
LIBHAL_STORAGE_ICON_VOLUME_CDROM_IEEE1394 =  0x20204, 
LIBHAL_STORAGE_ICON_VOLUME_FLOPPY =  0x20300, 
LIBHAL_STORAGE_ICON_VOLUME_FLOPPY_IDE =  0x20301, 
LIBHAL_STORAGE_ICON_VOLUME_FLOPPY_SCSI =  0x20302, 
  
LIBHAL_STORAGE_ICON_VOLUME_FLOPPY_USB =  0x20303, 
LIBHAL_STORAGE_ICON_VOLUME_FLOPPY_IEEE1394 =  0x20304, 
LIBHAL_STORAGE_ICON_VOLUME_TAPE =  0x20400, 
LIBHAL_STORAGE_ICON_VOLUME_COMPACT_FLASH =  0x20500, 
  
LIBHAL_STORAGE_ICON_VOLUME_MEMORY_STICK =  0x20600, 
LIBHAL_STORAGE_ICON_VOLUME_SMART_MEDIA =  0x20700, 
LIBHAL_STORAGE_ICON_VOLUME_SD_MMC =  0x20800, 
LIBHAL_STORAGE_ICON_VOLUME_CAMERA =  0x20900, 
  
LIBHAL_STORAGE_ICON_VOLUME_PORTABLE_AUDIO_PLAYER =  0x20a00, 
LIBHAL_STORAGE_ICON_VOLUME_ZIP =  0x20b00, 
LIBHAL_STORAGE_ICON_VOLUME_JAZ =  0x20c00, 
LIBHAL_STORAGE_ICON_VOLUME_FLASH_KEY =  0x20d00, 
  
LIBHAL_STORAGE_ICON_DISC_CDROM =  0x30000, 
LIBHAL_STORAGE_ICON_DISC_CDR =  0x30001, 
LIBHAL_STORAGE_ICON_DISC_CDRW =  0x30002, 
LIBHAL_STORAGE_ICON_DISC_DVDROM =  0x30003, 
  
LIBHAL_STORAGE_ICON_DISC_DVDRAM =  0x30004, 
LIBHAL_STORAGE_ICON_DISC_DVDR =  0x30005, 
LIBHAL_STORAGE_ICON_DISC_DVDRW =  0x30006, 
LIBHAL_STORAGE_ICON_DISC_DVDPLUSR =  0x30007, 
  
LIBHAL_STORAGE_ICON_DISC_DVDPLUSRW =  0x30008
 }
enum  group__HAL.html#gf3deefc262e2d44adf65bf517b8e5b33LibHalDriveBus  {   
LIBHAL_DRIVE_BUS_UNKNOWN =  0x00, 
LIBHAL_DRIVE_BUS_IDE =  0x01, 
LIBHAL_DRIVE_BUS_SCSI =  0x02, 
LIBHAL_DRIVE_BUS_USB =  0x03, 
  
LIBHAL_DRIVE_BUS_IEEE1394 =  0x04, 
LIBHAL_DRIVE_BUS_CCW =  0x05
 }
enum  group__HAL.html#gc68e6cb3850c3cf3cbf25f25943f4327LibHalDriveType  {   
LIBHAL_DRIVE_TYPE_REMOVABLE_DISK =  0x00, 
LIBHAL_DRIVE_TYPE_DISK =  0x01, 
LIBHAL_DRIVE_TYPE_CDROM =  0x02, 
LIBHAL_DRIVE_TYPE_FLOPPY =  0x03, 
  
LIBHAL_DRIVE_TYPE_TAPE =  0x04, 
LIBHAL_DRIVE_TYPE_COMPACT_FLASH =  0x05, 
LIBHAL_DRIVE_TYPE_MEMORY_STICK =  0x06, 
LIBHAL_DRIVE_TYPE_SMART_MEDIA =  0x07, 
  
LIBHAL_DRIVE_TYPE_SD_MMC =  0x08, 
LIBHAL_DRIVE_TYPE_CAMERA =  0x09, 
LIBHAL_DRIVE_TYPE_PORTABLE_AUDIO_PLAYER =  0x0a, 
LIBHAL_DRIVE_TYPE_ZIP =  0x0b, 
  
LIBHAL_DRIVE_TYPE_JAZ =  0x0c, 
LIBHAL_DRIVE_TYPE_FLASHKEY =  0x0d
 }
enum  group__HAL.html#gf2bc93777748848615fa742b1e6dbdd8LibHalDriveCdromCaps  {   
LIBHAL_DRIVE_CDROM_CAPS_CDROM =  0x0001, 
LIBHAL_DRIVE_CDROM_CAPS_CDR =  0x0002, 
LIBHAL_DRIVE_CDROM_CAPS_CDRW =  0x0004, 
LIBHAL_DRIVE_CDROM_CAPS_DVDRAM =  0x0008, 
  
LIBHAL_DRIVE_CDROM_CAPS_DVDROM =  0x0010, 
LIBHAL_DRIVE_CDROM_CAPS_DVDR =  0x0020, 
LIBHAL_DRIVE_CDROM_CAPS_DVDRW =  0x0040, 
LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSR =  0x0080, 
  
LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRW =  0x0100, 
LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRWDL =  0x0200, 
LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRDL =  0x0400
 }
enum  group__HAL.html#gf31f482209ec633b2edafcb7ff5628a7LibHalVolumeUsage  {   
LIBHAL_VOLUME_USAGE_MOUNTABLE_FILESYSTEM, 
LIBHAL_VOLUME_USAGE_PARTITION_TABLE, 
LIBHAL_VOLUME_USAGE_RAID_MEMBER, 
LIBHAL_VOLUME_USAGE_CRYPTO, 
  
LIBHAL_VOLUME_USAGE_UNKNOWN }
enum  group__HAL.html#gf63ab855e3c70a13982592c11179df13LibHalVolumeDiscType  {   
LIBHAL_VOLUME_DISC_TYPE_CDROM =  0x00, 
LIBHAL_VOLUME_DISC_TYPE_CDR =  0x01, 
LIBHAL_VOLUME_DISC_TYPE_CDRW =  0x02, 
LIBHAL_VOLUME_DISC_TYPE_DVDROM =  0x03, 
  
LIBHAL_VOLUME_DISC_TYPE_DVDRAM =  0x04, 
LIBHAL_VOLUME_DISC_TYPE_DVDR =  0x05, 
LIBHAL_VOLUME_DISC_TYPE_DVDRW =  0x06, 
LIBHAL_VOLUME_DISC_TYPE_DVDPLUSR =  0x07, 
  
LIBHAL_VOLUME_DISC_TYPE_DVDPLUSRW =  0x08, 
LIBHAL_VOLUME_DISC_TYPE_DVDPLUSR_DL =  0x09
 }
Functions
LibHalStoragePolicy * 
group__HAL.html#g93139ce1adc74b62027414c1421b20e7libhal_storage_policy_new  (void) void 
group__HAL.html#gdd419823b454d73b7d569edd99cf84aalibhal_storage_policy_free  (LibHalStoragePolicy *policy) void 
group__HAL.html#gd58e78dfbd3fdf2f5d8108173ac8b821libhal_storage_policy_set_icon_path  (LibHalStoragePolicy *policy, group__HAL.html#gc27af7f0b8e7cf7120a3bc08bce80501LibHalStoragePolicyIcon  icon, const char *path) void 
group__HAL.html#gafdaaedce096870ecef82ad37e194555libhal_storage_policy_set_icon_mapping  (LibHalStoragePolicy *policy, structLibHalStoragePolicyIconPair.htmlLibHalStoragePolicyIconPair  *pairs) const char * 
group__HAL.html#ge8387f9dd18101fa1ef15de9d1ccc4bblibhal_storage_policy_lookup_icon  (LibHalStoragePolicy *policy, group__HAL.html#gc27af7f0b8e7cf7120a3bc08bce80501LibHalStoragePolicyIcon  icon) LibHalDrive * group__HAL.html#g565881a288a14cd501bc304390ee32f0libhal_drive_from_udi  (LibHalContext *hal_ctx, const char *udi)  Given a UDI for a HAL device of capability 'storage', this function retrieves all the relevant properties into convenient in-process data structures.  #g565881a288a14cd501bc304390ee32f0 LibHalDrive * group__HAL.html#gd1cb32cf09989cfe790d1bdfdd8a178clibhal_drive_from_device_file  (LibHalContext *hal_ctx, const char *device_file)  Get the drive object that either is (when given e.g.  #gd1cb32cf09989cfe790d1bdfdd8a178c void group__HAL.html#gd6ee3d38e9fca5e839223e30e2c80386libhal_drive_free  (LibHalDrive *drive)  Free all resources used by a LibHalDrive object.  #gd6ee3d38e9fca5e839223e30e2c80386 dbus_bool_t 
group__HAL.html#g6670a3858fc3dc1772b1845f3f9d9079libhal_drive_is_hotpluggable  (LibHalDrive *drive) dbus_bool_t 
group__HAL.html#ga73733c37c764263cd9c087b29203391libhal_drive_uses_removable_media  (LibHalDrive *drive) dbus_bool_t 
group__HAL.html#g26fcf0bd736db0002500b476e7a81bf3libhal_drive_no_partitions_hint  (LibHalDrive *drive) dbus_bool_t 
group__HAL.html#gca8748ec53420ff1fe16af4c6b0ad053libhal_drive_requires_eject  (LibHalDrive *drive) group__HAL.html#gc68e6cb3850c3cf3cbf25f25943f4327LibHalDriveType  group__HAL.html#gb0d94240b118af162290d2f8b3d8769alibhal_drive_get_type  (LibHalDrive *drive) group__HAL.html#gf3deefc262e2d44adf65bf517b8e5b33LibHalDriveBus  group__HAL.html#g2e777b14d4dd49c09bad933c6dae8b01libhal_drive_get_bus  (LibHalDrive *drive) group__HAL.html#gf2bc93777748848615fa742b1e6dbdd8LibHalDriveCdromCaps  group__HAL.html#g110790451c4fd7556de7d21f58eb4fdalibhal_drive_get_cdrom_caps  (LibHalDrive *drive) unsigned int 
group__HAL.html#g28e32ce2257160e3cd4e40997885995blibhal_drive_get_device_major  (LibHalDrive *drive) unsigned int 
group__HAL.html#gcc53b1231fdcc854fc2e5bc0b264a5belibhal_drive_get_device_minor  (LibHalDrive *drive) const char * 
group__HAL.html#g4a539131f265f49dda7fbbf05ed3e015libhal_drive_get_type_textual  (LibHalDrive *drive) const char * 
group__HAL.html#g7513b5aa162b741e7117d436cffe7f5clibhal_drive_get_device_file  (LibHalDrive *drive) const char * 
group__HAL.html#gfdc2e6897937086f9a9609b302e77882libhal_drive_get_udi  (LibHalDrive *drive) const char * 
group__HAL.html#gb854282ad2ab3113e675c1e5c8ce2600libhal_drive_get_serial  (LibHalDrive *drive) const char * 
group__HAL.html#gbbdac9ef8a9ce1e87522f4ecf25300edlibhal_drive_get_firmware_version  (LibHalDrive *drive) const char * 
group__HAL.html#gee172a56c64d682b281ca24edadfaa1dlibhal_drive_get_model  (LibHalDrive *drive) const char * 
group__HAL.html#gde8e944f388952bfa60b25cd34c56929libhal_drive_get_vendor  (LibHalDrive *drive) const char * 
group__HAL.html#g02db6ba41e8f5f2646a35ede87c91907libhal_drive_get_physical_device_udi  (LibHalDrive *drive) const char * 
group__HAL.html#g2b75df3bf1eeb6f305aa4497eb2493a3libhal_drive_get_dedicated_icon_drive  (LibHalDrive *drive) const char * 
group__HAL.html#g794d8fc439fb7107582f23538bf3ca37libhal_drive_get_dedicated_icon_volume  (LibHalDrive *drive) char * 
group__HAL.html#ga4e1a1c76b9cbe9ea40c5716cb14c435libhal_drive_policy_compute_display_name  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) char * 
group__HAL.html#g045d1e4dba53fa4624689ad19bccef99libhal_drive_policy_compute_icon_name  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) dbus_bool_t 
group__HAL.html#gc93dec19ed148c4473c4cfb4baf85357libhal_drive_policy_is_mountable  (LibHalDrive *drive, LibHalStoragePolicy *policy) const char * 
group__HAL.html#gd20ac9d32ba51edf49c7e30c8cd8f275libhal_drive_policy_get_desired_mount_point  (LibHalDrive *drive, LibHalStoragePolicy *policy) const char * 
group__HAL.html#ge764427b3d908c1302e2f8949c735d42libhal_drive_policy_get_mount_options  (LibHalDrive *drive, LibHalStoragePolicy *policy) const char * 
group__HAL.html#g61cb58f69494b03455cfe057613bb564libhal_drive_policy_get_mount_fs  (LibHalDrive *drive, LibHalStoragePolicy *policy) char ** 
group__HAL.html#g8faa6fd8e83fcb9ef2d72acacf615d32libhal_drive_find_all_volumes  (LibHalContext *hal_ctx, LibHalDrive *drive, int *num_volumes) char * 
group__HAL.html#g5750ba139d44e5d4ef62ff552b8a965flibhal_drive_policy_default_get_mount_root  (LibHalContext *hal_ctx) dbus_bool_t 
group__HAL.html#g5490161b194ac80339fea73ae728de7dlibhal_drive_policy_default_use_managed_keyword  (LibHalContext *hal_ctx) char * 
group__HAL.html#g277d381335a48d63e1b904f8f7ec505alibhal_drive_policy_default_get_managed_keyword_primary  (LibHalContext *hal_ctx) char * 
group__HAL.html#g7e3fb06d2b98ac5f6c5b72aaea21fe08libhal_drive_policy_default_get_managed_keyword_secondary  (LibHalContext *hal_ctx) LibHalVolume * group__HAL.html#g4ba7fda60e041bd88dad2c2cea7cb867libhal_volume_from_udi  (LibHalContext *hal_ctx, const char *udi)  Given a UDI for a LIBHAL device of capability 'volume', this function retrieves all the relevant properties into convenient in-process data structures.  #g4ba7fda60e041bd88dad2c2cea7cb867 LibHalVolume * group__HAL.html#ge75baba44fa829969d0f4393a905a3ealibhal_volume_from_device_file  (LibHalContext *hal_ctx, const char *device_file)  Get the volume object for a given device file.  #ge75baba44fa829969d0f4393a905a3ea void group__HAL.html#g97a187ce66d55e08bb7701b8a89878d8libhal_volume_free  (LibHalVolume *volume)  Free all resources used by a LibHalVolume object.  #g97a187ce66d55e08bb7701b8a89878d8 dbus_uint64_t 
group__HAL.html#g40640d27b391a805ebad8d4dd3c09c07libhal_volume_get_size  (LibHalVolume *volume) const char * 
group__HAL.html#g6171a8a0221f082238cbeecd300438adlibhal_volume_get_udi  (LibHalVolume *volume) const char * 
group__HAL.html#g2b9d511863ad0e43448d948da81ba74flibhal_volume_get_device_file  (LibHalVolume *volume) unsigned int 
group__HAL.html#gbe31eab81ac1f28f755cd8d4b6cdc575libhal_volume_get_device_major  (LibHalVolume *volume) unsigned int 
group__HAL.html#g416078c837ca341b60efafc036ad0be1libhal_volume_get_device_minor  (LibHalVolume *volume) const char * 
group__HAL.html#ga5e22676f2df3f4b02aacee00f42f347libhal_volume_get_fstype  (LibHalVolume *volume) const char * 
group__HAL.html#g1db11f6d36326253c7e20613b870591dlibhal_volume_get_fsversion  (LibHalVolume *volume) group__HAL.html#gf31f482209ec633b2edafcb7ff5628a7LibHalVolumeUsage  group__HAL.html#gb6650c31a5f04580cb762b546635a5a6libhal_volume_get_fsusage  (LibHalVolume *volume) dbus_bool_t 
group__HAL.html#g25f6c0775b48a57b45f6a06b1c607006libhal_volume_is_mounted  (LibHalVolume *volume) dbus_bool_t 
group__HAL.html#g2c34bb9977bdbcb68a211a1a4da01da0libhal_volume_is_partition  (LibHalVolume *volume) dbus_bool_t 
group__HAL.html#g6ca65999bf7e2ab0d4c1021861190b65libhal_volume_is_disc  (LibHalVolume *volume) unsigned int 
group__HAL.html#g527a822bcab58add44109dbea59718balibhal_volume_get_partition_number  (LibHalVolume *volume) const char * 
group__HAL.html#g596fc8a057ec95c3012413b54e36b847libhal_volume_get_label  (LibHalVolume *volume) const char * 
group__HAL.html#g11612b487cb110053cec837d8ccc7b65libhal_volume_get_mount_point  (LibHalVolume *volume) const char * 
group__HAL.html#g4e83cd2ef4e926d3d02154d07d04311flibhal_volume_get_uuid  (LibHalVolume *volume) const char * 
group__HAL.html#g7b27ae9d1de6464a307bee373cbbafd2libhal_volume_get_storage_device_udi  (LibHalVolume *volume) dbus_bool_t 
group__HAL.html#gb29922e78dcdcd3f588d4285d7ab6460libhal_volume_disc_has_audio  (LibHalVolume *volume) dbus_bool_t 
group__HAL.html#g4cc4f1836c6d094c075b2de9e114ba4alibhal_volume_disc_has_data  (LibHalVolume *volume) dbus_bool_t 
group__HAL.html#gebd31ba5682a0d17854e4ac74987304clibhal_volume_disc_is_blank  (LibHalVolume *volume) dbus_bool_t 
group__HAL.html#g014064e936c70ca52151bd22dcbae07dlibhal_volume_disc_is_rewritable  (LibHalVolume *volume) dbus_bool_t 
group__HAL.html#g58ccd0490abac4f16aae8ca842f6ff96libhal_volume_disc_is_appendable  (LibHalVolume *volume) group__HAL.html#gf63ab855e3c70a13982592c11179df13LibHalVolumeDiscType  group__HAL.html#gc0e3c1e24e973a4eb2b4f41f4e99f58dlibhal_volume_get_disc_type  (LibHalVolume *volume) int group__HAL.html#g4c705dcf8d6f4489e6cdbba1cae9a3b5libhal_volume_get_msdos_part_table_type  (LibHalVolume *volume)  If the volume is on a drive with a MSDOS style partition table, return the partition table id.  #g4c705dcf8d6f4489e6cdbba1cae9a3b5 dbus_bool_t 
group__HAL.html#gb22ae2d519676d37736228110d826f65libhal_volume_should_ignore  (LibHalVolume *volume) char * 
group__HAL.html#g3d66452cfca4bd8d21b791823a322580libhal_volume_policy_compute_size_as_string  (LibHalVolume *volume) char * 
group__HAL.html#g28a622fa093951916de48fea20fc9298libhal_volume_policy_compute_display_name  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) char * 
group__HAL.html#g0f957a578e9863cfe317ab8dca2a0f93libhal_volume_policy_compute_icon_name  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) dbus_bool_t group__HAL.html#g4657a8d27a2d7daf66a53b019f58b095libhal_volume_policy_should_be_visible  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy, const char *target_mount_point)  Policy function to determine if a volume should be visible in a desktop environment.  #g4657a8d27a2d7daf66a53b019f58b095 dbus_bool_t 
group__HAL.html#g33824282e4965b593d44df8dc803751blibhal_volume_policy_is_mountable  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) const char * 
group__HAL.html#ged09d82b973589c6408c3f3d8e80ad52libhal_volume_policy_get_desired_mount_point  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) const char * 
group__HAL.html#gfa94e5b9f7c20f58df82f52948c20d28libhal_volume_policy_get_mount_options  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) const char * 
group__HAL.html#g7d34ec1b21ae339379d85b8c261242b8libhal_volume_policy_get_mount_fs  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) Function Documentation
  
    
      
        
          
void libhal_drive_free                     
(           
LibHalDrive *           
 drive                    
 )           
        
      
    
  
  
    
       
    
    
Free all resources used by a LibHalDrive object. 
Parameters:  
    
drive Object to free   
Definition at line 
libhal-storage_8c-source.html#l00740740  of file libhal-storage_8c-source.htmllibhal-storage.c .
References 
libhal_8c-source.html#l00151libhal_free_string() , and libhal_8c-source.html#l00076libhal_free_string_array() .      
  
    
      
        
          
LibHalDrive* libhal_drive_from_device_file                     
(           
LibHalContext *           
 hal_ctx,         
        
          
          
          
const char *           
 device_file         
        
          
          
)           
        
      
    
  
  
    
       
    
    
Get the drive object that either is (when given e.g. 
/dev/sdb) or contains (when given e.g. /dev/sdb1) the given device file.
Parameters:  
    
hal_ctx libhal context to use     
device_file Name of special device file, e.g. '/dev/hdc'   
Returns:LibHalDrive object or NULL if it doesn't exist Definition at line 
libhal-storage_8c-source.html#l011551155  of file libhal-storage_8c-source.htmllibhal-storage.c .
References 
libhal_8c-source.html#l01112libhal_device_get_property_string() , libhal_8c-source.html#l02683libhal_device_query_capability() , libhal_8c-source.html#l00151libhal_free_string() , and libhal_8c-source.html#l02559libhal_manager_find_device_string_match() .      
  
    
      
        
          
LibHalDrive* libhal_drive_from_udi                     
(           
LibHalContext *           
 hal_ctx,         
        
          
          
          
const char *           
 udi         
        
          
          
)           
        
      
    
  
  
    
       
    
    
Given a UDI for a HAL device of capability 'storage', this function retrieves all the relevant properties into convenient in-process data structures. 
Parameters:  
    
hal_ctx libhal context     
udi HAL UDI   
Returns:LibHalDrive object or NULL if UDI is invalid Definition at line 
libhal-storage_8c-source.html#l00822822  of file libhal-storage_8c-source.htmllibhal-storage.c .
References 
libhal_8c-source.html#l00342libhal_device_get_all_properties() , libhal_8c-source.html#l02683libhal_device_query_capability() , libhal-storage_8c-source.html#l00805LIBHAL_PROP_EXTRACT_BEGIN , libhal-storage_8c-source.html#l00809LIBHAL_PROP_EXTRACT_BOOL , libhal-storage_8c-source.html#l00810LIBHAL_PROP_EXTRACT_BOOL_BITFIELD , libhal-storage_8c-source.html#l00806LIBHAL_PROP_EXTRACT_END , libhal-storage_8c-source.html#l00807LIBHAL_PROP_EXTRACT_INT , libhal-storage_8c-source.html#l00808LIBHAL_PROP_EXTRACT_STRING , libhal-storage_8c-source.html#l00811LIBHAL_PROP_EXTRACT_STRLIST , libhal_8c-source.html#l00578libhal_psi_get_key() , libhal_8c-source.html#l00564libhal_psi_get_type() , libhal_8c-source.html#l00542libhal_psi_has_more() , libhal_8c-source.html#l00524libhal_psi_init() , and libhal_8c-source.html#l00552libhal_psi_next() .      
  
    
      
        
          
void libhal_volume_free                     
(           
LibHalVolume *           
 vol                    
 )           
        
      
    
  
  
    
       
    
    
Free all resources used by a LibHalVolume object. 
Parameters:  
    
vol Object to free   
Definition at line 
libhal-storage_8c-source.html#l00764764  of file libhal-storage_8c-source.htmllibhal-storage.c .
References 
libhal_8c-source.html#l00151libhal_free_string() .      
  
    
      
        
          
LibHalVolume* libhal_volume_from_device_file                     
(           
LibHalContext *           
 hal_ctx,         
        
          
          
          
const char *           
 device_file         
        
          
          
)           
        
      
    
  
  
    
       
    
    
Get the volume object for a given device file. 
Parameters:  
    
hal_ctx libhal context to use     
device_file Name of special device file, e.g. '/dev/hda5'   
Returns:LibHalVolume object or NULL if it doesn't exist Definition at line 
libhal-storage_8c-source.html#l012141214  of file libhal-storage_8c-source.htmllibhal-storage.c .
References 
libhal_8c-source.html#l02683libhal_device_query_capability() , and libhal_8c-source.html#l02559libhal_manager_find_device_string_match() .      
  
    
      
        
          
LibHalVolume* libhal_volume_from_udi                     
(           
LibHalContext *           
 hal_ctx,         
        
          
          
          
const char *           
 udi         
        
          
          
)           
        
      
    
  
  
    
       
    
    
Given a UDI for a LIBHAL device of capability 'volume', this function retrieves all the relevant properties into convenient in-process data structures. 
Parameters:  
    
hal_ctx libhal context     
udi HAL UDI   
Returns:LibHalVolume object or NULL if UDI is invalid Definition at line 
libhal-storage_8c-source.html#l010051005  of file libhal-storage_8c-source.htmllibhal-storage.c .
References 
libhal_8c-source.html#l00342libhal_device_get_all_properties() , libhal_8c-source.html#l02683libhal_device_query_capability() , libhal-storage_8c-source.html#l00805LIBHAL_PROP_EXTRACT_BEGIN , libhal-storage_8c-source.html#l00809LIBHAL_PROP_EXTRACT_BOOL , libhal-storage_8c-source.html#l00806LIBHAL_PROP_EXTRACT_END , libhal-storage_8c-source.html#l00807LIBHAL_PROP_EXTRACT_INT , libhal-storage_8c-source.html#l00808LIBHAL_PROP_EXTRACT_STRING , libhal_8c-source.html#l00578libhal_psi_get_key() , libhal_8c-source.html#l00564libhal_psi_get_type() , libhal_8c-source.html#l00542libhal_psi_has_more() , libhal_8c-source.html#l00524libhal_psi_init() , and libhal_8c-source.html#l00552libhal_psi_next() .      
  
    
      
        
          
int libhal_volume_get_msdos_part_table_type                     
(           
LibHalVolume *           
 volume                    
 )           
        
      
    
  
  
    
       
    
    
If the volume is on a drive with a MSDOS style partition table, return the partition table id. 
Parameters:  
    
volume Volume object   
Returns:The partition type or -1 if volume is not a partition or the media the volume stems from isn't partition with a MS DOS style table Definition at line 
libhal-storage_8c-source.html#l011401140  of file libhal-storage_8c-source.htmllibhal-storage.c .      
  
    
      
        
          
dbus_bool_t libhal_volume_policy_should_be_visible                     
(           
LibHalDrive *           
 drive,         
        
          
          
          
LibHalVolume *           
 volume,         
        
          
          
          
LibHalStoragePolicy *           
 policy,         
        
          
          
          
const char *           
 target_mount_point         
        
          
          
)           
        
      
    
  
  
    
       
    
    
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.
Parameters:  
    
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   
Returns:Whether the volume should be shown in a desktop environment. Definition at line 
libhal-storage_8c-source.html#l00568568  of file libhal-storage_8c-source.htmllibhal-storage.c .
References 
libhal-storage_8c-source.html#l01368libhal_volume_get_fstype() , libhal-storage_8c-source.html#l01380libhal_volume_get_fsusage() , libhal-storage_8c-source.html#l01410libhal_volume_get_label() , and libhal-storage_8c-source.html#l01416libhal_volume_get_mount_point() .      
Generated on Tue May 2 08:40:16 2006 for HAL by 
http://www.doxygen.org/index.htmldoxygen  1.4.6 