Hardware authentication for Linux using ordinary USB Flash Drives.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

374 lines
20 KiB

13 years ago
  1. /***************************************************************************
  2. * CVSID: $Id$
  3. *
  4. * libhal-storage.h : HAL convenience library for storage devices and volumes
  5. *
  6. * Copyright (C) 2004 Red Hat, Inc.
  7. *
  8. * Author: David Zeuthen <davidz@redhat.com>
  9. *
  10. * Licensed under the Academic Free License version 2.1
  11. *
  12. * This program is free software; you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License as published by
  14. * the Free Software Foundation; either version 2 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program; if not, write to the Free Software
  24. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  25. *
  26. **************************************************************************/
  27. #ifndef LIBHAL_STORAGE_H
  28. #define LIBHAL_STORAGE_H
  29. #include <libhal.h>
  30. #if defined(__cplusplus)
  31. extern "C" {
  32. #if 0
  33. } /* shut up emacs indenting */
  34. #endif
  35. #endif
  36. struct LibHalDrive_s;
  37. typedef struct LibHalDrive_s LibHalDrive;
  38. struct LibHalVolume_s;
  39. typedef struct LibHalVolume_s LibHalVolume;
  40. struct LibHalStoragePolicy_s;
  41. typedef struct LibHalStoragePolicy_s LibHalStoragePolicy;
  42. typedef enum {
  43. LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK = 0x10000,
  44. LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_IDE = 0x10001,
  45. LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_SCSI = 0x10002,
  46. LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_USB = 0x10003,
  47. LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_IEEE1394 = 0x10004,
  48. LIBHAL_STORAGE_ICON_DRIVE_DISK = 0x10100,
  49. LIBHAL_STORAGE_ICON_DRIVE_DISK_IDE = 0x10101,
  50. LIBHAL_STORAGE_ICON_DRIVE_DISK_SCSI = 0x10102,
  51. LIBHAL_STORAGE_ICON_DRIVE_DISK_USB = 0x10103,
  52. LIBHAL_STORAGE_ICON_DRIVE_DISK_IEEE1394 = 0x10104,
  53. LIBHAL_STORAGE_ICON_DRIVE_CDROM = 0x10200,
  54. LIBHAL_STORAGE_ICON_DRIVE_CDROM_IDE = 0x10201,
  55. LIBHAL_STORAGE_ICON_DRIVE_CDROM_SCSI = 0x10202,
  56. LIBHAL_STORAGE_ICON_DRIVE_CDROM_USB = 0x10203,
  57. LIBHAL_STORAGE_ICON_DRIVE_CDROM_IEEE1394 = 0x10204,
  58. LIBHAL_STORAGE_ICON_DRIVE_FLOPPY = 0x10300,
  59. LIBHAL_STORAGE_ICON_DRIVE_FLOPPY_IDE = 0x10301,
  60. LIBHAL_STORAGE_ICON_DRIVE_FLOPPY_SCSI = 0x10302,
  61. LIBHAL_STORAGE_ICON_DRIVE_FLOPPY_USB = 0x10303,
  62. LIBHAL_STORAGE_ICON_DRIVE_FLOPPY_IEEE1394 = 0x10304,
  63. LIBHAL_STORAGE_ICON_DRIVE_TAPE = 0x10400,
  64. LIBHAL_STORAGE_ICON_DRIVE_COMPACT_FLASH = 0x10500,
  65. LIBHAL_STORAGE_ICON_DRIVE_MEMORY_STICK = 0x10600,
  66. LIBHAL_STORAGE_ICON_DRIVE_SMART_MEDIA = 0x10700,
  67. LIBHAL_STORAGE_ICON_DRIVE_SD_MMC = 0x10800,
  68. LIBHAL_STORAGE_ICON_DRIVE_CAMERA = 0x10900,
  69. LIBHAL_STORAGE_ICON_DRIVE_PORTABLE_AUDIO_PLAYER = 0x10a00,
  70. LIBHAL_STORAGE_ICON_DRIVE_ZIP = 0x10b00,
  71. LIBHAL_STORAGE_ICON_DRIVE_JAZ = 0x10c00,
  72. LIBHAL_STORAGE_ICON_DRIVE_FLASH_KEY = 0x10d00,
  73. LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK = 0x20000,
  74. LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK_IDE = 0x20001,
  75. LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK_SCSI = 0x20002,
  76. LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK_USB = 0x20003,
  77. LIBHAL_STORAGE_ICON_VOLUME_REMOVABLE_DISK_IEEE1394 = 0x20004,
  78. LIBHAL_STORAGE_ICON_VOLUME_DISK = 0x20100,
  79. LIBHAL_STORAGE_ICON_VOLUME_DISK_IDE = 0x20101,
  80. LIBHAL_STORAGE_ICON_VOLUME_DISK_SCSI = 0x20102,
  81. LIBHAL_STORAGE_ICON_VOLUME_DISK_USB = 0x20103,
  82. LIBHAL_STORAGE_ICON_VOLUME_DISK_IEEE1394 = 0x20104,
  83. LIBHAL_STORAGE_ICON_VOLUME_CDROM = 0x20200,
  84. LIBHAL_STORAGE_ICON_VOLUME_CDROM_IDE = 0x20201,
  85. LIBHAL_STORAGE_ICON_VOLUME_CDROM_SCSI = 0x20202,
  86. LIBHAL_STORAGE_ICON_VOLUME_CDROM_USB = 0x20203,
  87. LIBHAL_STORAGE_ICON_VOLUME_CDROM_IEEE1394 = 0x20204,
  88. LIBHAL_STORAGE_ICON_VOLUME_FLOPPY = 0x20300,
  89. LIBHAL_STORAGE_ICON_VOLUME_FLOPPY_IDE = 0x20301,
  90. LIBHAL_STORAGE_ICON_VOLUME_FLOPPY_SCSI = 0x20302,
  91. LIBHAL_STORAGE_ICON_VOLUME_FLOPPY_USB = 0x20303,
  92. LIBHAL_STORAGE_ICON_VOLUME_FLOPPY_IEEE1394 = 0x20304,
  93. LIBHAL_STORAGE_ICON_VOLUME_TAPE = 0x20400,
  94. LIBHAL_STORAGE_ICON_VOLUME_COMPACT_FLASH = 0x20500,
  95. LIBHAL_STORAGE_ICON_VOLUME_MEMORY_STICK = 0x20600,
  96. LIBHAL_STORAGE_ICON_VOLUME_SMART_MEDIA = 0x20700,
  97. LIBHAL_STORAGE_ICON_VOLUME_SD_MMC = 0x20800,
  98. LIBHAL_STORAGE_ICON_VOLUME_CAMERA = 0x20900,
  99. LIBHAL_STORAGE_ICON_VOLUME_PORTABLE_AUDIO_PLAYER = 0x20a00,
  100. LIBHAL_STORAGE_ICON_VOLUME_ZIP = 0x20b00,
  101. LIBHAL_STORAGE_ICON_VOLUME_JAZ = 0x20c00,
  102. LIBHAL_STORAGE_ICON_VOLUME_FLASH_KEY = 0x20d00,
  103. LIBHAL_STORAGE_ICON_DISC_CDROM = 0x30000,
  104. LIBHAL_STORAGE_ICON_DISC_CDR = 0x30001,
  105. LIBHAL_STORAGE_ICON_DISC_CDRW = 0x30002,
  106. LIBHAL_STORAGE_ICON_DISC_DVDROM = 0x30003,
  107. LIBHAL_STORAGE_ICON_DISC_DVDRAM = 0x30004,
  108. LIBHAL_STORAGE_ICON_DISC_DVDR = 0x30005,
  109. LIBHAL_STORAGE_ICON_DISC_DVDRW = 0x30006,
  110. LIBHAL_STORAGE_ICON_DISC_DVDPLUSR = 0x30007,
  111. LIBHAL_STORAGE_ICON_DISC_DVDPLUSRW = 0x30008,
  112. LIBHAL_STORAGE_ICON_DISC_DVDPLUSRWDL = 0x30009,
  113. LIBHAL_STORAGE_ICON_DISC_BDROM = 0x3000a,
  114. LIBHAL_STORAGE_ICON_DISC_BDR = 0x3000b,
  115. LIBHAL_STORAGE_ICON_DISC_BDRE = 0x3000c,
  116. LIBHAL_STORAGE_ICON_DISC_HDDVDROM = 0x3000d,
  117. LIBHAL_STORAGE_ICON_DISC_HDDVDR = 0x3000e,
  118. LIBHAL_STORAGE_ICON_DISC_HDDVDRW = 0x3000f,
  119. LIBHAL_STORAGE_ICON_DISC_MRW = 0x30010,
  120. LIBHAL_STORAGE_ICON_DISC_MRWW = 0x30011,
  121. LIBHAL_STORAGE_ICON_DISC_MO = 0x30012
  122. } LibHalStoragePolicyIcon;
  123. typedef struct {
  124. LibHalStoragePolicyIcon icon;
  125. const char *icon_path;
  126. } LibHalStoragePolicyIconPair;
  127. LibHalStoragePolicy *libhal_storage_policy_new (void) LIBHAL_DEPRECATED;
  128. void libhal_storage_policy_free (LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  129. void libhal_storage_policy_set_icon_path (LibHalStoragePolicy *policy,
  130. LibHalStoragePolicyIcon icon,
  131. const char *path) LIBHAL_DEPRECATED;
  132. void libhal_storage_policy_set_icon_mapping (LibHalStoragePolicy *policy,
  133. LibHalStoragePolicyIconPair *pairs) LIBHAL_DEPRECATED;
  134. const char *libhal_storage_policy_lookup_icon (LibHalStoragePolicy *policy,
  135. LibHalStoragePolicyIcon icon) LIBHAL_DEPRECATED;
  136. typedef enum {
  137. LIBHAL_DRIVE_BUS_UNKNOWN = 0x00,
  138. LIBHAL_DRIVE_BUS_IDE = 0x01,
  139. LIBHAL_DRIVE_BUS_SCSI = 0x02,
  140. LIBHAL_DRIVE_BUS_USB = 0x03,
  141. LIBHAL_DRIVE_BUS_IEEE1394 = 0x04,
  142. LIBHAL_DRIVE_BUS_CCW = 0x05
  143. } LibHalDriveBus;
  144. typedef enum {
  145. LIBHAL_DRIVE_TYPE_REMOVABLE_DISK = 0x00,
  146. LIBHAL_DRIVE_TYPE_DISK = 0x01,
  147. LIBHAL_DRIVE_TYPE_CDROM = 0x02,
  148. LIBHAL_DRIVE_TYPE_FLOPPY = 0x03,
  149. LIBHAL_DRIVE_TYPE_TAPE = 0x04,
  150. LIBHAL_DRIVE_TYPE_COMPACT_FLASH = 0x05,
  151. LIBHAL_DRIVE_TYPE_MEMORY_STICK = 0x06,
  152. LIBHAL_DRIVE_TYPE_SMART_MEDIA = 0x07,
  153. LIBHAL_DRIVE_TYPE_SD_MMC = 0x08,
  154. LIBHAL_DRIVE_TYPE_CAMERA = 0x09,
  155. LIBHAL_DRIVE_TYPE_PORTABLE_AUDIO_PLAYER = 0x0a,
  156. LIBHAL_DRIVE_TYPE_ZIP = 0x0b,
  157. LIBHAL_DRIVE_TYPE_JAZ = 0x0c,
  158. LIBHAL_DRIVE_TYPE_FLASHKEY = 0x0d,
  159. LIBHAL_DRIVE_TYPE_MO = 0x0e
  160. } LibHalDriveType;
  161. typedef enum {
  162. LIBHAL_DRIVE_CDROM_CAPS_CDROM = 0x00001,
  163. LIBHAL_DRIVE_CDROM_CAPS_CDR = 0x00002,
  164. LIBHAL_DRIVE_CDROM_CAPS_CDRW = 0x00004,
  165. LIBHAL_DRIVE_CDROM_CAPS_DVDRAM = 0x00008,
  166. LIBHAL_DRIVE_CDROM_CAPS_DVDROM = 0x00010,
  167. LIBHAL_DRIVE_CDROM_CAPS_DVDR = 0x00020,
  168. LIBHAL_DRIVE_CDROM_CAPS_DVDRW = 0x00040,
  169. LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSR = 0x00080,
  170. LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRW = 0x00100,
  171. LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRDL = 0x00200,
  172. LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRWDL = 0x00400,
  173. LIBHAL_DRIVE_CDROM_CAPS_BDROM = 0x00800,
  174. LIBHAL_DRIVE_CDROM_CAPS_BDR = 0x01000,
  175. LIBHAL_DRIVE_CDROM_CAPS_BDRE = 0x02000,
  176. LIBHAL_DRIVE_CDROM_CAPS_HDDVDROM = 0x04000,
  177. LIBHAL_DRIVE_CDROM_CAPS_HDDVDR = 0x08000,
  178. LIBHAL_DRIVE_CDROM_CAPS_HDDVDRW = 0x10000,
  179. LIBHAL_DRIVE_CDROM_CAPS_MRW = 0x20000,
  180. LIBHAL_DRIVE_CDROM_CAPS_MRWW = 0x40000,
  181. LIBHAL_DRIVE_CDROM_CAPS_MO = 0x80000
  182. } LibHalDriveCdromCaps;
  183. LibHalDrive *libhal_drive_from_udi (LibHalContext *hal_ctx,
  184. const char *udi);
  185. LibHalDrive *libhal_drive_from_device_file (LibHalContext *hal_ctx,
  186. const char *device_file);
  187. void libhal_drive_free (LibHalDrive *drive);
  188. dbus_bool_t libhal_drive_is_hotpluggable (LibHalDrive *drive);
  189. dbus_bool_t libhal_drive_uses_removable_media (LibHalDrive *drive);
  190. dbus_bool_t libhal_drive_is_media_detected (LibHalDrive *drive);
  191. dbus_bool_t libhal_drive_is_media_detection_automatic (LibHalDrive *drive);
  192. dbus_uint64_t libhal_drive_get_size (LibHalDrive *drive);
  193. dbus_uint64_t libhal_drive_get_media_size (LibHalDrive *drive);
  194. const char *libhal_drive_get_partition_scheme (LibHalDrive *drive);
  195. dbus_bool_t libhal_drive_no_partitions_hint (LibHalDrive *drive);
  196. dbus_bool_t libhal_drive_requires_eject (LibHalDrive *drive);
  197. LibHalDriveType libhal_drive_get_type (LibHalDrive *drive);
  198. LibHalDriveBus libhal_drive_get_bus (LibHalDrive *drive);
  199. LibHalDriveCdromCaps libhal_drive_get_cdrom_caps (LibHalDrive *drive);
  200. unsigned int libhal_drive_get_device_major (LibHalDrive *drive);
  201. unsigned int libhal_drive_get_device_minor (LibHalDrive *drive);
  202. const char *libhal_drive_get_type_textual (LibHalDrive *drive);
  203. const char *libhal_drive_get_device_file (LibHalDrive *drive);
  204. const char *libhal_drive_get_udi (LibHalDrive *drive);
  205. const char *libhal_drive_get_serial (LibHalDrive *drive);
  206. const char *libhal_drive_get_firmware_version (LibHalDrive *drive);
  207. const char *libhal_drive_get_model (LibHalDrive *drive);
  208. const char *libhal_drive_get_vendor (LibHalDrive *drive);
  209. const char *libhal_drive_get_physical_device_udi (LibHalDrive *drive);
  210. const char *libhal_drive_get_dedicated_icon_drive (LibHalDrive *drive);
  211. const char *libhal_drive_get_dedicated_icon_volume (LibHalDrive *drive);
  212. char *libhal_drive_policy_compute_display_name (LibHalDrive *drive,
  213. LibHalVolume *volume,
  214. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  215. char *libhal_drive_policy_compute_icon_name (LibHalDrive *drive,
  216. LibHalVolume *volume,
  217. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  218. dbus_bool_t libhal_drive_policy_is_mountable (LibHalDrive *drive,
  219. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  220. const char *libhal_drive_policy_get_desired_mount_point (LibHalDrive *drive,
  221. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  222. const char *libhal_drive_policy_get_mount_options (LibHalDrive *drive,
  223. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  224. const char *libhal_drive_policy_get_mount_fs (LibHalDrive *drive,
  225. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  226. char **libhal_drive_find_all_volumes (LibHalContext *hal_ctx,
  227. LibHalDrive *drive,
  228. int *num_volumes);
  229. char *libhal_drive_policy_default_get_mount_root (LibHalContext *hal_ctx) LIBHAL_DEPRECATED;
  230. dbus_bool_t libhal_drive_policy_default_use_managed_keyword (LibHalContext *hal_ctx) LIBHAL_DEPRECATED;
  231. char *libhal_drive_policy_default_get_managed_keyword_primary (LibHalContext *hal_ctx) LIBHAL_DEPRECATED;
  232. char *libhal_drive_policy_default_get_managed_keyword_secondary (LibHalContext *hal_ctx) LIBHAL_DEPRECATED;
  233. typedef enum {
  234. LIBHAL_VOLUME_USAGE_MOUNTABLE_FILESYSTEM,
  235. LIBHAL_VOLUME_USAGE_PARTITION_TABLE,
  236. LIBHAL_VOLUME_USAGE_RAID_MEMBER,
  237. LIBHAL_VOLUME_USAGE_CRYPTO,
  238. LIBHAL_VOLUME_USAGE_UNKNOWN,
  239. LIBHAL_VOLUME_USAGE_OTHER
  240. } LibHalVolumeUsage;
  241. typedef enum {
  242. LIBHAL_VOLUME_DISC_TYPE_CDROM = 0x00,
  243. LIBHAL_VOLUME_DISC_TYPE_CDR = 0x01,
  244. LIBHAL_VOLUME_DISC_TYPE_CDRW = 0x02,
  245. LIBHAL_VOLUME_DISC_TYPE_DVDROM = 0x03,
  246. LIBHAL_VOLUME_DISC_TYPE_DVDRAM = 0x04,
  247. LIBHAL_VOLUME_DISC_TYPE_DVDR = 0x05,
  248. LIBHAL_VOLUME_DISC_TYPE_DVDRW = 0x06,
  249. LIBHAL_VOLUME_DISC_TYPE_DVDPLUSR = 0x07,
  250. LIBHAL_VOLUME_DISC_TYPE_DVDPLUSRW = 0x08,
  251. LIBHAL_VOLUME_DISC_TYPE_DVDPLUSR_DL = 0x09,
  252. LIBHAL_VOLUME_DISC_TYPE_BDROM = 0x0a,
  253. LIBHAL_VOLUME_DISC_TYPE_BDR = 0x0b,
  254. LIBHAL_VOLUME_DISC_TYPE_BDRE = 0x0c,
  255. LIBHAL_VOLUME_DISC_TYPE_HDDVDROM = 0x0d,
  256. LIBHAL_VOLUME_DISC_TYPE_HDDVDR = 0x0e,
  257. LIBHAL_VOLUME_DISC_TYPE_HDDVDRW = 0x0f,
  258. LIBHAL_VOLUME_DISC_TYPE_MO = 0x10,
  259. LIBHAL_VOLUME_DISC_TYPE_DVDR_DL = 0x11
  260. } LibHalVolumeDiscType;
  261. LibHalVolume *libhal_volume_from_udi (LibHalContext *hal_ctx,
  262. const char *udi);
  263. LibHalVolume *libhal_volume_from_device_file (LibHalContext *hal_ctx,
  264. const char *device_file);
  265. LibHalVolume *libhal_volume_from_mount_point (LibHalContext *hal_ctx,
  266. const char *mount_point);
  267. void libhal_volume_free (LibHalVolume *volume);
  268. dbus_uint64_t libhal_volume_get_size (LibHalVolume *volume);
  269. dbus_uint64_t libhal_volume_get_disc_capacity (LibHalVolume *volume);
  270. const char *libhal_volume_get_udi (LibHalVolume *volume);
  271. const char *libhal_volume_get_device_file (LibHalVolume *volume);
  272. unsigned int libhal_volume_get_device_major (LibHalVolume *volume);
  273. unsigned int libhal_volume_get_device_minor (LibHalVolume *volume);
  274. const char *libhal_volume_get_fstype (LibHalVolume *volume);
  275. const char *libhal_volume_get_fsversion (LibHalVolume *volume);
  276. LibHalVolumeUsage libhal_volume_get_fsusage (LibHalVolume *volume);
  277. dbus_bool_t libhal_volume_is_mounted (LibHalVolume *volume);
  278. dbus_bool_t libhal_volume_is_mounted_read_only (LibHalVolume *volume);
  279. dbus_bool_t libhal_volume_is_partition (LibHalVolume *volume);
  280. dbus_bool_t libhal_volume_is_disc (LibHalVolume *volume);
  281. const char *libhal_volume_get_partition_scheme (LibHalVolume *volume);
  282. const char *libhal_volume_get_partition_type (LibHalVolume *volume);
  283. const char *libhal_volume_get_partition_label (LibHalVolume *volume);
  284. const char *libhal_volume_get_partition_uuid (LibHalVolume *volume);
  285. const char **libhal_volume_get_partition_flags (LibHalVolume *volume);
  286. unsigned int libhal_volume_get_partition_number (LibHalVolume *volume);
  287. dbus_uint64_t libhal_volume_get_partition_start_offset (LibHalVolume *volume);
  288. dbus_uint64_t libhal_volume_get_partition_media_size (LibHalVolume *volume);
  289. const char *libhal_volume_get_label (LibHalVolume *volume);
  290. const char *libhal_volume_get_mount_point (LibHalVolume *volume);
  291. const char *libhal_volume_get_uuid (LibHalVolume *volume);
  292. const char *libhal_volume_get_storage_device_udi (LibHalVolume *volume);
  293. const char *libhal_volume_crypto_get_backing_volume_udi (LibHalVolume *volume);
  294. char *libhal_volume_crypto_get_clear_volume_udi (LibHalContext *hal_ctx, LibHalVolume *volume);
  295. dbus_bool_t libhal_volume_disc_has_audio (LibHalVolume *volume);
  296. dbus_bool_t libhal_volume_disc_has_data (LibHalVolume *volume);
  297. dbus_bool_t libhal_volume_disc_is_blank (LibHalVolume *volume);
  298. dbus_bool_t libhal_volume_disc_is_rewritable (LibHalVolume *volume);
  299. dbus_bool_t libhal_volume_disc_is_appendable (LibHalVolume *volume);
  300. LibHalVolumeDiscType libhal_volume_get_disc_type (LibHalVolume *volume);
  301. int libhal_volume_get_msdos_part_table_type (LibHalVolume *volume) LIBHAL_DEPRECATED;
  302. dbus_uint64_t libhal_volume_get_msdos_part_table_start (LibHalVolume *volume) LIBHAL_DEPRECATED;
  303. dbus_uint64_t libhal_volume_get_msdos_part_table_size (LibHalVolume *volume) LIBHAL_DEPRECATED;
  304. dbus_bool_t libhal_volume_should_ignore (LibHalVolume *volume);
  305. char *libhal_volume_policy_compute_size_as_string (LibHalVolume *volume) LIBHAL_DEPRECATED;
  306. char *libhal_volume_policy_compute_display_name (LibHalDrive *drive,
  307. LibHalVolume *volume,
  308. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  309. char *libhal_volume_policy_compute_icon_name (LibHalDrive *drive,
  310. LibHalVolume *volume,
  311. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  312. dbus_bool_t libhal_volume_policy_should_be_visible (LibHalDrive *drive,
  313. LibHalVolume *volume,
  314. LibHalStoragePolicy *policy,
  315. const char *target_mount_point) LIBHAL_DEPRECATED;
  316. dbus_bool_t libhal_volume_policy_is_mountable (LibHalDrive *drive,
  317. LibHalVolume *volume,
  318. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  319. const char *libhal_volume_policy_get_desired_mount_point (LibHalDrive *drive,
  320. LibHalVolume *volume,
  321. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  322. const char *libhal_volume_policy_get_mount_options (LibHalDrive *drive,
  323. LibHalVolume *volume,
  324. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  325. const char *libhal_volume_policy_get_mount_fs (LibHalDrive *drive,
  326. LibHalVolume *volume,
  327. LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
  328. #if defined(__cplusplus)
  329. }
  330. #endif
  331. #endif /* LIBHAL_STORAGE_H */