  
    
index.htmlMain Page     
modules.htmlModules     
annotated.htmlData Structures     
files.htmlFiles     
pages.htmlRelated Pages   
HAL Storage and Volumes library
HAL Storage and Volumes library.  
#_detailsMore... Data Structures
struct  structIconMappingEntry__s.htmlIconMappingEntry_s struct  structLibHalStoragePolicy__s.htmlLibHalStoragePolicy_s struct  structLibHalDrive__s.htmlLibHalDrive_s struct  structLibHalVolume__s.htmlLibHalVolume_s Defines
#define 
group__LibHalStorage.html#g18c081bc8b8dddfa5392e0237c63ed23MAX_STRING_SZ    256 #define 
group__LibHalStorage.html#g83b0452a18771daf470915b88dce2451MOUNT_OPTIONS_SIZE    256 #define 
group__LibHalStorage.html#g585606cf5de0e83d3796f12a13e030e9LIBHAL_PROP_EXTRACT_BEGIN    if (FALSE) #define 
group__LibHalStorage.html#gf70c220c5727b457fcc4bc04f4a87880LIBHAL_PROP_EXTRACT_END    ; #define 
group__LibHalStorage.html#gd87d5587ce2c77ad7248c5a2b725cdecLIBHAL_PROP_EXTRACT_INT (_property_, _where_)   else if (strcmp (key, _property_) == 0 && type == LIBHAL_PROPERTY_TYPE_INT32) _where_ = libhal_psi_get_int (&it) #define 
group__LibHalStorage.html#g4a857b776764e3279206018fbf4a0298LIBHAL_PROP_EXTRACT_STRING (_property_, _where_)   else if (strcmp (key, _property_) == 0 && type == LIBHAL_PROPERTY_TYPE_STRING) _where_ = (libhal_psi_get_string (&it) != NULL && strlen (libhal_psi_get_string (&it)) > 0) ? strdup (libhal_psi_get_string (&it)) : NULL #define 
group__LibHalStorage.html#g9c6324fe9dfe14490046373fa3a28451LIBHAL_PROP_EXTRACT_BOOL (_property_, _where_)   else if (strcmp (key, _property_) == 0 && type == LIBHAL_PROPERTY_TYPE_BOOLEAN) _where_ = libhal_psi_get_bool (&it) #define 
group__LibHalStorage.html#ge1533db17e994767e1975955e1608631LIBHAL_PROP_EXTRACT_BOOL_BITFIELD (_property_, _where_, _field_)   else if (strcmp (key, _property_) == 0 && type == LIBHAL_PROPERTY_TYPE_BOOLEAN) _where_ |= libhal_psi_get_bool (&it) ? _field_ : 0 #define 
group__LibHalStorage.html#g47f0b0f6bc4c3b5f68c672cc060f2b74LIBHAL_PROP_EXTRACT_STRLIST (_property_, _where_)   else if (strcmp (key, _property_) == 0 && type == LIBHAL_PROPERTY_TYPE_STRLIST) _where_ = my_strvdup (libhal_psi_get_strlist (&it)) #define group__LibHalStorage.html#g8483f713433463e9778455fb6272e0bastrcat_len (dst, src, dstmaxlen) Typedefs
typedef 
structIconMappingEntry__s.htmlIconMappingEntry_s  group__LibHalStorage.html#g6193bf9e04e1a71906564f03c1885afeIconMappingEntry  typdef of structIconMappingEntry__s.htmlIconMappingEntry_s  Functions
LibHalStoragePolicy * 
group__LibHalStorage.html#g214d880a72d901c267fe4b85feb4eeb2libhal_storage_policy_new  () void 
group__LibHalStorage.html#g271e5d04b14943f52dd85e033b722727libhal_storage_policy_free  (LibHalStoragePolicy *policy) void 
group__LibHalStorage.html#ga5b46b9f3bccdcf69b0aaf1b349500a0libhal_storage_policy_set_icon_path  (LibHalStoragePolicy *policy, group__HAL.html#g3068b8b58b2b8937946a0d25eb66a42cLibHalStoragePolicyIcon  icon, const char *path) void 
group__LibHalStorage.html#g174719b8f0eb77ea807dcb46921aedaalibhal_storage_policy_set_icon_mapping  (LibHalStoragePolicy *policy, structLibHalStoragePolicyIconPair.htmlLibHalStoragePolicyIconPair  *pairs) const char * 
group__LibHalStorage.html#g9c47bdfd8876f0c84ad54de9a1239c22libhal_storage_policy_lookup_icon  (LibHalStoragePolicy *policy, group__HAL.html#g3068b8b58b2b8937946a0d25eb66a42cLibHalStoragePolicyIcon  icon) char * 
group__LibHalStorage.html#gb673afd1a15b908e1ab233f8bb70ad74libhal_volume_policy_compute_size_as_string  (LibHalVolume *volume) static void 
group__LibHalStorage.html#g88702b98616fd7ec939c58a63e7ed31efixup_string  (char *s) char * 
group__LibHalStorage.html#gea30e495d0d8e7375826204026922f2clibhal_drive_policy_compute_display_name  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) char * 
group__LibHalStorage.html#g8545578fd77639069d0ecaafeca35d1alibhal_volume_policy_compute_display_name  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) char * 
group__LibHalStorage.html#g7b9b96ba35ef724113fe615f596d8eeblibhal_drive_policy_compute_icon_name  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) char * 
group__LibHalStorage.html#g4da7a3db7d07faa628e9d9c2cefa7ed2libhal_volume_policy_compute_icon_name  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) dbus_bool_t group__LibHalStorage.html#g9ac448fe36fa66c6c836dbe128ddfe67libhal_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.  #g9ac448fe36fa66c6c836dbe128ddfe67 const char * 
group__LibHalStorage.html#gf14a532908c53c52b1aaf2bf56b3fbb4libhal_drive_get_dedicated_icon_drive  (LibHalDrive *drive) const char * 
group__LibHalStorage.html#g8cf9df6fa9713e906d20762ce50690bclibhal_drive_get_dedicated_icon_volume  (LibHalDrive *drive) void group__LibHalStorage.html#ga5d218d906157d304bfefe7d090cda6dlibhal_drive_free  (LibHalDrive *drive)  Free all resources used by a LibHalDrive object.  #ga5d218d906157d304bfefe7d090cda6d void group__LibHalStorage.html#gc8c776feb2a396a18364c44dd96472d3libhal_volume_free  (LibHalVolume *vol)  Free all resources used by a LibHalVolume object.  #gc8c776feb2a396a18364c44dd96472d3 static char ** 
group__LibHalStorage.html#g0ba0215a655063ad9dac2f3d05cffbbemy_strvdup  (char **strv) LibHalDrive * group__LibHalStorage.html#gf83a4e480064c0480c9ab4f68915b72dlibhal_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.  #gf83a4e480064c0480c9ab4f68915b72d const char * 
group__LibHalStorage.html#gc01b9487ebb2127b376a2848c840e92flibhal_volume_get_storage_device_udi  (LibHalVolume *volume) const char * 
group__LibHalStorage.html#g5b2e6f95be6a772fcc74f7e331d8a905libhal_drive_get_physical_device_udi  (LibHalDrive *drive) dbus_bool_t 
group__LibHalStorage.html#gc3fee583dd749ac7691b344146d7be69libhal_drive_requires_eject  (LibHalDrive *drive) LibHalVolume * group__LibHalStorage.html#gaa7d1f18c5d47948ff8d490b4d116a70libhal_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.  #gaa7d1f18c5d47948ff8d490b4d116a70 int group__LibHalStorage.html#g207118b64a5d75873a0bb0b61bf75cd3libhal_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.  #g207118b64a5d75873a0bb0b61bf75cd3 LibHalDrive * group__LibHalStorage.html#g55f3bd41e6dc27f6ffb5f650babcbd1clibhal_drive_from_device_file  (LibHalContext *hal_ctx, const char *device_file)  Get the drive object that either is (when given e.g.  #g55f3bd41e6dc27f6ffb5f650babcbd1c LibHalVolume * group__LibHalStorage.html#gdd2b244f1d6825a32e02a125edb791e4libhal_volume_from_device_file  (LibHalContext *hal_ctx, const char *device_file)  Get the volume object for a given device file.  #gdd2b244f1d6825a32e02a125edb791e4 dbus_uint64_t 
group__LibHalStorage.html#gfeee68b5d51bbd568165b655fb905d1blibhal_volume_get_size  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#g0c51ef311822ba975fc4af16c2171902libhal_drive_is_hotpluggable  (LibHalDrive *drive) dbus_bool_t 
group__LibHalStorage.html#gba1078e4f256422d65a0b60c009c3ccclibhal_drive_uses_removable_media  (LibHalDrive *drive) group__HAL.html#gc1b9fc9c26185fac10c3cf75e35fe72dLibHalDriveType  group__LibHalStorage.html#gc9ac6a1496f05b0d2ce2c4da7d94f7a3libhal_drive_get_type  (LibHalDrive *drive) group__HAL.html#gaf8aaabb8efb16605afb9e8b9fb99743LibHalDriveBus  group__LibHalStorage.html#gb4ca33e8b3b29c19cb566c6402afc089libhal_drive_get_bus  (LibHalDrive *drive) group__HAL.html#gec07c743cb20fdf3eace4003aab5b18bLibHalDriveCdromCaps  group__LibHalStorage.html#gc8a6d6901e24f28ebc11f43ca5f29d94libhal_drive_get_cdrom_caps  (LibHalDrive *drive) unsigned int 
group__LibHalStorage.html#gffd20c8fcaa0f8031d650873d9a90793libhal_drive_get_device_major  (LibHalDrive *drive) unsigned int 
group__LibHalStorage.html#gfc509863e6aa50e0512c5da27570de67libhal_drive_get_device_minor  (LibHalDrive *drive) const char * 
group__LibHalStorage.html#g01426c85c9e9ca8ffc6d66d15da43873libhal_drive_get_type_textual  (LibHalDrive *drive) const char * 
group__LibHalStorage.html#gb116b758ff126796f5da309264c312cclibhal_drive_get_device_file  (LibHalDrive *drive) const char * 
group__LibHalStorage.html#g946f92eff00aa27a70a2b10595c66e87libhal_drive_get_udi  (LibHalDrive *drive) const char * 
group__LibHalStorage.html#g02a2afb7b3d98e08f46c3ab4c34fd54blibhal_drive_get_serial  (LibHalDrive *drive) const char * 
group__LibHalStorage.html#g84ae98ddc0d9763935516674d98b04eelibhal_drive_get_firmware_version  (LibHalDrive *drive) const char * 
group__LibHalStorage.html#g23c9c853eae007ecf4983ff94aaa903alibhal_drive_get_model  (LibHalDrive *drive) const char * 
group__LibHalStorage.html#ge1f4ad7daad6072f2adc4c44bd7e4560libhal_drive_get_vendor  (LibHalDrive *drive) const char * 
group__LibHalStorage.html#gd297df8a5b25dfd9525cd7ba29ea00fdlibhal_volume_get_udi  (LibHalVolume *volume) const char * 
group__LibHalStorage.html#gd08e958c12ba6fd52171870f229d4190libhal_volume_get_device_file  (LibHalVolume *volume) unsigned int 
group__LibHalStorage.html#g57f0a345b2f1b80969e574b5600334d0libhal_volume_get_device_major  (LibHalVolume *volume) unsigned int 
group__LibHalStorage.html#g5625765bbd441d7f7ad5516c187e1a74libhal_volume_get_device_minor  (LibHalVolume *volume) const char * 
group__LibHalStorage.html#g6f1f4d36dd4d65ebb2f5a13d240abe35libhal_volume_get_fstype  (LibHalVolume *volume) const char * 
group__LibHalStorage.html#gdeea06ceb5343f2715a10761f1aa6867libhal_volume_get_fsversion  (LibHalVolume *volume) group__HAL.html#g80828186e4c68db7f635acaaa06d2e2cLibHalVolumeUsage  group__LibHalStorage.html#g3f85d9dc65220d29ff8aa712db8df3dflibhal_volume_get_fsusage  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#g4d84c88ea80dfda759543721e18e3424libhal_volume_is_mounted  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#g9d1719f7e07a0ffaa52f18572901f097libhal_volume_is_partition  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#g347bc88ea73ec8c6a7a4d23cc2d1df15libhal_volume_is_disc  (LibHalVolume *volume) unsigned int 
group__LibHalStorage.html#g65ab5342020d40ee9b6fb8f7beba98c3libhal_volume_get_partition_number  (LibHalVolume *volume) const char * 
group__LibHalStorage.html#gd709994a7022ee9bf33d4d63052927f3libhal_volume_get_label  (LibHalVolume *volume) const char * 
group__LibHalStorage.html#g461304416d6c740d312a2c01ff222819libhal_volume_get_mount_point  (LibHalVolume *volume) const char * 
group__LibHalStorage.html#gdaef09a798bb037969a2a2bf7be22628libhal_volume_get_uuid  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#g324a5328ab282379b2bd37efa1e2dc72libhal_volume_disc_has_audio  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#g92e2930eb8ce3a5acfeeda84bcab6213libhal_volume_disc_has_data  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#g8d3119f3061da5e976b1f3ee2b9f36fblibhal_volume_disc_is_blank  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#gf2b68421b5e59a48d6c44cc965e01f45libhal_volume_disc_is_rewritable  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#g5e6198d8bc689a0d747ce0258a8a63felibhal_volume_disc_is_appendable  (LibHalVolume *volume) group__HAL.html#gb031eac0eeeab77c12d4d725f459cf21LibHalVolumeDiscType  group__LibHalStorage.html#g78df0311928e8bb279d2bf32ddebd310libhal_volume_get_disc_type  (LibHalVolume *volume) dbus_bool_t 
group__LibHalStorage.html#gc4d3d6a2b64e868f9220cbdb73b2bef5libhal_volume_should_ignore  (LibHalVolume *volume) char ** 
group__LibHalStorage.html#g238d3fe34806b702077e60a687cf8101libhal_drive_find_all_volumes  (LibHalContext *hal_ctx, LibHalDrive *drive, int *num_volumes) char * 
group__LibHalStorage.html#ga38283f5b88b3a922242c17c6fc04e78libhal_drive_policy_default_get_mount_root  (LibHalContext *hal_ctx) dbus_bool_t 
group__LibHalStorage.html#g218be8e8f59a32e6e0a3476af316b636libhal_drive_policy_default_use_managed_keyword  (LibHalContext *hal_ctx) char * 
group__LibHalStorage.html#gcc9219597118effe0f1124d3eb378b43libhal_drive_policy_default_get_managed_keyword_primary  (LibHalContext *hal_ctx) char * 
group__LibHalStorage.html#ge6a4c3837ea5c2e2be07246dbffbe324libhal_drive_policy_default_get_managed_keyword_secondary  (LibHalContext *hal_ctx) dbus_bool_t 
group__LibHalStorage.html#g3e156752cfeccdc6eee53284f376bdf6libhal_drive_policy_is_mountable  (LibHalDrive *drive, LibHalStoragePolicy *policy) const char * 
group__LibHalStorage.html#g9f741aca45bbc9d8cd41e67e3d2d3de8libhal_drive_policy_get_desired_mount_point  (LibHalDrive *drive, LibHalStoragePolicy *policy) static void 
group__LibHalStorage.html#g9e4346fb342f1073915f1b8503aa6ab5mopts_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) const char * 
group__LibHalStorage.html#g0fbc304174274c2bbba46543aedde2a3libhal_drive_policy_get_mount_options  (LibHalDrive *drive, LibHalStoragePolicy *policy) const char * 
group__LibHalStorage.html#g8a9168258d4943b76971dffd24674636libhal_drive_policy_get_mount_fs  (LibHalDrive *drive, LibHalStoragePolicy *policy) dbus_bool_t 
group__LibHalStorage.html#g3732ed16b44beea29c0fd718f8064f8elibhal_volume_policy_is_mountable  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) const char * 
group__LibHalStorage.html#gb7a90150d7603159b5d49beacb185c32libhal_volume_policy_get_desired_mount_point  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) const char * 
group__LibHalStorage.html#gb567869bf0ceaeee9d22453022dcf19alibhal_volume_policy_get_mount_options  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) const char * 
group__LibHalStorage.html#g3bda58df43cb0b288eb7c3d24586379flibhal_volume_policy_get_mount_fs  (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) dbus_bool_t 
group__LibHalStorage.html#g3d36c9275a0314d6564cd4f84410dc99libhal_drive_no_partitions_hint  (LibHalDrive *drive) Detailed Description
HAL Storage and Volumes library. 
Define Documentation
  
    
      
        
          
#define strcat_len                    
(           
dst,                   
          
          
src,                   
          
          
dstmaxlen           
                    
 )           
        
      
    
  
  
    
       
    
    
Value: do {    \
    dst[dstmaxlen - 1] = 
'\0'; \
    strncat (dst, src, dstmaxlen - strlen (dst) - 1); \
} 
while(0)
Definition at line 
libhal-storage_8c-source.html#l015811581  of file libhal-storage_8c-source.htmllibhal-storage.c .
Referenced by 
libhal-storage_8c-source.html#l01588mopts_collect() .      
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:52:17 2006 for HAL by 
http://www.doxygen.org/index.htmldoxygen  1.4.6 