--- hal-0.5.10.orig/doc/api/libhal-storage/xml/libhal-storage-doc.bottom +++ hal-0.5.10/doc/api/libhal-storage/xml/libhal-storage-doc.bottom @@ -0,0 +1 @@ + --- hal-0.5.10.orig/doc/api/libhal-storage/xml/tree_index.sgml +++ hal-0.5.10/doc/api/libhal-storage/xml/tree_index.sgml @@ -0,0 +1,7 @@ + + +]> + + --- hal-0.5.10.orig/doc/api/libhal-storage/xml/object_index.sgml +++ hal-0.5.10/doc/api/libhal-storage/xml/object_index.sgml @@ -0,0 +1,8 @@ + + + + + + + + --- hal-0.5.10.orig/doc/api/libhal-storage/html/license.html +++ hal-0.5.10/doc/api/libhal-storage/html/license.html @@ -3,7 +3,7 @@ Appendix A. License - + @@ -41,7 +41,7 @@

You may obtain a copy of the GNU General Public License from the Free Software Foundation by - visiting their Web + visiting their Web site or by writing to:

--- hal-0.5.10.orig/doc/api/libhal-storage/html/ix01.html +++ hal-0.5.10/doc/api/libhal-storage/html/ix01.html @@ -3,7 +3,7 @@ Index - + @@ -24,155 +24,155 @@

-Index

+Index

L

-
LibHalDrive, LibHalDrive +
LibHalDrive, LibHalDrive
-
LibHalDrive_s, struct LibHalDrive_s +
LibHalDrive_s, struct LibHalDrive_s
-
LibHalStoragePolicy, LibHalStoragePolicy +
LibHalStoragePolicy, LibHalStoragePolicy
-
LibHalStoragePolicyIcon, enum LibHalStoragePolicyIcon +
LibHalStoragePolicyIcon, enum LibHalStoragePolicyIcon
-
LibHalStoragePolicyIconPair, LibHalStoragePolicyIconPair +
LibHalStoragePolicyIconPair, LibHalStoragePolicyIconPair
-
LibHalStoragePolicy_s, struct LibHalStoragePolicy_s +
LibHalStoragePolicy_s, struct LibHalStoragePolicy_s
-
LibHalVolume, LibHalVolume +
LibHalVolume, LibHalVolume
-
LibHalVolume_s, struct LibHalVolume_s +
LibHalVolume_s, struct LibHalVolume_s
-
libhal_drive_free, libhal_drive_free () +
libhal_drive_free, libhal_drive_free ()
-
libhal_drive_from_device_file, libhal_drive_from_device_file () +
libhal_drive_from_device_file, libhal_drive_from_device_file ()
-
libhal_drive_get_bus, libhal_drive_get_bus () +
libhal_drive_get_bus, libhal_drive_get_bus ()
-
libhal_drive_get_cdrom_caps, libhal_drive_get_cdrom_caps () +
libhal_drive_get_cdrom_caps, libhal_drive_get_cdrom_caps ()
-
libhal_drive_get_dedicated_icon_drive, libhal_drive_get_dedicated_icon_drive () +
libhal_drive_get_dedicated_icon_drive, libhal_drive_get_dedicated_icon_drive ()
-
libhal_drive_get_dedicated_icon_volume, libhal_drive_get_dedicated_icon_volume () +
libhal_drive_get_dedicated_icon_volume, libhal_drive_get_dedicated_icon_volume ()
-
libhal_drive_get_device_file, libhal_drive_get_device_file () +
libhal_drive_get_device_file, libhal_drive_get_device_file ()
-
libhal_drive_get_device_major, libhal_drive_get_device_major () +
libhal_drive_get_device_major, libhal_drive_get_device_major ()
-
libhal_drive_get_device_minor, libhal_drive_get_device_minor () +
libhal_drive_get_device_minor, libhal_drive_get_device_minor ()
-
libhal_drive_get_firmware_version, libhal_drive_get_firmware_version () +
libhal_drive_get_firmware_version, libhal_drive_get_firmware_version ()
-
libhal_drive_get_media_size, libhal_drive_get_media_size () +
libhal_drive_get_media_size, libhal_drive_get_media_size ()
-
libhal_drive_get_model, libhal_drive_get_model () +
libhal_drive_get_model, libhal_drive_get_model ()
-
libhal_drive_get_partition_scheme, libhal_drive_get_partition_scheme () +
libhal_drive_get_partition_scheme, libhal_drive_get_partition_scheme ()
-
libhal_drive_get_physical_device_udi, libhal_drive_get_physical_device_udi () +
libhal_drive_get_physical_device_udi, libhal_drive_get_physical_device_udi ()
-
libhal_drive_get_serial, libhal_drive_get_serial () +
libhal_drive_get_serial, libhal_drive_get_serial ()
-
libhal_drive_get_size, libhal_drive_get_size () +
libhal_drive_get_size, libhal_drive_get_size ()
-
libhal_drive_get_type, libhal_drive_get_type () +
libhal_drive_get_type, libhal_drive_get_type ()
-
libhal_drive_get_type_textual, libhal_drive_get_type_textual () +
libhal_drive_get_type_textual, libhal_drive_get_type_textual ()
-
libhal_drive_get_udi, libhal_drive_get_udi () +
libhal_drive_get_udi, libhal_drive_get_udi ()
-
libhal_drive_get_vendor, libhal_drive_get_vendor () +
libhal_drive_get_vendor, libhal_drive_get_vendor ()
-
libhal_drive_is_hotpluggable, libhal_drive_is_hotpluggable () +
libhal_drive_is_hotpluggable, libhal_drive_is_hotpluggable ()
-
libhal_drive_is_media_detected, libhal_drive_is_media_detected () +
libhal_drive_is_media_detected, libhal_drive_is_media_detected ()
-
libhal_drive_no_partitions_hint, libhal_drive_no_partitions_hint () +
libhal_drive_no_partitions_hint, libhal_drive_no_partitions_hint ()
-
libhal_drive_policy_compute_display_name, libhal_drive_policy_compute_display_name () +
libhal_drive_policy_compute_display_name, libhal_drive_policy_compute_display_name ()
-
libhal_drive_policy_default_get_mount_root, libhal_drive_policy_default_get_mount_root () +
libhal_drive_policy_default_get_mount_root, libhal_drive_policy_default_get_mount_root ()
-
libhal_drive_requires_eject, libhal_drive_requires_eject () +
libhal_drive_requires_eject, libhal_drive_requires_eject ()
-
libhal_drive_uses_removable_media, libhal_drive_uses_removable_media () +
libhal_drive_uses_removable_media, libhal_drive_uses_removable_media ()
-
libhal_storage_policy_new, libhal_storage_policy_new () +
libhal_storage_policy_new, libhal_storage_policy_new ()
-
libhal_volume_crypto_get_backing_volume_udi, libhal_volume_crypto_get_backing_volume_udi () +
libhal_volume_crypto_get_backing_volume_udi, libhal_volume_crypto_get_backing_volume_udi ()
-
libhal_volume_crypto_get_clear_volume_udi, libhal_volume_crypto_get_clear_volume_udi () +
libhal_volume_crypto_get_clear_volume_udi, libhal_volume_crypto_get_clear_volume_udi ()
-
libhal_volume_disc_has_audio, libhal_volume_disc_has_audio () +
libhal_volume_disc_has_audio, libhal_volume_disc_has_audio ()
-
libhal_volume_disc_has_data, libhal_volume_disc_has_data () +
libhal_volume_disc_has_data, libhal_volume_disc_has_data ()
-
libhal_volume_disc_is_appendable, libhal_volume_disc_is_appendable () +
libhal_volume_disc_is_appendable, libhal_volume_disc_is_appendable ()
-
libhal_volume_disc_is_blank, libhal_volume_disc_is_blank () +
libhal_volume_disc_is_blank, libhal_volume_disc_is_blank ()
-
libhal_volume_disc_is_rewritable, libhal_volume_disc_is_rewritable () +
libhal_volume_disc_is_rewritable, libhal_volume_disc_is_rewritable ()
-
libhal_volume_free, libhal_volume_free () +
libhal_volume_free, libhal_volume_free ()
-
libhal_volume_from_device_file, libhal_volume_from_device_file () +
libhal_volume_from_device_file, libhal_volume_from_device_file ()
-
libhal_volume_from_mount_point, libhal_volume_from_mount_point () +
libhal_volume_from_mount_point, libhal_volume_from_mount_point ()
-
libhal_volume_get_device_file, libhal_volume_get_device_file () +
libhal_volume_get_device_file, libhal_volume_get_device_file ()
-
libhal_volume_get_device_major, libhal_volume_get_device_major () +
libhal_volume_get_device_major, libhal_volume_get_device_major ()
-
libhal_volume_get_device_minor, libhal_volume_get_device_minor () +
libhal_volume_get_device_minor, libhal_volume_get_device_minor ()
-
libhal_volume_get_disc_capacity, libhal_volume_get_disc_capacity () +
libhal_volume_get_disc_capacity, libhal_volume_get_disc_capacity ()
-
libhal_volume_get_disc_type, libhal_volume_get_disc_type () +
libhal_volume_get_disc_type, libhal_volume_get_disc_type ()
-
libhal_volume_get_fstype, libhal_volume_get_fstype () +
libhal_volume_get_fstype, libhal_volume_get_fstype ()
-
libhal_volume_get_fsusage, libhal_volume_get_fsusage () +
libhal_volume_get_fsusage, libhal_volume_get_fsusage ()
-
libhal_volume_get_fsversion, libhal_volume_get_fsversion () +
libhal_volume_get_fsversion, libhal_volume_get_fsversion ()
-
libhal_volume_get_label, libhal_volume_get_label () +
libhal_volume_get_label, libhal_volume_get_label ()
-
libhal_volume_get_mount_point, libhal_volume_get_mount_point () +
libhal_volume_get_mount_point, libhal_volume_get_mount_point ()
-
libhal_volume_get_msdos_part_table_type, libhal_volume_get_msdos_part_table_type () +
libhal_volume_get_msdos_part_table_type, libhal_volume_get_msdos_part_table_type ()
-
libhal_volume_get_partition_flags, libhal_volume_get_partition_flags () +
libhal_volume_get_partition_flags, libhal_volume_get_partition_flags ()
-
libhal_volume_get_partition_label, libhal_volume_get_partition_label () +
libhal_volume_get_partition_label, libhal_volume_get_partition_label ()
-
libhal_volume_get_partition_media_size, libhal_volume_get_partition_media_size () +
libhal_volume_get_partition_media_size, libhal_volume_get_partition_media_size ()
-
libhal_volume_get_partition_number, libhal_volume_get_partition_number () +
libhal_volume_get_partition_number, libhal_volume_get_partition_number ()
-
libhal_volume_get_partition_scheme, libhal_volume_get_partition_scheme () +
libhal_volume_get_partition_scheme, libhal_volume_get_partition_scheme ()
-
libhal_volume_get_partition_start_offset, libhal_volume_get_partition_start_offset () +
libhal_volume_get_partition_start_offset, libhal_volume_get_partition_start_offset ()
-
libhal_volume_get_partition_type, libhal_volume_get_partition_type () +
libhal_volume_get_partition_type, libhal_volume_get_partition_type ()
-
libhal_volume_get_partition_uuid, libhal_volume_get_partition_uuid () +
libhal_volume_get_partition_uuid, libhal_volume_get_partition_uuid ()
-
libhal_volume_get_size, libhal_volume_get_size () +
libhal_volume_get_size, libhal_volume_get_size ()
-
libhal_volume_get_storage_device_udi, libhal_volume_get_storage_device_udi () +
libhal_volume_get_storage_device_udi, libhal_volume_get_storage_device_udi ()
-
libhal_volume_get_udi, libhal_volume_get_udi () +
libhal_volume_get_udi, libhal_volume_get_udi ()
-
libhal_volume_get_uuid, libhal_volume_get_uuid () +
libhal_volume_get_uuid, libhal_volume_get_uuid ()
-
libhal_volume_is_disc, libhal_volume_is_disc () +
libhal_volume_is_disc, libhal_volume_is_disc ()
-
libhal_volume_is_mounted, libhal_volume_is_mounted () +
libhal_volume_is_mounted, libhal_volume_is_mounted ()
-
libhal_volume_is_mounted_read_only, libhal_volume_is_mounted_read_only () +
libhal_volume_is_mounted_read_only, libhal_volume_is_mounted_read_only ()
-
libhal_volume_is_partition, libhal_volume_is_partition () +
libhal_volume_is_partition, libhal_volume_is_partition ()
--- hal-0.5.10.orig/doc/api/libhal-storage/html/libhal-storage-libhal-storage.html +++ hal-0.5.10/doc/api/libhal-storage/html/libhal-storage-libhal-storage.html @@ -3,7 +3,7 @@ libhal-storage - + @@ -23,16 +23,16 @@ HAL Storage Library Reference Manual Next -Top +Top  |  - Description + Description
@@ -44,126 +44,118 @@ -struct LibHalDrive_s; -typedef LibHalDrive; -struct LibHalVolume_s; -typedef LibHalVolume; -struct LibHalStoragePolicy_s; -typedef LibHalStoragePolicy; -enum LibHalStoragePolicyIcon; - LibHalStoragePolicyIconPair; -LibHalStoragePolicy* libhal_storage_policy_new (); -LibHalDrive* libhal_drive_from_device_file (LibHalContext *hal_ctx, +struct LibHalDrive_s; +typedef LibHalDrive; +struct LibHalVolume_s; +typedef LibHalVolume; +struct LibHalStoragePolicy_s; +typedef LibHalStoragePolicy; +enum LibHalStoragePolicyIcon; + LibHalStoragePolicyIconPair; +LibHalStoragePolicy* libhal_storage_policy_new (); +LibHalDrive* libhal_drive_from_device_file (LibHalContext *hal_ctx, const char *device_file); -void libhal_drive_free (LibHalDrive *drive); -dbus_bool_t libhal_drive_is_hotpluggable (LibHalDrive *drive); -dbus_bool_t libhal_drive_uses_removable_media (LibHalDrive *drive); -dbus_bool_t libhal_drive_is_media_detected (LibHalDrive *drive); -dbus_uint64_t libhal_drive_get_size (LibHalDrive *drive); -dbus_uint64_t libhal_drive_get_media_size (LibHalDrive *drive); -const char* libhal_drive_get_partition_scheme (LibHalDrive *drive); -dbus_bool_t libhal_drive_no_partitions_hint (LibHalDrive *drive); -dbus_bool_t libhal_drive_requires_eject (LibHalDrive *drive); -LibHalDriveType libhal_drive_get_type (LibHalDrive *drive); -LibHalDriveBus libhal_drive_get_bus (LibHalDrive *drive); -LibHalDriveCdromCaps libhal_drive_get_cdrom_caps (LibHalDrive *drive); -unsigned int libhal_drive_get_device_major (LibHalDrive *drive); -unsigned int libhal_drive_get_device_minor (LibHalDrive *drive); -const char* libhal_drive_get_type_textual (LibHalDrive *drive); -const char* libhal_drive_get_device_file (LibHalDrive *drive); -const char* libhal_drive_get_udi (LibHalDrive *drive); -const char* libhal_drive_get_serial (LibHalDrive *drive); -const char* libhal_drive_get_firmware_version (LibHalDrive *drive); -const char* libhal_drive_get_model (LibHalDrive *drive); -const char* libhal_drive_get_vendor (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); -char* libhal_drive_policy_default_get_mount_root +void libhal_drive_free (LibHalDrive *drive); +dbus_bool_t libhal_drive_is_hotpluggable (LibHalDrive *drive); +dbus_bool_t libhal_drive_uses_removable_media (LibHalDrive *drive); +dbus_bool_t libhal_drive_is_media_detected (LibHalDrive *drive); +dbus_uint64_t libhal_drive_get_size (LibHalDrive *drive); +dbus_uint64_t libhal_drive_get_media_size (LibHalDrive *drive); +const char* libhal_drive_get_partition_scheme (LibHalDrive *drive); +dbus_bool_t libhal_drive_no_partitions_hint (LibHalDrive *drive); +dbus_bool_t libhal_drive_requires_eject (LibHalDrive *drive); +LibHalDriveType libhal_drive_get_type (LibHalDrive *drive); +LibHalDriveBus libhal_drive_get_bus (LibHalDrive *drive); +LibHalDriveCdromCaps libhal_drive_get_cdrom_caps (LibHalDrive *drive); +unsigned int libhal_drive_get_device_major (LibHalDrive *drive); +unsigned int libhal_drive_get_device_minor (LibHalDrive *drive); +const char* libhal_drive_get_type_textual (LibHalDrive *drive); +const char* libhal_drive_get_device_file (LibHalDrive *drive); +const char* libhal_drive_get_udi (LibHalDrive *drive); +const char* libhal_drive_get_serial (LibHalDrive *drive); +const char* libhal_drive_get_firmware_version (LibHalDrive *drive); +const char* libhal_drive_get_model (LibHalDrive *drive); +const char* libhal_drive_get_vendor (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); +char* libhal_drive_policy_default_get_mount_root (); -LibHalVolume* libhal_volume_from_device_file (LibHalContext *hal_ctx, +LibHalVolume* libhal_volume_from_device_file (LibHalContext *hal_ctx, const char *device_file); -LibHalVolume* libhal_volume_from_mount_point (LibHalContext *hal_ctx, +LibHalVolume* libhal_volume_from_mount_point (LibHalContext *hal_ctx, const char *mount_point); -void libhal_volume_free (LibHalVolume *volume); -dbus_uint64_t libhal_volume_get_size (LibHalVolume *volume); -dbus_uint64_t libhal_volume_get_disc_capacity (LibHalVolume *volume); -const char* libhal_volume_get_udi (LibHalVolume *volume); -const char* libhal_volume_get_device_file (LibHalVolume *volume); -unsigned int libhal_volume_get_device_major (LibHalVolume *volume); -unsigned int libhal_volume_get_device_minor (LibHalVolume *volume); -const char* libhal_volume_get_fstype (LibHalVolume *volume); -const char* libhal_volume_get_fsversion (LibHalVolume *volume); -LibHalVolumeUsage libhal_volume_get_fsusage (LibHalVolume *volume); -dbus_bool_t libhal_volume_is_mounted (LibHalVolume *volume); -dbus_bool_t libhal_volume_is_mounted_read_only (LibHalVolume *volume); -dbus_bool_t libhal_volume_is_partition (LibHalVolume *volume); -dbus_bool_t libhal_volume_is_disc (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_label (LibHalVolume *volume); -const char* libhal_volume_get_mount_point (LibHalVolume *volume); -const char* libhal_volume_get_uuid (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_has_audio (LibHalVolume *volume); -dbus_bool_t libhal_volume_disc_has_data (LibHalVolume *volume); -dbus_bool_t libhal_volume_disc_is_blank (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 +void libhal_volume_free (LibHalVolume *volume); +dbus_uint64_t libhal_volume_get_size (LibHalVolume *volume); +dbus_uint64_t libhal_volume_get_disc_capacity (LibHalVolume *volume); +const char* libhal_volume_get_udi (LibHalVolume *volume); +const char* libhal_volume_get_device_file (LibHalVolume *volume); +unsigned int libhal_volume_get_device_major (LibHalVolume *volume); +unsigned int libhal_volume_get_device_minor (LibHalVolume *volume); +const char* libhal_volume_get_fstype (LibHalVolume *volume); +const char* libhal_volume_get_fsversion (LibHalVolume *volume); +LibHalVolumeUsage libhal_volume_get_fsusage (LibHalVolume *volume); +dbus_bool_t libhal_volume_is_mounted (LibHalVolume *volume); +dbus_bool_t libhal_volume_is_mounted_read_only (LibHalVolume *volume); +dbus_bool_t libhal_volume_is_partition (LibHalVolume *volume); +dbus_bool_t libhal_volume_is_disc (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_label (LibHalVolume *volume); +const char* libhal_volume_get_mount_point (LibHalVolume *volume); +const char* libhal_volume_get_uuid (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_has_audio (LibHalVolume *volume); +dbus_bool_t libhal_volume_disc_has_data (LibHalVolume *volume); +dbus_bool_t libhal_volume_disc_is_blank (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 ();
-

Description

+

Description

-

Details

+

Details

-

+

struct LibHalDrive_s

-
struct LibHalDrive_s;
+
struct LibHalDrive_s;


-

+

LibHalDrive

-
typedef struct LibHalDrive_s LibHalDrive;
+
typedef struct LibHalDrive_s LibHalDrive;
 

@@ -171,18 +163,18 @@


-

+

struct LibHalVolume_s

-
struct LibHalVolume_s;
+
struct LibHalVolume_s;


-

+

LibHalVolume

-
typedef struct LibHalVolume_s LibHalVolume;
+
typedef struct LibHalVolume_s LibHalVolume;
 

@@ -190,18 +182,18 @@


-

+

struct LibHalStoragePolicy_s

-
struct LibHalStoragePolicy_s;
+
struct LibHalStoragePolicy_s;


-

+

LibHalStoragePolicy

-
typedef struct LibHalStoragePolicy_s LibHalStoragePolicy;
+
typedef struct LibHalStoragePolicy_s LibHalStoragePolicy;
 

@@ -209,9 +201,9 @@


-

+

enum LibHalStoragePolicyIcon

-
typedef enum {
+
typedef enum {
 	LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK           = 0x10000,
 	LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_IDE       = 0x10001,
 	LIBHAL_STORAGE_ICON_DRIVE_REMOVABLE_DISK_SCSI      = 0x10002,
@@ -301,9 +293,9 @@
 

-

+

LibHalStoragePolicyIconPair

-
typedef struct {
+
typedef struct {
 	LibHalStoragePolicyIcon icon;
 	const char *icon_path;
 } LibHalStoragePolicyIconPair;
@@ -314,16 +306,16 @@
 

-

+

libhal_storage_policy_new ()

-
LibHalStoragePolicy* libhal_storage_policy_new          ();
+
LibHalStoragePolicy* libhal_storage_policy_new          ();

-libhal-storage +libhal-storage

libhal-storage

- + - + - + - +

Returns :

Returns : @@ -333,11 +325,9 @@
-

+

libhal_drive_from_device_file ()

-
LibHalDrive*        libhal_drive_from_device_file       (LibHalContext *hal_ctx,
+
LibHalDrive*        libhal_drive_from_device_file       (LibHalContext *hal_ctx,
                                                          const char *device_file);

@@ -348,17 +338,17 @@

hal_ctx :

hal_ctx : libhal context to use

device_file :

device_file : Name of special device file, e.g. '/dev/hdc'

Returns :

Returns : LibHalDrive object or NULL if it doesn't exist Get the drive object that either is (when given e.g. /dev/sdb) or contains @@ -370,9 +360,9 @@
-

+

libhal_drive_free ()

-
void                libhal_drive_free                   (LibHalDrive *drive);
+
void                libhal_drive_free                   (LibHalDrive *drive);

Free all resources used by a LibHalDrive object.

@@ -381,7 +371,7 @@

- + @@ -389,9 +379,9 @@
-

+

libhal_drive_is_hotpluggable ()

-
dbus_bool_t         libhal_drive_is_hotpluggable        (LibHalDrive *drive);
+
dbus_bool_t         libhal_drive_is_hotpluggable        (LibHalDrive *drive);

@@ -399,12 +389,12 @@
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +

drive :

drive : Object to free

drive :

drive :

Returns :

Returns : @@ -415,9 +405,9 @@
-

+

libhal_drive_uses_removable_media ()

-
dbus_bool_t         libhal_drive_uses_removable_media   (LibHalDrive *drive);
+
dbus_bool_t         libhal_drive_uses_removable_media   (LibHalDrive *drive);

@@ -425,12 +415,12 @@

drive :

drive :

Returns :

Returns : @@ -441,9 +431,9 @@
-

+

libhal_drive_is_media_detected ()

-
dbus_bool_t         libhal_drive_is_media_detected      (LibHalDrive *drive);
+
dbus_bool_t         libhal_drive_is_media_detected      (LibHalDrive *drive);

@@ -451,12 +441,12 @@

drive :

drive :

Returns :

Returns : @@ -467,9 +457,9 @@
-

+

libhal_drive_get_size ()

-
dbus_uint64_t       libhal_drive_get_size               (LibHalDrive *drive);
+
dbus_uint64_t       libhal_drive_get_size               (LibHalDrive *drive);

@@ -477,12 +467,12 @@

drive :

drive :

Returns :

Returns : @@ -493,9 +483,9 @@
-

+

libhal_drive_get_media_size ()

-
dbus_uint64_t       libhal_drive_get_media_size         (LibHalDrive *drive);
+
dbus_uint64_t       libhal_drive_get_media_size         (LibHalDrive *drive);

@@ -503,12 +493,12 @@

drive :

drive :

Returns :

Returns : @@ -519,9 +509,9 @@
-

+

libhal_drive_get_partition_scheme ()

-
const char*         libhal_drive_get_partition_scheme   (LibHalDrive *drive);
+
const char*         libhal_drive_get_partition_scheme   (LibHalDrive *drive);

@@ -529,12 +519,12 @@

drive :

drive :

Returns :

Returns : @@ -545,9 +535,9 @@
-

+

libhal_drive_no_partitions_hint ()

-
dbus_bool_t         libhal_drive_no_partitions_hint     (LibHalDrive *drive);
+
dbus_bool_t         libhal_drive_no_partitions_hint     (LibHalDrive *drive);

@@ -555,12 +545,12 @@

drive :

drive :

Returns :

Returns : @@ -571,9 +561,9 @@
-

+

libhal_drive_requires_eject ()

-
dbus_bool_t         libhal_drive_requires_eject         (LibHalDrive *drive);
+
dbus_bool_t         libhal_drive_requires_eject         (LibHalDrive *drive);

@@ -581,12 +571,12 @@

drive :

drive :

Returns :

Returns : @@ -597,9 +587,9 @@
-

+

libhal_drive_get_type ()

-
LibHalDriveType     libhal_drive_get_type               (LibHalDrive *drive);
+
LibHalDriveType     libhal_drive_get_type               (LibHalDrive *drive);

@@ -607,12 +597,12 @@

drive :

drive :

Returns :

Returns : @@ -623,9 +613,9 @@
-

+

libhal_drive_get_bus ()

-
LibHalDriveBus      libhal_drive_get_bus                (LibHalDrive *drive);
+
LibHalDriveBus      libhal_drive_get_bus                (LibHalDrive *drive);

@@ -633,12 +623,12 @@

drive :

drive :

Returns :

Returns : @@ -649,9 +639,9 @@
-

+

libhal_drive_get_cdrom_caps ()

-
LibHalDriveCdromCaps libhal_drive_get_cdrom_caps        (LibHalDrive *drive);
+
LibHalDriveCdromCaps libhal_drive_get_cdrom_caps        (LibHalDrive *drive);

@@ -659,12 +649,12 @@

drive :

drive :

Returns :

Returns : @@ -675,9 +665,9 @@
-

+

libhal_drive_get_device_major ()

-
unsigned int        libhal_drive_get_device_major       (LibHalDrive *drive);
+
unsigned int        libhal_drive_get_device_major       (LibHalDrive *drive);

@@ -685,12 +675,12 @@

drive :

drive :

Returns :

Returns : @@ -701,9 +691,9 @@
-

+

libhal_drive_get_device_minor ()

-
unsigned int        libhal_drive_get_device_minor       (LibHalDrive *drive);
+
unsigned int        libhal_drive_get_device_minor       (LibHalDrive *drive);

@@ -711,12 +701,12 @@

drive :

drive :

Returns :

Returns : @@ -727,9 +717,9 @@
-

+

libhal_drive_get_type_textual ()

-
const char*         libhal_drive_get_type_textual       (LibHalDrive *drive);
+
const char*         libhal_drive_get_type_textual       (LibHalDrive *drive);

@@ -737,12 +727,12 @@

drive :

drive :

Returns :

Returns : @@ -753,9 +743,9 @@
-

+

libhal_drive_get_device_file ()

-
const char*         libhal_drive_get_device_file        (LibHalDrive *drive);
+
const char*         libhal_drive_get_device_file        (LibHalDrive *drive);

@@ -763,12 +753,12 @@

drive :

drive :

Returns :

Returns : @@ -779,9 +769,9 @@
-

+

libhal_drive_get_udi ()

-
const char*         libhal_drive_get_udi                (LibHalDrive *drive);
+
const char*         libhal_drive_get_udi                (LibHalDrive *drive);

@@ -789,12 +779,12 @@

drive :

drive :

Returns :

Returns : @@ -805,9 +795,9 @@
-

+

libhal_drive_get_serial ()

-
const char*         libhal_drive_get_serial             (LibHalDrive *drive);
+
const char*         libhal_drive_get_serial             (LibHalDrive *drive);

@@ -815,12 +805,12 @@

drive :

drive :

Returns :

Returns : @@ -831,9 +821,9 @@
-

+

libhal_drive_get_firmware_version ()

-
const char*         libhal_drive_get_firmware_version   (LibHalDrive *drive);
+
const char*         libhal_drive_get_firmware_version   (LibHalDrive *drive);

@@ -841,12 +831,12 @@

drive :

drive :

Returns :

Returns : @@ -857,9 +847,9 @@
-

+

libhal_drive_get_model ()

-
const char*         libhal_drive_get_model              (LibHalDrive *drive);
+
const char*         libhal_drive_get_model              (LibHalDrive *drive);

@@ -867,12 +857,12 @@

drive :

drive :

Returns :

Returns : @@ -883,9 +873,9 @@
-

+

libhal_drive_get_vendor ()

-
const char*         libhal_drive_get_vendor             (LibHalDrive *drive);
+
const char*         libhal_drive_get_vendor             (LibHalDrive *drive);

@@ -893,12 +883,12 @@

drive :

drive :

Returns :

Returns : @@ -909,10 +899,10 @@
-

+

libhal_drive_get_physical_device_udi ()

-
const char*         libhal_drive_get_physical_device_udi
-                                                        (LibHalDrive *drive);
+
const char*         libhal_drive_get_physical_device_udi
+                                                        (LibHalDrive *drive);

@@ -920,12 +910,12 @@

drive :

drive :

Returns :

Returns : @@ -936,10 +926,10 @@
-

+

libhal_drive_get_dedicated_icon_drive ()

-
const char*         libhal_drive_get_dedicated_icon_drive
-                                                        (LibHalDrive *drive);
+
const char*         libhal_drive_get_dedicated_icon_drive
+                                                        (LibHalDrive *drive);

@@ -947,12 +937,12 @@

drive :

drive :

Returns :

Returns : @@ -963,10 +953,10 @@
-

+

libhal_drive_get_dedicated_icon_volume ()

-
const char*         libhal_drive_get_dedicated_icon_volume
-                                                        (LibHalDrive *drive);
+
const char*         libhal_drive_get_dedicated_icon_volume
+                                                        (LibHalDrive *drive);

@@ -974,12 +964,12 @@

drive :

drive :

Returns :

Returns : @@ -990,11 +980,11 @@
-

+

libhal_drive_policy_compute_display_name ()

-
char*               libhal_drive_policy_compute_display_name
-                                                        (LibHalDrive *drive,
-                                                         LibHalVolume *volume);
+
char*               libhal_drive_policy_compute_display_name
+                                                        (LibHalDrive *drive,
+                                                         LibHalVolume *volume);

@@ -1002,17 +992,17 @@

drive :

drive :

volume :

volume :

Returns :

Returns : @@ -1023,9 +1013,9 @@
-

+

libhal_drive_policy_default_get_mount_root ()

-
char*               libhal_drive_policy_default_get_mount_root
+
char*               libhal_drive_policy_default_get_mount_root
                                                         ();

@@ -1033,7 +1023,7 @@

- + - + - + - + - + - + - +

Returns :

Returns : @@ -1043,11 +1033,9 @@
-

+

libhal_volume_from_device_file ()

-
LibHalVolume*       libhal_volume_from_device_file      (LibHalContext *hal_ctx,
+
LibHalVolume*       libhal_volume_from_device_file      (LibHalContext *hal_ctx,
                                                          const char *device_file);

@@ -1058,17 +1046,17 @@

hal_ctx :

hal_ctx : libhal context to use

device_file :

device_file : Name of special device file, e.g. '/dev/hda5'

Returns :

Returns : LibHalVolume object or NULL if it doesn't exist Get the volume object for a given device file. @@ -1079,11 +1067,9 @@
-

+

libhal_volume_from_mount_point ()

-
LibHalVolume*       libhal_volume_from_mount_point      (LibHalContext *hal_ctx,
+
LibHalVolume*       libhal_volume_from_mount_point      (LibHalContext *hal_ctx,
                                                          const char *mount_point);

@@ -1094,17 +1080,17 @@

hal_ctx :

hal_ctx : libhal context to use

mount_point :

mount_point : Name of mount point without terminting slash, e.g. '/media/disk'

Returns :

Returns : LibHalVolume object or NULL if it doesn't exist Get the volume object for a given mount point @@ -1115,9 +1101,9 @@
-

+

libhal_volume_free ()

-
void                libhal_volume_free                  (LibHalVolume *volume);
+
void                libhal_volume_free                  (LibHalVolume *volume);

Free all resources used by a LibHalVolume object.

@@ -1126,7 +1112,7 @@

- + @@ -1134,9 +1120,9 @@
-

+

libhal_volume_get_size ()

-
dbus_uint64_t       libhal_volume_get_size              (LibHalVolume *volume);
+
dbus_uint64_t       libhal_volume_get_size              (LibHalVolume *volume);

@@ -1144,12 +1130,12 @@
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + Description

volume :

volume : Object to free

volume :

volume :

Returns :

Returns : @@ -1160,9 +1146,9 @@
-

+

libhal_volume_get_disc_capacity ()

-
dbus_uint64_t       libhal_volume_get_disc_capacity     (LibHalVolume *volume);
+
dbus_uint64_t       libhal_volume_get_disc_capacity     (LibHalVolume *volume);

@@ -1170,12 +1156,12 @@

volume :

volume :

Returns :

Returns : @@ -1186,9 +1172,9 @@
-

+

libhal_volume_get_udi ()

-
const char*         libhal_volume_get_udi               (LibHalVolume *volume);
+
const char*         libhal_volume_get_udi               (LibHalVolume *volume);

@@ -1196,12 +1182,12 @@

volume :

volume :

Returns :

Returns : @@ -1212,9 +1198,9 @@
-

+

libhal_volume_get_device_file ()

-
const char*         libhal_volume_get_device_file       (LibHalVolume *volume);
+
const char*         libhal_volume_get_device_file       (LibHalVolume *volume);

@@ -1222,12 +1208,12 @@

volume :

volume :

Returns :

Returns : @@ -1238,9 +1224,9 @@
-

+

libhal_volume_get_device_major ()

-
unsigned int        libhal_volume_get_device_major      (LibHalVolume *volume);
+
unsigned int        libhal_volume_get_device_major      (LibHalVolume *volume);

@@ -1248,12 +1234,12 @@

volume :

volume :

Returns :

Returns : @@ -1264,9 +1250,9 @@
-

+

libhal_volume_get_device_minor ()

-
unsigned int        libhal_volume_get_device_minor      (LibHalVolume *volume);
+
unsigned int        libhal_volume_get_device_minor      (LibHalVolume *volume);

@@ -1274,12 +1260,12 @@

volume :

volume :

Returns :

Returns : @@ -1290,9 +1276,9 @@
-

+

libhal_volume_get_fstype ()

-
const char*         libhal_volume_get_fstype            (LibHalVolume *volume);
+
const char*         libhal_volume_get_fstype            (LibHalVolume *volume);

@@ -1300,12 +1286,12 @@

volume :

volume :

Returns :

Returns : @@ -1316,9 +1302,9 @@
-

+

libhal_volume_get_fsversion ()

-
const char*         libhal_volume_get_fsversion         (LibHalVolume *volume);
+
const char*         libhal_volume_get_fsversion         (LibHalVolume *volume);

@@ -1326,12 +1312,12 @@

volume :

volume :

Returns :

Returns : @@ -1342,9 +1328,9 @@
-

+

libhal_volume_get_fsusage ()

-
LibHalVolumeUsage   libhal_volume_get_fsusage           (LibHalVolume *volume);
+
LibHalVolumeUsage   libhal_volume_get_fsusage           (LibHalVolume *volume);

@@ -1352,12 +1338,12 @@

volume :

volume :

Returns :

Returns : @@ -1368,9 +1354,9 @@
-

+

libhal_volume_is_mounted ()

-
dbus_bool_t         libhal_volume_is_mounted            (LibHalVolume *volume);
+
dbus_bool_t         libhal_volume_is_mounted            (LibHalVolume *volume);

@@ -1378,12 +1364,12 @@

volume :

volume :

Returns :

Returns : @@ -1394,9 +1380,9 @@
-

+

libhal_volume_is_mounted_read_only ()

-
dbus_bool_t         libhal_volume_is_mounted_read_only  (LibHalVolume *volume);
+
dbus_bool_t         libhal_volume_is_mounted_read_only  (LibHalVolume *volume);

@@ -1404,12 +1390,12 @@

volume :

volume :

Returns :

Returns : @@ -1420,9 +1406,9 @@
-

+

libhal_volume_is_partition ()

-
dbus_bool_t         libhal_volume_is_partition          (LibHalVolume *volume);
+
dbus_bool_t         libhal_volume_is_partition          (LibHalVolume *volume);

@@ -1430,12 +1416,12 @@

volume :

volume :

Returns :

Returns : @@ -1446,9 +1432,9 @@
-

+

libhal_volume_is_disc ()

-
dbus_bool_t         libhal_volume_is_disc               (LibHalVolume *volume);
+
dbus_bool_t         libhal_volume_is_disc               (LibHalVolume *volume);

@@ -1456,12 +1442,12 @@

volume :

volume :

Returns :

Returns : @@ -1472,9 +1458,9 @@
-

+

libhal_volume_get_partition_scheme ()

-
const char*         libhal_volume_get_partition_scheme  (LibHalVolume *volume);
+
const char*         libhal_volume_get_partition_scheme  (LibHalVolume *volume);

@@ -1482,12 +1468,12 @@

volume :

volume :

Returns :

Returns : @@ -1498,9 +1484,9 @@
-

+

libhal_volume_get_partition_type ()

-
const char*         libhal_volume_get_partition_type    (LibHalVolume *volume);
+
const char*         libhal_volume_get_partition_type    (LibHalVolume *volume);

@@ -1508,12 +1494,12 @@

volume :

volume :

Returns :

Returns : @@ -1524,9 +1510,9 @@
-

+

libhal_volume_get_partition_label ()

-
const char*         libhal_volume_get_partition_label   (LibHalVolume *volume);
+
const char*         libhal_volume_get_partition_label   (LibHalVolume *volume);

@@ -1534,12 +1520,12 @@

volume :

volume :

Returns :

Returns : @@ -1550,9 +1536,9 @@
-

+

libhal_volume_get_partition_uuid ()

-
const char*         libhal_volume_get_partition_uuid    (LibHalVolume *volume);
+
const char*         libhal_volume_get_partition_uuid    (LibHalVolume *volume);

@@ -1560,12 +1546,12 @@

volume :

volume :

Returns :

Returns : @@ -1576,9 +1562,9 @@
-

+

libhal_volume_get_partition_flags ()

-
const char**        libhal_volume_get_partition_flags   (LibHalVolume *volume);
+
const char**        libhal_volume_get_partition_flags   (LibHalVolume *volume);

@@ -1586,12 +1572,12 @@

volume :

volume :

Returns :

Returns : @@ -1602,9 +1588,9 @@
-

+

libhal_volume_get_partition_number ()

-
unsigned int        libhal_volume_get_partition_number  (LibHalVolume *volume);
+
unsigned int        libhal_volume_get_partition_number  (LibHalVolume *volume);

@@ -1612,12 +1598,12 @@

volume :

volume :

Returns :

Returns : @@ -1628,10 +1614,10 @@
-

+

libhal_volume_get_partition_start_offset ()

-
dbus_uint64_t       libhal_volume_get_partition_start_offset
-                                                        (LibHalVolume *volume);
+
dbus_uint64_t       libhal_volume_get_partition_start_offset
+                                                        (LibHalVolume *volume);

@@ -1639,12 +1625,12 @@

volume :

volume :

Returns :

Returns : @@ -1655,10 +1641,10 @@
-

+

libhal_volume_get_partition_media_size ()

-
dbus_uint64_t       libhal_volume_get_partition_media_size
-                                                        (LibHalVolume *volume);
+
dbus_uint64_t       libhal_volume_get_partition_media_size
+                                                        (LibHalVolume *volume);

@@ -1666,12 +1652,12 @@

volume :

volume :

Returns :

Returns : @@ -1682,9 +1668,9 @@
-

+

libhal_volume_get_label ()

-
const char*         libhal_volume_get_label             (LibHalVolume *volume);
+
const char*         libhal_volume_get_label             (LibHalVolume *volume);

@@ -1692,12 +1678,12 @@

volume :

volume :

Returns :

Returns : @@ -1708,9 +1694,9 @@
-

+

libhal_volume_get_mount_point ()

-
const char*         libhal_volume_get_mount_point       (LibHalVolume *volume);
+
const char*         libhal_volume_get_mount_point       (LibHalVolume *volume);

@@ -1718,12 +1704,12 @@

volume :

volume :

Returns :

Returns : @@ -1734,9 +1720,9 @@
-

+

libhal_volume_get_uuid ()

-
const char*         libhal_volume_get_uuid              (LibHalVolume *volume);
+
const char*         libhal_volume_get_uuid              (LibHalVolume *volume);

@@ -1744,12 +1730,12 @@

volume :

volume :

Returns :

Returns : @@ -1760,10 +1746,10 @@
-

+

libhal_volume_get_storage_device_udi ()

-
const char*         libhal_volume_get_storage_device_udi
-                                                        (LibHalVolume *volume);
+
const char*         libhal_volume_get_storage_device_udi
+                                                        (LibHalVolume *volume);

@@ -1771,12 +1757,12 @@

volume :

volume :

Returns :

Returns : @@ -1787,10 +1773,10 @@
-

+

libhal_volume_crypto_get_backing_volume_udi ()

-
const char*         libhal_volume_crypto_get_backing_volume_udi
-                                                        (LibHalVolume *volume);
+
const char*         libhal_volume_crypto_get_backing_volume_udi
+                                                        (LibHalVolume *volume);

@@ -1798,12 +1784,12 @@

volume :

volume :

Returns :

Returns : @@ -1814,13 +1800,11 @@
-

+

libhal_volume_crypto_get_clear_volume_udi ()

-
char*               libhal_volume_crypto_get_clear_volume_udi
-                                                        (LibHalContext *hal_ctx,
-                                                         LibHalVolume *volume);
+
char*               libhal_volume_crypto_get_clear_volume_udi
+                                                        (LibHalContext *hal_ctx,
+                                                         LibHalVolume *volume);

@@ -1828,17 +1812,17 @@

hal_ctx :

hal_ctx :

volume :

volume :

Returns :

Returns : @@ -1849,9 +1833,9 @@
-

+

libhal_volume_disc_has_audio ()

-
dbus_bool_t         libhal_volume_disc_has_audio        (LibHalVolume *volume);
+
dbus_bool_t         libhal_volume_disc_has_audio        (LibHalVolume *volume);

@@ -1859,12 +1843,12 @@

volume :

volume :

Returns :

Returns : @@ -1875,9 +1859,9 @@
-

+

libhal_volume_disc_has_data ()

-
dbus_bool_t         libhal_volume_disc_has_data         (LibHalVolume *volume);
+
dbus_bool_t         libhal_volume_disc_has_data         (LibHalVolume *volume);

@@ -1885,12 +1869,12 @@

volume :

volume :

Returns :

Returns : @@ -1901,9 +1885,9 @@
-

+

libhal_volume_disc_is_blank ()

-
dbus_bool_t         libhal_volume_disc_is_blank         (LibHalVolume *volume);
+
dbus_bool_t         libhal_volume_disc_is_blank         (LibHalVolume *volume);

@@ -1911,12 +1895,12 @@

volume :

volume :

Returns :

Returns : @@ -1927,9 +1911,9 @@
-

+

libhal_volume_disc_is_rewritable ()

-
dbus_bool_t         libhal_volume_disc_is_rewritable    (LibHalVolume *volume);
+
dbus_bool_t         libhal_volume_disc_is_rewritable    (LibHalVolume *volume);

@@ -1937,12 +1921,12 @@

volume :

volume :

Returns :

Returns : @@ -1953,9 +1937,9 @@
-

+

libhal_volume_disc_is_appendable ()

-
dbus_bool_t         libhal_volume_disc_is_appendable    (LibHalVolume *volume);
+
dbus_bool_t         libhal_volume_disc_is_appendable    (LibHalVolume *volume);

@@ -1963,12 +1947,12 @@

volume :

volume :

Returns :

Returns : @@ -1979,9 +1963,9 @@
-

+

libhal_volume_get_disc_type ()

-
LibHalVolumeDiscType libhal_volume_get_disc_type        (LibHalVolume *volume);
+
LibHalVolumeDiscType libhal_volume_get_disc_type        (LibHalVolume *volume);

@@ -1989,12 +1973,12 @@

volume :

volume :

Returns :

Returns : @@ -2005,9 +1989,9 @@
-

+

libhal_volume_get_msdos_part_table_type ()

-
int                 libhal_volume_get_msdos_part_table_type
+
int                 libhal_volume_get_msdos_part_table_type
                                                         ();

@@ -2017,7 +2001,7 @@
- + + + --- hal-0.5.10.orig/doc/api/libhal/html/license.html +++ hal-0.5.10/doc/api/libhal/html/license.html @@ -3,7 +3,7 @@ Appendix A. License - + @@ -41,7 +41,7 @@

You may obtain a copy of the GNU General Public License from the Free Software Foundation by - visiting their Web + visiting their Web site or by writing to:

--- hal-0.5.10.orig/doc/api/libhal/html/ix01.html +++ hal-0.5.10/doc/api/libhal/html/ix01.html @@ -3,7 +3,7 @@ Index - + @@ -24,269 +24,269 @@

Returns :

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 --- hal-0.5.10.orig/doc/api/libhal-storage/html/index.html +++ hal-0.5.10/doc/api/libhal-storage/html/index.html @@ -3,7 +3,7 @@ HAL Storage Library Reference Manual - + @@ -21,14 +21,14 @@ David Zeuthen


-     
+     
  

Version 0.5.10

-

+

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later @@ -36,7 +36,7 @@ Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You may obtain a copy of the GNU Free Documentation License from the Free Software - Foundation by visiting their Web site or by writing + Foundation by visiting their Web site or by writing to:

--- hal-0.5.10.orig/doc/api/libhal-storage/html/rn01.html +++ hal-0.5.10/doc/api/libhal-storage/html/rn01.html @@ -3,7 +3,7 @@ API Reference - + @@ -25,7 +25,7 @@

-API Reference

+API Reference

--- hal-0.5.10.orig/doc/api/libhal-storage/libhal-storage-decl-list.txt +++ hal-0.5.10/doc/api/libhal-storage/libhal-storage-decl-list.txt @@ -0,0 +1,77 @@ +
+libhal-storage +LibHalDrive_s +LibHalDrive +LibHalVolume_s +LibHalVolume +LibHalStoragePolicy_s +LibHalStoragePolicy +LibHalStoragePolicyIcon +LibHalStoragePolicyIconPair +libhal_storage_policy_new +libhal_drive_from_device_file +libhal_drive_free +libhal_drive_is_hotpluggable +libhal_drive_uses_removable_media +libhal_drive_is_media_detected +libhal_drive_get_size +libhal_drive_get_media_size +libhal_drive_get_partition_scheme +libhal_drive_no_partitions_hint +libhal_drive_requires_eject +libhal_drive_get_type +libhal_drive_get_bus +libhal_drive_get_cdrom_caps +libhal_drive_get_device_major +libhal_drive_get_device_minor +libhal_drive_get_type_textual +libhal_drive_get_device_file +libhal_drive_get_udi +libhal_drive_get_serial +libhal_drive_get_firmware_version +libhal_drive_get_model +libhal_drive_get_vendor +libhal_drive_get_physical_device_udi +libhal_drive_get_dedicated_icon_drive +libhal_drive_get_dedicated_icon_volume +libhal_drive_policy_compute_display_name +libhal_drive_policy_default_get_mount_root +libhal_volume_from_device_file +libhal_volume_from_mount_point +libhal_volume_free +libhal_volume_get_size +libhal_volume_get_disc_capacity +libhal_volume_get_udi +libhal_volume_get_device_file +libhal_volume_get_device_major +libhal_volume_get_device_minor +libhal_volume_get_fstype +libhal_volume_get_fsversion +libhal_volume_get_fsusage +libhal_volume_is_mounted +libhal_volume_is_mounted_read_only +libhal_volume_is_partition +libhal_volume_is_disc +libhal_volume_get_partition_scheme +libhal_volume_get_partition_type +libhal_volume_get_partition_label +libhal_volume_get_partition_uuid +libhal_volume_get_partition_flags +libhal_volume_get_partition_number +libhal_volume_get_partition_start_offset +libhal_volume_get_partition_media_size +libhal_volume_get_label +libhal_volume_get_mount_point +libhal_volume_get_uuid +libhal_volume_get_storage_device_udi +libhal_volume_crypto_get_backing_volume_udi +libhal_volume_crypto_get_clear_volume_udi +libhal_volume_disc_has_audio +libhal_volume_disc_has_data +libhal_volume_disc_is_blank +libhal_volume_disc_is_rewritable +libhal_volume_disc_is_appendable +libhal_volume_get_disc_type +libhal_volume_get_msdos_part_table_type +
+ --- hal-0.5.10.orig/doc/api/libhal-storage/libhal-storage-undocumented.txt +++ hal-0.5.10/doc/api/libhal-storage/libhal-storage-undocumented.txt @@ -0,0 +1,80 @@ +4% symbol docs coverage. +3 symbols documented. +0 symbols incomplete. +72 not documented. + + +LibHalDrive +LibHalDrive_s +LibHalStoragePolicy +LibHalStoragePolicyIcon +LibHalStoragePolicyIconPair +LibHalStoragePolicy_s +LibHalVolume +LibHalVolume_s +libhal_drive_from_device_file +libhal_drive_get_bus +libhal_drive_get_cdrom_caps +libhal_drive_get_dedicated_icon_drive +libhal_drive_get_dedicated_icon_volume +libhal_drive_get_device_file +libhal_drive_get_device_major +libhal_drive_get_device_minor +libhal_drive_get_firmware_version +libhal_drive_get_media_size +libhal_drive_get_model +libhal_drive_get_partition_scheme +libhal_drive_get_physical_device_udi +libhal_drive_get_serial +libhal_drive_get_size +libhal_drive_get_type +libhal_drive_get_type_textual +libhal_drive_get_udi +libhal_drive_get_vendor +libhal_drive_is_hotpluggable +libhal_drive_is_media_detected +libhal_drive_no_partitions_hint +libhal_drive_policy_compute_display_name +libhal_drive_policy_default_get_mount_root +libhal_drive_requires_eject +libhal_drive_uses_removable_media +libhal_storage_policy_new +libhal_volume_crypto_get_backing_volume_udi +libhal_volume_crypto_get_clear_volume_udi +libhal_volume_disc_has_audio +libhal_volume_disc_has_data +libhal_volume_disc_is_appendable +libhal_volume_disc_is_blank +libhal_volume_disc_is_rewritable +libhal_volume_from_device_file +libhal_volume_from_mount_point +libhal_volume_get_device_file +libhal_volume_get_device_major +libhal_volume_get_device_minor +libhal_volume_get_disc_capacity +libhal_volume_get_disc_type +libhal_volume_get_fstype +libhal_volume_get_fsusage +libhal_volume_get_fsversion +libhal_volume_get_label +libhal_volume_get_mount_point +libhal_volume_get_msdos_part_table_type +libhal_volume_get_partition_flags +libhal_volume_get_partition_label +libhal_volume_get_partition_media_size +libhal_volume_get_partition_number +libhal_volume_get_partition_scheme +libhal_volume_get_partition_start_offset +libhal_volume_get_partition_type +libhal_volume_get_partition_uuid +libhal_volume_get_size +libhal_volume_get_storage_device_udi +libhal_volume_get_udi +libhal_volume_get_uuid +libhal_volume_is_disc +libhal_volume_is_mounted +libhal_volume_is_mounted_read_only +libhal_volume_is_partition + + +libhal-storage:Short_Description --- hal-0.5.10.orig/doc/api/libhal-storage/libhal-storage-decl.txt +++ hal-0.5.10/doc/api/libhal-storage/libhal-storage-decl.txt @@ -0,0 +1,442 @@ + +LibHalDrive_s +struct LibHalDrive_s; + + +LibHalDrive +typedef struct LibHalDrive_s LibHalDrive; + + +LibHalVolume_s +struct LibHalVolume_s; + + +LibHalVolume +typedef struct LibHalVolume_s LibHalVolume; + + +LibHalStoragePolicy_s +struct LibHalStoragePolicy_s; + + +LibHalStoragePolicy +typedef struct LibHalStoragePolicy_s LibHalStoragePolicy; + + +LibHalStoragePolicyIcon +typedef enum { + 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, + LIBHAL_STORAGE_ICON_DISC_DVDPLUSRWDL = 0x30009, + LIBHAL_STORAGE_ICON_DISC_BDROM = 0x3000a, + LIBHAL_STORAGE_ICON_DISC_BDR = 0x3000b, + LIBHAL_STORAGE_ICON_DISC_BDRE = 0x3000c, + LIBHAL_STORAGE_ICON_DISC_HDDVDROM = 0x3000d, + LIBHAL_STORAGE_ICON_DISC_HDDVDR = 0x3000e, + LIBHAL_STORAGE_ICON_DISC_HDDVDRW = 0x3000f, + LIBHAL_STORAGE_ICON_DISC_MRW = 0x30010, + LIBHAL_STORAGE_ICON_DISC_MRWW = 0x30011, + LIBHAL_STORAGE_ICON_DISC_MO = 0x30012 +} LibHalStoragePolicyIcon; + + +LibHalStoragePolicyIconPair +typedef struct { + LibHalStoragePolicyIcon icon; + const char *icon_path; +} LibHalStoragePolicyIconPair; + + +libhal_storage_policy_new +LibHalStoragePolicy * +void) LIBHAL_DEPRECATED;void libhal_storage_policy_free (LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;void libhal_storage_policy_set_icon_path (LibHalStoragePolicy *policy,LibHalStoragePolicyIcon icon,const char *path) LIBHAL_DEPRECATED;void libhal_storage_policy_set_icon_mapping (LibHalStoragePolicy *policy,LibHalStoragePolicyIconPair *pairs) LIBHAL_DEPRECATED;const char *libhal_storage_policy_lookup_icon (LibHalStoragePolicy *policy,LibHalStoragePolicyIcon icon) LIBHAL_DEPRECATED;typedef enum {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} LibHalDriveBus;typedef enum {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,LIBHAL_DRIVE_TYPE_MO = 0x0e} LibHalDriveType;typedef enum {LIBHAL_DRIVE_CDROM_CAPS_CDROM = 0x00001,LIBHAL_DRIVE_CDROM_CAPS_CDR = 0x00002,LIBHAL_DRIVE_CDROM_CAPS_CDRW = 0x00004,LIBHAL_DRIVE_CDROM_CAPS_DVDRAM = 0x00008,LIBHAL_DRIVE_CDROM_CAPS_DVDROM = 0x00010,LIBHAL_DRIVE_CDROM_CAPS_DVDR = 0x00020,LIBHAL_DRIVE_CDROM_CAPS_DVDRW = 0x00040,LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSR = 0x00080,LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRW = 0x00100,LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRDL = 0x00200,LIBHAL_DRIVE_CDROM_CAPS_DVDPLUSRWDL = 0x00400,LIBHAL_DRIVE_CDROM_CAPS_BDROM = 0x00800,LIBHAL_DRIVE_CDROM_CAPS_BDR = 0x01000,LIBHAL_DRIVE_CDROM_CAPS_BDRE = 0x02000,LIBHAL_DRIVE_CDROM_CAPS_HDDVDROM = 0x04000,LIBHAL_DRIVE_CDROM_CAPS_HDDVDR = 0x08000,LIBHAL_DRIVE_CDROM_CAPS_HDDVDRW = 0x10000,LIBHAL_DRIVE_CDROM_CAPS_MRW = 0x20000,LIBHAL_DRIVE_CDROM_CAPS_MRWW = 0x40000,LIBHAL_DRIVE_CDROM_CAPS_MO = 0x80000} LibHalDriveCdromCaps;LibHalDrive *libhal_drive_from_udi (LibHalContext *hal_ctx,const char *udi + + +libhal_drive_from_device_file +LibHalDrive * +LibHalContext *hal_ctx,const char *device_file + + +libhal_drive_free +void +LibHalDrive *drive + + +libhal_drive_is_hotpluggable +dbus_bool_t +LibHalDrive *drive + + +libhal_drive_uses_removable_media +dbus_bool_t +LibHalDrive *drive + + +libhal_drive_is_media_detected +dbus_bool_t +LibHalDrive *drive + + +libhal_drive_get_size +dbus_uint64_t +LibHalDrive *drive + + +libhal_drive_get_media_size +dbus_uint64_t +LibHalDrive *drive + + +libhal_drive_get_partition_scheme +const char * +LibHalDrive *drive + + +libhal_drive_no_partitions_hint +dbus_bool_t +LibHalDrive *drive + + +libhal_drive_requires_eject +dbus_bool_t +LibHalDrive *drive + + +libhal_drive_get_type +LibHalDriveType +LibHalDrive *drive + + +libhal_drive_get_bus +LibHalDriveBus +LibHalDrive *drive + + +libhal_drive_get_cdrom_caps +LibHalDriveCdromCaps +LibHalDrive *drive + + +libhal_drive_get_device_major +unsigned int +LibHalDrive *drive + + +libhal_drive_get_device_minor +unsigned int +LibHalDrive *drive + + +libhal_drive_get_type_textual +const char * +LibHalDrive *drive + + +libhal_drive_get_device_file +const char * +LibHalDrive *drive + + +libhal_drive_get_udi +const char * +LibHalDrive *drive + + +libhal_drive_get_serial +const char * +LibHalDrive *drive + + +libhal_drive_get_firmware_version +const char * +LibHalDrive *drive + + +libhal_drive_get_model +const char * +LibHalDrive *drive + + +libhal_drive_get_vendor +const char * +LibHalDrive *drive + + +libhal_drive_get_physical_device_udi +const char * +LibHalDrive *drive + + +libhal_drive_get_dedicated_icon_drive +const char * +LibHalDrive *drive + + +libhal_drive_get_dedicated_icon_volume +const char * +LibHalDrive *drive + + +libhal_drive_policy_compute_display_name +char * +LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;char *libhal_drive_policy_compute_icon_name (LibHalDrive *drive,LibHalVolume *volume,LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;dbus_bool_t libhal_drive_policy_is_mountable (LibHalDrive *drive,LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;const char *libhal_drive_policy_get_desired_mount_point (LibHalDrive *drive,LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;const char *libhal_drive_policy_get_mount_options (LibHalDrive *drive,LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;const char *libhal_drive_policy_get_mount_fs (LibHalDrive *drive,LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;char **libhal_drive_find_all_volumes (LibHalContext *hal_ctx,LibHalDrive *drive,int *num_volumes + + +libhal_drive_policy_default_get_mount_root +char * +LibHalContext *hal_ctx) LIBHAL_DEPRECATED;dbus_bool_t libhal_drive_policy_default_use_managed_keyword (LibHalContext *hal_ctx) LIBHAL_DEPRECATED;char *libhal_drive_policy_default_get_managed_keyword_primary (LibHalContext *hal_ctx) LIBHAL_DEPRECATED;char *libhal_drive_policy_default_get_managed_keyword_secondary (LibHalContext *hal_ctx) LIBHAL_DEPRECATED;typedef enum {LIBHAL_VOLUME_USAGE_MOUNTABLE_FILESYSTEM,LIBHAL_VOLUME_USAGE_PARTITION_TABLE,LIBHAL_VOLUME_USAGE_RAID_MEMBER,LIBHAL_VOLUME_USAGE_CRYPTO,LIBHAL_VOLUME_USAGE_UNKNOWN,LIBHAL_VOLUME_USAGE_OTHER} LibHalVolumeUsage;typedef enum {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,LIBHAL_VOLUME_DISC_TYPE_BDROM = 0x0a,LIBHAL_VOLUME_DISC_TYPE_BDR = 0x0b,LIBHAL_VOLUME_DISC_TYPE_BDRE = 0x0c,LIBHAL_VOLUME_DISC_TYPE_HDDVDROM = 0x0d,LIBHAL_VOLUME_DISC_TYPE_HDDVDR = 0x0e,LIBHAL_VOLUME_DISC_TYPE_HDDVDRW = 0x0f,LIBHAL_VOLUME_DISC_TYPE_MO = 0x10} LibHalVolumeDiscType;LibHalVolume *libhal_volume_from_udi (LibHalContext *hal_ctx,const char *udi + + +libhal_volume_from_device_file +LibHalVolume * +LibHalContext *hal_ctx,const char *device_file + + +libhal_volume_from_mount_point +LibHalVolume * +LibHalContext *hal_ctx,const char *mount_point + + +libhal_volume_free +void +LibHalVolume *volume + + +libhal_volume_get_size +dbus_uint64_t +LibHalVolume *volume + + +libhal_volume_get_disc_capacity +dbus_uint64_t +LibHalVolume *volume + + +libhal_volume_get_udi +const char * +LibHalVolume *volume + + +libhal_volume_get_device_file +const char * +LibHalVolume *volume + + +libhal_volume_get_device_major +unsigned int +LibHalVolume *volume + + +libhal_volume_get_device_minor +unsigned int +LibHalVolume *volume + + +libhal_volume_get_fstype +const char * +LibHalVolume *volume + + +libhal_volume_get_fsversion +const char * +LibHalVolume *volume + + +libhal_volume_get_fsusage +LibHalVolumeUsage +LibHalVolume *volume + + +libhal_volume_is_mounted +dbus_bool_t +LibHalVolume *volume + + +libhal_volume_is_mounted_read_only +dbus_bool_t +LibHalVolume *volume + + +libhal_volume_is_partition +dbus_bool_t +LibHalVolume *volume + + +libhal_volume_is_disc +dbus_bool_t +LibHalVolume *volume + + +libhal_volume_get_partition_scheme +const char * +LibHalVolume *volume + + +libhal_volume_get_partition_type +const char * +LibHalVolume *volume + + +libhal_volume_get_partition_label +const char * +LibHalVolume *volume + + +libhal_volume_get_partition_uuid +const char * +LibHalVolume *volume + + +libhal_volume_get_partition_flags +const char ** +LibHalVolume *volume + + +libhal_volume_get_partition_number +unsigned int +LibHalVolume *volume + + +libhal_volume_get_partition_start_offset +dbus_uint64_t +LibHalVolume *volume + + +libhal_volume_get_partition_media_size +dbus_uint64_t +LibHalVolume *volume + + +libhal_volume_get_label +const char * +LibHalVolume *volume + + +libhal_volume_get_mount_point +const char * +LibHalVolume *volume + + +libhal_volume_get_uuid +const char * +LibHalVolume *volume + + +libhal_volume_get_storage_device_udi +const char * +LibHalVolume *volume + + +libhal_volume_crypto_get_backing_volume_udi +const char * +LibHalVolume *volume + + +libhal_volume_crypto_get_clear_volume_udi +char * +LibHalContext *hal_ctx, LibHalVolume *volume + + +libhal_volume_disc_has_audio +dbus_bool_t +LibHalVolume *volume + + +libhal_volume_disc_has_data +dbus_bool_t +LibHalVolume *volume + + +libhal_volume_disc_is_blank +dbus_bool_t +LibHalVolume *volume + + +libhal_volume_disc_is_rewritable +dbus_bool_t +LibHalVolume *volume + + +libhal_volume_disc_is_appendable +dbus_bool_t +LibHalVolume *volume + + +libhal_volume_get_disc_type +LibHalVolumeDiscType +LibHalVolume *volume + + +libhal_volume_get_msdos_part_table_type +int +LibHalVolume *volume) LIBHAL_DEPRECATED;dbus_uint64_t libhal_volume_get_msdos_part_table_start (LibHalVolume *volume) LIBHAL_DEPRECATED;dbus_uint64_t libhal_volume_get_msdos_part_table_size (LibHalVolume *volume) LIBHAL_DEPRECATED;dbus_bool_t libhal_volume_should_ignore (LibHalVolume *volume + --- hal-0.5.10.orig/doc/api/libhal/xml/libhal-doc.bottom +++ hal-0.5.10/doc/api/libhal/xml/libhal-doc.bottom @@ -0,0 +1,2 @@ + + --- hal-0.5.10.orig/doc/api/libhal/xml/tree_index.sgml +++ hal-0.5.10/doc/api/libhal/xml/tree_index.sgml @@ -0,0 +1,7 @@ + + +]> + + --- hal-0.5.10.orig/doc/api/libhal/xml/object_index.sgml +++ hal-0.5.10/doc/api/libhal/xml/object_index.sgml @@ -0,0 +1,8 @@ + + + + + +

-Index

+Index

D

-
DBUS_API_SUBJECT_TO_CHANGE, DBUS_API_SUBJECT_TO_CHANGE +
DBUS_API_SUBJECT_TO_CHANGE, DBUS_API_SUBJECT_TO_CHANGE

L

-
LibHalChangeSet, LibHalChangeSet +
LibHalChangeSet, LibHalChangeSet
-
LibHalChangeSet_s, struct LibHalChangeSet_s +
LibHalChangeSet_s, struct LibHalChangeSet_s
-
LibHalContext, LibHalContext +
LibHalContext, LibHalContext
-
LibHalDeviceAdded, LibHalDeviceAdded () +
LibHalDeviceAdded, LibHalDeviceAdded ()
-
LibHalDeviceCondition, LibHalDeviceCondition () +
LibHalDeviceCondition, LibHalDeviceCondition ()
-
LibHalDeviceLostCapability, LibHalDeviceLostCapability () +
LibHalDeviceLostCapability, LibHalDeviceLostCapability ()
-
LibHalDeviceNewCapability, LibHalDeviceNewCapability () +
LibHalDeviceNewCapability, LibHalDeviceNewCapability ()
-
LibHalDevicePropertyModified, LibHalDevicePropertyModified () +
LibHalDevicePropertyModified, LibHalDevicePropertyModified ()
-
LibHalDeviceRemoved, LibHalDeviceRemoved () +
LibHalDeviceRemoved, LibHalDeviceRemoved ()
-
LibHalGlobalInterfaceLockAcquired, LibHalGlobalInterfaceLockAcquired () +
LibHalGlobalInterfaceLockAcquired, LibHalGlobalInterfaceLockAcquired ()
-
LibHalGlobalInterfaceLockReleased, LibHalGlobalInterfaceLockReleased () +
LibHalGlobalInterfaceLockReleased, LibHalGlobalInterfaceLockReleased ()
-
LibHalIntegrateDBusIntoMainLoop, LibHalIntegrateDBusIntoMainLoop () +
LibHalIntegrateDBusIntoMainLoop, LibHalIntegrateDBusIntoMainLoop ()
-
LibHalInterfaceLockAcquired, LibHalInterfaceLockAcquired () +
LibHalInterfaceLockAcquired, LibHalInterfaceLockAcquired ()
-
LibHalInterfaceLockReleased, LibHalInterfaceLockReleased () +
LibHalInterfaceLockReleased, LibHalInterfaceLockReleased ()
-
LibHalProperty, LibHalProperty +
LibHalProperty, LibHalProperty
-
LibHalPropertySet, LibHalPropertySet +
LibHalPropertySet, LibHalPropertySet
-
LibHalPropertySetIterator, LibHalPropertySetIterator +
LibHalPropertySetIterator, LibHalPropertySetIterator
-
LibHalPropertySetIterator_s, struct LibHalPropertySetIterator_s +
LibHalPropertySetIterator_s, struct LibHalPropertySetIterator_s
-
LibHalPropertyType, enum LibHalPropertyType +
LibHalPropertyType, enum LibHalPropertyType
-
LibHalSingletonDeviceAdded, LibHalSingletonDeviceAdded () +
LibHalSingletonDeviceAdded, LibHalSingletonDeviceAdded ()
-
LibHalSingletonDeviceRemoved, LibHalSingletonDeviceRemoved () +
LibHalSingletonDeviceRemoved, LibHalSingletonDeviceRemoved ()
-
libhal_acquire_global_interface_lock, libhal_acquire_global_interface_lock () +
libhal_acquire_global_interface_lock, libhal_acquire_global_interface_lock ()
-
libhal_changeset_set_property_bool, libhal_changeset_set_property_bool () +
libhal_changeset_set_property_bool, libhal_changeset_set_property_bool ()
-
libhal_changeset_set_property_double, libhal_changeset_set_property_double () +
libhal_changeset_set_property_double, libhal_changeset_set_property_double ()
-
libhal_changeset_set_property_int, libhal_changeset_set_property_int () +
libhal_changeset_set_property_int, libhal_changeset_set_property_int ()
-
libhal_changeset_set_property_string, libhal_changeset_set_property_string () +
libhal_changeset_set_property_string, libhal_changeset_set_property_string ()
-
libhal_changeset_set_property_strlist, libhal_changeset_set_property_strlist () +
libhal_changeset_set_property_strlist, libhal_changeset_set_property_strlist ()
-
libhal_changeset_set_property_uint64, libhal_changeset_set_property_uint64 () +
libhal_changeset_set_property_uint64, libhal_changeset_set_property_uint64 ()
-
LIBHAL_CHECK_LIBHALCONTEXT, LIBHAL_CHECK_LIBHALCONTEXT() +
LIBHAL_CHECK_LIBHALCONTEXT, LIBHAL_CHECK_LIBHALCONTEXT()
-
libhal_ctx_free, libhal_ctx_free () +
libhal_ctx_free, libhal_ctx_free ()
-
libhal_ctx_get_dbus_connection, libhal_ctx_get_dbus_connection () +
libhal_ctx_get_dbus_connection, libhal_ctx_get_dbus_connection ()
-
libhal_ctx_get_user_data, libhal_ctx_get_user_data () +
libhal_ctx_get_user_data, libhal_ctx_get_user_data ()
-
libhal_ctx_init, libhal_ctx_init () +
libhal_ctx_init, libhal_ctx_init ()
-
libhal_ctx_init_direct, libhal_ctx_init_direct () +
libhal_ctx_init_direct, libhal_ctx_init_direct ()
-
libhal_ctx_new, libhal_ctx_new () +
libhal_ctx_new, libhal_ctx_new ()
-
libhal_ctx_set_cache, libhal_ctx_set_cache () +
libhal_ctx_set_cache, libhal_ctx_set_cache ()
-
libhal_ctx_set_dbus_connection, libhal_ctx_set_dbus_connection () +
libhal_ctx_set_dbus_connection, libhal_ctx_set_dbus_connection ()
-
libhal_ctx_set_device_added, libhal_ctx_set_device_added () +
libhal_ctx_set_device_added, libhal_ctx_set_device_added ()
-
libhal_ctx_set_device_condition, libhal_ctx_set_device_condition () +
libhal_ctx_set_device_condition, libhal_ctx_set_device_condition ()
-
libhal_ctx_set_device_lost_capability, libhal_ctx_set_device_lost_capability () +
libhal_ctx_set_device_lost_capability, libhal_ctx_set_device_lost_capability ()
-
libhal_ctx_set_device_new_capability, libhal_ctx_set_device_new_capability () +
libhal_ctx_set_device_new_capability, libhal_ctx_set_device_new_capability ()
-
libhal_ctx_set_device_property_modified, libhal_ctx_set_device_property_modified () +
libhal_ctx_set_device_property_modified, libhal_ctx_set_device_property_modified ()
-
libhal_ctx_set_device_removed, libhal_ctx_set_device_removed () +
libhal_ctx_set_device_removed, libhal_ctx_set_device_removed ()
-
libhal_ctx_set_global_interface_lock_acquired, libhal_ctx_set_global_interface_lock_acquired () +
libhal_ctx_set_global_interface_lock_acquired, libhal_ctx_set_global_interface_lock_acquired ()
-
libhal_ctx_set_global_interface_lock_released, libhal_ctx_set_global_interface_lock_released () +
libhal_ctx_set_global_interface_lock_released, libhal_ctx_set_global_interface_lock_released ()
-
libhal_ctx_set_interface_lock_acquired, libhal_ctx_set_interface_lock_acquired () +
libhal_ctx_set_interface_lock_acquired, libhal_ctx_set_interface_lock_acquired ()
-
libhal_ctx_set_interface_lock_released, libhal_ctx_set_interface_lock_released () +
libhal_ctx_set_interface_lock_released, libhal_ctx_set_interface_lock_released ()
-
libhal_ctx_set_singleton_device_added, libhal_ctx_set_singleton_device_added () +
libhal_ctx_set_singleton_device_added, libhal_ctx_set_singleton_device_added ()
-
libhal_ctx_set_singleton_device_removed, libhal_ctx_set_singleton_device_removed () +
libhal_ctx_set_singleton_device_removed, libhal_ctx_set_singleton_device_removed ()
-
libhal_ctx_set_user_data, libhal_ctx_set_user_data () +
libhal_ctx_set_user_data, libhal_ctx_set_user_data ()
-
libhal_ctx_shutdown, libhal_ctx_shutdown () +
libhal_ctx_shutdown, libhal_ctx_shutdown ()
-
LIBHAL_DEPRECATED, LIBHAL_DEPRECATED +
LIBHAL_DEPRECATED, LIBHAL_DEPRECATED
-
libhal_device_acquire_interface_lock, libhal_device_acquire_interface_lock () +
libhal_device_acquire_interface_lock, libhal_device_acquire_interface_lock ()
-
libhal_device_addon_is_ready, libhal_device_addon_is_ready () +
libhal_device_addon_is_ready, libhal_device_addon_is_ready ()
-
libhal_device_add_capability, libhal_device_add_capability () +
libhal_device_add_capability, libhal_device_add_capability ()
-
libhal_device_add_property_watch, libhal_device_add_property_watch () +
libhal_device_add_property_watch, libhal_device_add_property_watch ()
-
libhal_device_claim_interface, libhal_device_claim_interface () +
libhal_device_claim_interface, libhal_device_claim_interface ()
-
libhal_device_commit_changeset, libhal_device_commit_changeset () +
libhal_device_commit_changeset, libhal_device_commit_changeset ()
-
libhal_device_commit_to_gdl, libhal_device_commit_to_gdl () +
libhal_device_commit_to_gdl, libhal_device_commit_to_gdl ()
-
libhal_device_emit_condition, libhal_device_emit_condition () +
libhal_device_emit_condition, libhal_device_emit_condition ()
-
libhal_device_exists, libhal_device_exists () +
libhal_device_exists, libhal_device_exists ()
-
libhal_device_free_changeset, libhal_device_free_changeset () +
libhal_device_free_changeset, libhal_device_free_changeset ()
-
libhal_device_get_all_properties, libhal_device_get_all_properties () +
libhal_device_get_all_properties, libhal_device_get_all_properties ()
-
libhal_device_get_property_bool, libhal_device_get_property_bool () +
libhal_device_get_property_bool, libhal_device_get_property_bool ()
-
libhal_device_get_property_double, libhal_device_get_property_double () +
libhal_device_get_property_double, libhal_device_get_property_double ()
-
libhal_device_get_property_int, libhal_device_get_property_int () +
libhal_device_get_property_int, libhal_device_get_property_int ()
-
libhal_device_get_property_string, libhal_device_get_property_string () +
libhal_device_get_property_string, libhal_device_get_property_string ()
-
libhal_device_get_property_strlist, libhal_device_get_property_strlist () +
libhal_device_get_property_strlist, libhal_device_get_property_strlist ()
-
libhal_device_get_property_type, libhal_device_get_property_type () +
libhal_device_get_property_type, libhal_device_get_property_type ()
-
libhal_device_get_property_uint64, libhal_device_get_property_uint64 () +
libhal_device_get_property_uint64, libhal_device_get_property_uint64 ()
-
libhal_device_is_caller_locked_out, libhal_device_is_caller_locked_out () +
libhal_device_is_caller_locked_out, libhal_device_is_caller_locked_out ()
-
libhal_device_is_caller_privileged, libhal_device_is_caller_privileged () +
libhal_device_is_caller_privileged, libhal_device_is_caller_privileged ()
-
libhal_device_is_locked_by_others, libhal_device_is_locked_by_others () +
libhal_device_is_locked_by_others, libhal_device_is_locked_by_others ()
-
libhal_device_lock, libhal_device_lock () +
libhal_device_lock, libhal_device_lock ()
-
libhal_device_matches, libhal_device_matches () +
libhal_device_matches, libhal_device_matches ()
-
libhal_device_new_changeset, libhal_device_new_changeset () +
libhal_device_new_changeset, libhal_device_new_changeset ()
-
libhal_device_print, libhal_device_print () +
libhal_device_print, libhal_device_print ()
-
libhal_device_property_exists, libhal_device_property_exists () +
libhal_device_property_exists, libhal_device_property_exists ()
-
libhal_device_property_strlist_append, libhal_device_property_strlist_append () +
libhal_device_property_strlist_append, libhal_device_property_strlist_append ()
-
libhal_device_property_strlist_prepend, libhal_device_property_strlist_prepend () +
libhal_device_property_strlist_prepend, libhal_device_property_strlist_prepend ()
-
libhal_device_property_strlist_remove, libhal_device_property_strlist_remove () +
libhal_device_property_strlist_remove, libhal_device_property_strlist_remove ()
-
libhal_device_property_strlist_remove_index, libhal_device_property_strlist_remove_index () +
libhal_device_property_strlist_remove_index, libhal_device_property_strlist_remove_index ()
-
libhal_device_property_watch_all, libhal_device_property_watch_all () +
libhal_device_property_watch_all, libhal_device_property_watch_all ()
-
libhal_device_query_capability, libhal_device_query_capability () +
libhal_device_query_capability, libhal_device_query_capability ()
-
libhal_device_release_interface_lock, libhal_device_release_interface_lock () +
libhal_device_release_interface_lock, libhal_device_release_interface_lock ()
-
libhal_device_remove_property, libhal_device_remove_property () +
libhal_device_remove_property, libhal_device_remove_property ()
-
libhal_device_remove_property_watch, libhal_device_remove_property_watch () +
libhal_device_remove_property_watch, libhal_device_remove_property_watch ()
-
libhal_device_reprobe, libhal_device_reprobe () +
libhal_device_reprobe, libhal_device_reprobe ()
-
libhal_device_rescan, libhal_device_rescan () +
libhal_device_rescan, libhal_device_rescan ()
-
libhal_device_set_property_bool, libhal_device_set_property_bool () +
libhal_device_set_property_bool, libhal_device_set_property_bool ()
-
libhal_device_set_property_double, libhal_device_set_property_double () +
libhal_device_set_property_double, libhal_device_set_property_double ()
-
libhal_device_set_property_int, libhal_device_set_property_int () +
libhal_device_set_property_int, libhal_device_set_property_int ()
-
libhal_device_set_property_string, libhal_device_set_property_string () +
libhal_device_set_property_string, libhal_device_set_property_string ()
-
libhal_device_set_property_uint64, libhal_device_set_property_uint64 () +
libhal_device_set_property_uint64, libhal_device_set_property_uint64 ()
-
libhal_device_singleton_addon_is_ready, libhal_device_singleton_addon_is_ready () +
libhal_device_singleton_addon_is_ready, libhal_device_singleton_addon_is_ready ()
-
libhal_device_unlock, libhal_device_unlock () +
libhal_device_unlock, libhal_device_unlock ()
-
libhal_find_device_by_capability, libhal_find_device_by_capability () +
libhal_find_device_by_capability, libhal_find_device_by_capability ()
-
LIBHAL_FREE_DBUS_ERROR, LIBHAL_FREE_DBUS_ERROR() +
LIBHAL_FREE_DBUS_ERROR, LIBHAL_FREE_DBUS_ERROR()
-
libhal_free_property_set, libhal_free_property_set () +
libhal_free_property_set, libhal_free_property_set ()
-
libhal_free_string, libhal_free_string () +
libhal_free_string, libhal_free_string ()
-
libhal_free_string_array, libhal_free_string_array () +
libhal_free_string_array, libhal_free_string_array ()
-
libhal_get_all_devices, libhal_get_all_devices () +
libhal_get_all_devices, libhal_get_all_devices ()
-
libhal_manager_find_device_string_match, libhal_manager_find_device_string_match () +
libhal_manager_find_device_string_match, libhal_manager_find_device_string_match ()
-
libhal_merge_properties, libhal_merge_properties () +
libhal_merge_properties, libhal_merge_properties ()
-
libhal_new_device, libhal_new_device () +
libhal_new_device, libhal_new_device ()
-
libhal_property_set_get_num_elems, libhal_property_set_get_num_elems () +
libhal_property_set_get_num_elems, libhal_property_set_get_num_elems ()
-
libhal_property_set_sort, libhal_property_set_sort () +
libhal_property_set_sort, libhal_property_set_sort ()
-
libhal_psi_get_bool, libhal_psi_get_bool () +
libhal_psi_get_bool, libhal_psi_get_bool ()
-
libhal_psi_get_double, libhal_psi_get_double () +
libhal_psi_get_double, libhal_psi_get_double ()
-
libhal_psi_get_int, libhal_psi_get_int () +
libhal_psi_get_int, libhal_psi_get_int ()
-
libhal_psi_get_key, libhal_psi_get_key () +
libhal_psi_get_key, libhal_psi_get_key ()
-
libhal_psi_get_string, libhal_psi_get_string () +
libhal_psi_get_string, libhal_psi_get_string ()
-
libhal_psi_get_strlist, libhal_psi_get_strlist () +
libhal_psi_get_strlist, libhal_psi_get_strlist ()
-
libhal_psi_get_type, libhal_psi_get_type () +
libhal_psi_get_type, libhal_psi_get_type ()
-
libhal_psi_get_uint64, libhal_psi_get_uint64 () +
libhal_psi_get_uint64, libhal_psi_get_uint64 ()
-
libhal_psi_has_more, libhal_psi_has_more () +
libhal_psi_has_more, libhal_psi_has_more ()
-
libhal_psi_init, libhal_psi_init () +
libhal_psi_init, libhal_psi_init ()
-
libhal_psi_next, libhal_psi_next () +
libhal_psi_next, libhal_psi_next ()
-
libhal_ps_get_bool, libhal_ps_get_bool () +
libhal_ps_get_bool, libhal_ps_get_bool ()
-
libhal_ps_get_double, libhal_ps_get_double () +
libhal_ps_get_double, libhal_ps_get_double ()
-
libhal_ps_get_int32, libhal_ps_get_int32 () +
libhal_ps_get_int32, libhal_ps_get_int32 ()
-
libhal_ps_get_string, libhal_ps_get_string () +
libhal_ps_get_string, libhal_ps_get_string ()
-
libhal_ps_get_type, libhal_ps_get_type () +
libhal_ps_get_type, libhal_ps_get_type ()
-
libhal_ps_get_uint64, libhal_ps_get_uint64 () +
libhal_ps_get_uint64, libhal_ps_get_uint64 ()
-
libhal_release_global_interface_lock, libhal_release_global_interface_lock () +
libhal_release_global_interface_lock, libhal_release_global_interface_lock ()
-
libhal_remove_device, libhal_remove_device () +
libhal_remove_device, libhal_remove_device ()
-
libhal_string_array_length, libhal_string_array_length () +
libhal_string_array_length, libhal_string_array_length ()
--- hal-0.5.10.orig/doc/api/libhal/html/index.html +++ hal-0.5.10/doc/api/libhal/html/index.html @@ -3,7 +3,7 @@ HAL Client Library Reference Manual - + @@ -21,14 +21,14 @@ David Zeuthen


-     
+     
  

Version 0.5.10

-

+

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later @@ -36,7 +36,7 @@ Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You may obtain a copy of the GNU Free Documentation License from the Free Software - Foundation by visiting their Web site or by writing + Foundation by visiting their Web site or by writing to:

--- hal-0.5.10.orig/doc/api/libhal/html/rn01.html +++ hal-0.5.10/doc/api/libhal/html/rn01.html @@ -3,7 +3,7 @@ API Reference - + @@ -25,7 +25,7 @@

-API Reference

+API Reference

--- hal-0.5.10.orig/doc/api/libhal/html/libhal-libhal.html +++ hal-0.5.10/doc/api/libhal/html/libhal-libhal.html @@ -3,7 +3,7 @@ libhal - + @@ -23,16 +23,16 @@
HAL Client Library Reference Manual Next
Top +
Top  |  - Description
@@ -44,372 +44,372 @@ -#define DBUS_API_SUBJECT_TO_CHANGE -#define LIBHAL_DEPRECATED -#define LIBHAL_FREE_DBUS_ERROR (_dbus_error_) -#define LIBHAL_CHECK_LIBHALCONTEXT (_ctx_, _ret_) -enum LibHalPropertyType; -typedef LibHalContext; -typedef LibHalProperty; -typedef LibHalPropertySet; -void (*LibHalIntegrateDBusIntoMainLoop) (LibHalContext *ctx, +#define DBUS_API_SUBJECT_TO_CHANGE +#define LIBHAL_DEPRECATED +#define LIBHAL_FREE_DBUS_ERROR (_dbus_error_) +#define LIBHAL_CHECK_LIBHALCONTEXT (_ctx_, _ret_) +enum LibHalPropertyType; +typedef LibHalContext; +typedef LibHalProperty; +typedef LibHalPropertySet; +void (*LibHalIntegrateDBusIntoMainLoop) (LibHalContext *ctx, DBusConnection *dbus_connection); -void (*LibHalDeviceAdded) (LibHalContext *ctx, +void (*LibHalDeviceAdded) (LibHalContext *ctx, const char *udi); -void (*LibHalDeviceRemoved) (LibHalContext *ctx, +void (*LibHalDeviceRemoved) (LibHalContext *ctx, const char *udi); -void (*LibHalDeviceNewCapability) (LibHalContext *ctx, +void (*LibHalDeviceNewCapability) (LibHalContext *ctx, const char *udi, const char *capability); -void (*LibHalDeviceLostCapability) (LibHalContext *ctx, +void (*LibHalDeviceLostCapability) (LibHalContext *ctx, const char *udi, const char *capability); -void (*LibHalDevicePropertyModified) (LibHalContext *ctx, +void (*LibHalDevicePropertyModified) (LibHalContext *ctx, const char *udi, const char *key, dbus_bool_t is_removed, dbus_bool_t is_added); -void (*LibHalDeviceCondition) (LibHalContext *ctx, +void (*LibHalDeviceCondition) (LibHalContext *ctx, const char *udi, const char *condition_name, const char *condition_detail); -void (*LibHalGlobalInterfaceLockAcquired) - (LibHalContext *ctx, +void (*LibHalGlobalInterfaceLockAcquired) + (LibHalContext *ctx, const char *interface_name, const char *lock_owner, int num_locks); -void (*LibHalGlobalInterfaceLockReleased) - (LibHalContext *ctx, +void (*LibHalGlobalInterfaceLockReleased) + (LibHalContext *ctx, const char *interface_name, const char *lock_owner, int num_locks); -void (*LibHalInterfaceLockAcquired) (LibHalContext *ctx, +void (*LibHalInterfaceLockAcquired) (LibHalContext *ctx, const char *udi, const char *interface_name, const char *lock_owner, int num_locks); -void (*LibHalInterfaceLockReleased) (LibHalContext *ctx, +void (*LibHalInterfaceLockReleased) (LibHalContext *ctx, const char *udi, const char *interface_name, const char *lock_owner, int num_locks); -void (*LibHalSingletonDeviceAdded) (LibHalContext *ctx, +void (*LibHalSingletonDeviceAdded) (LibHalContext *ctx, const char *udi, - const LibHalPropertySet *properties); -void (*LibHalSingletonDeviceRemoved) (LibHalContext *ctx, + const LibHalPropertySet *properties); +void (*LibHalSingletonDeviceRemoved) (LibHalContext *ctx, const char *udi, - const LibHalPropertySet *properties); -LibHalContext* libhal_ctx_new (void); -dbus_bool_t libhal_ctx_set_cache (LibHalContext *ctx, + const LibHalPropertySet *properties); +LibHalContext* libhal_ctx_new (void); +dbus_bool_t libhal_ctx_set_cache (LibHalContext *ctx, dbus_bool_t use_cache); -dbus_bool_t libhal_ctx_set_dbus_connection (LibHalContext *ctx, +dbus_bool_t libhal_ctx_set_dbus_connection (LibHalContext *ctx, DBusConnection *conn); -DBusConnection* libhal_ctx_get_dbus_connection (LibHalContext *ctx); -dbus_bool_t libhal_ctx_set_user_data (LibHalContext *ctx, +DBusConnection* libhal_ctx_get_dbus_connection (LibHalContext *ctx); +dbus_bool_t libhal_ctx_set_user_data (LibHalContext *ctx, void *user_data); -void* libhal_ctx_get_user_data (LibHalContext *ctx); -dbus_bool_t libhal_ctx_set_device_added (LibHalContext *ctx, - LibHalDeviceAdded callback); -dbus_bool_t libhal_ctx_set_device_removed (LibHalContext *ctx, - LibHalDeviceRemoved callback); -dbus_bool_t libhal_ctx_set_device_new_capability - (LibHalContext *ctx, - LibHalDeviceNewCapability callback); -dbus_bool_t libhal_ctx_set_device_lost_capability - (LibHalContext *ctx, - LibHalDeviceLostCapability callback); -dbus_bool_t libhal_ctx_set_device_property_modified - (LibHalContext *ctx, - LibHalDevicePropertyModified callback); -dbus_bool_t libhal_ctx_set_device_condition (LibHalContext *ctx, - LibHalDeviceCondition callback); -dbus_bool_t libhal_ctx_set_global_interface_lock_acquired - (LibHalContext *ctx, - LibHalGlobalInterfaceLockAcquired callback); -dbus_bool_t libhal_ctx_set_global_interface_lock_released - (LibHalContext *ctx, - LibHalGlobalInterfaceLockReleased callback); -dbus_bool_t libhal_ctx_set_interface_lock_acquired - (LibHalContext *ctx, - LibHalInterfaceLockAcquired callback); -dbus_bool_t libhal_ctx_set_interface_lock_released - (LibHalContext *ctx, - LibHalInterfaceLockReleased callback); -dbus_bool_t libhal_ctx_set_singleton_device_added - (LibHalContext *ctx, - LibHalSingletonDeviceAdded callback); -dbus_bool_t libhal_ctx_set_singleton_device_removed - (LibHalContext *ctx, - LibHalSingletonDeviceRemoved callback); -dbus_bool_t libhal_ctx_init (LibHalContext *ctx, - DBusError *error); -dbus_bool_t libhal_ctx_shutdown (LibHalContext *ctx, - DBusError *error); -dbus_bool_t libhal_ctx_free (LibHalContext *ctx); -LibHalContext* libhal_ctx_init_direct (DBusError *error); -char** libhal_get_all_devices (LibHalContext *ctx, +void* libhal_ctx_get_user_data (LibHalContext *ctx); +dbus_bool_t libhal_ctx_set_device_added (LibHalContext *ctx, + LibHalDeviceAdded callback); +dbus_bool_t libhal_ctx_set_device_removed (LibHalContext *ctx, + LibHalDeviceRemoved callback); +dbus_bool_t libhal_ctx_set_device_new_capability + (LibHalContext *ctx, + LibHalDeviceNewCapability callback); +dbus_bool_t libhal_ctx_set_device_lost_capability + (LibHalContext *ctx, + LibHalDeviceLostCapability callback); +dbus_bool_t libhal_ctx_set_device_property_modified + (LibHalContext *ctx, + LibHalDevicePropertyModified callback); +dbus_bool_t libhal_ctx_set_device_condition (LibHalContext *ctx, + LibHalDeviceCondition callback); +dbus_bool_t libhal_ctx_set_global_interface_lock_acquired + (LibHalContext *ctx, + LibHalGlobalInterfaceLockAcquired callback); +dbus_bool_t libhal_ctx_set_global_interface_lock_released + (LibHalContext *ctx, + LibHalGlobalInterfaceLockReleased callback); +dbus_bool_t libhal_ctx_set_interface_lock_acquired + (LibHalContext *ctx, + LibHalInterfaceLockAcquired callback); +dbus_bool_t libhal_ctx_set_interface_lock_released + (LibHalContext *ctx, + LibHalInterfaceLockReleased callback); +dbus_bool_t libhal_ctx_set_singleton_device_added + (LibHalContext *ctx, + LibHalSingletonDeviceAdded callback); +dbus_bool_t libhal_ctx_set_singleton_device_removed + (LibHalContext *ctx, + LibHalSingletonDeviceRemoved callback); +dbus_bool_t libhal_ctx_init (LibHalContext *ctx, + DBusError *error); +dbus_bool_t libhal_ctx_shutdown (LibHalContext *ctx, + DBusError *error); +dbus_bool_t libhal_ctx_free (LibHalContext *ctx); +LibHalContext* libhal_ctx_init_direct (DBusError *error); +char** libhal_get_all_devices (LibHalContext *ctx, int *num_devices, DBusError *error); -dbus_bool_t libhal_device_exists (LibHalContext *ctx, +dbus_bool_t libhal_device_exists (LibHalContext *ctx, const char *udi, DBusError *error); -dbus_bool_t libhal_device_print (LibHalContext *ctx, +dbus_bool_t libhal_device_print (LibHalContext *ctx, const char *udi, DBusError *error); -dbus_bool_t libhal_device_property_exists (LibHalContext *ctx, +dbus_bool_t libhal_device_property_exists (LibHalContext *ctx, const char *udi, const char *key, DBusError *error); -char* libhal_device_get_property_string (LibHalContext *ctx, +char* libhal_device_get_property_string (LibHalContext *ctx, const char *udi, const char *key, DBusError *error); -dbus_int32_t libhal_device_get_property_int (LibHalContext *ctx, +dbus_int32_t libhal_device_get_property_int (LibHalContext *ctx, const char *udi, const char *key, DBusError *error); -dbus_uint64_t libhal_device_get_property_uint64 (LibHalContext *ctx, +dbus_uint64_t libhal_device_get_property_uint64 (LibHalContext *ctx, const char *udi, const char *key, DBusError *error); -double libhal_device_get_property_double (LibHalContext *ctx, +double libhal_device_get_property_double (LibHalContext *ctx, const char *udi, const char *key, DBusError *error); -dbus_bool_t libhal_device_get_property_bool (LibHalContext *ctx, +dbus_bool_t libhal_device_get_property_bool (LibHalContext *ctx, const char *udi, const char *key, DBusError *error); -char** libhal_device_get_property_strlist (LibHalContext *ctx, +char** libhal_device_get_property_strlist (LibHalContext *ctx, const char *udi, const char *key, DBusError *error); -dbus_bool_t libhal_device_set_property_string (LibHalContext *ctx, +dbus_bool_t libhal_device_set_property_string (LibHalContext *ctx, const char *udi, const char *key, const char *value, DBusError *error); -dbus_bool_t libhal_device_set_property_int (LibHalContext *ctx, +dbus_bool_t libhal_device_set_property_int (LibHalContext *ctx, const char *udi, const char *key, dbus_int32_t value, DBusError *error); -dbus_bool_t libhal_device_set_property_uint64 (LibHalContext *ctx, +dbus_bool_t libhal_device_set_property_uint64 (LibHalContext *ctx, const char *udi, const char *key, dbus_uint64_t value, DBusError *error); -dbus_bool_t libhal_device_set_property_double (LibHalContext *ctx, +dbus_bool_t libhal_device_set_property_double (LibHalContext *ctx, const char *udi, const char *key, double value, DBusError *error); -dbus_bool_t libhal_device_set_property_bool (LibHalContext *ctx, +dbus_bool_t libhal_device_set_property_bool (LibHalContext *ctx, const char *udi, const char *key, dbus_bool_t value, DBusError *error); -dbus_bool_t libhal_device_property_strlist_append - (LibHalContext *ctx, +dbus_bool_t libhal_device_property_strlist_append + (LibHalContext *ctx, const char *udi, const char *key, const char *value, DBusError *error); -dbus_bool_t libhal_device_property_strlist_prepend - (LibHalContext *ctx, +dbus_bool_t libhal_device_property_strlist_prepend + (LibHalContext *ctx, const char *udi, const char *key, const char *value, DBusError *error); -dbus_bool_t libhal_device_property_strlist_remove_index - (LibHalContext *ctx, +dbus_bool_t libhal_device_property_strlist_remove_index + (LibHalContext *ctx, const char *udi, const char *key, unsigned int idx, DBusError *error); -dbus_bool_t libhal_device_property_strlist_remove - (LibHalContext *ctx, +dbus_bool_t libhal_device_property_strlist_remove + (LibHalContext *ctx, const char *udi, const char *key, const char *value, DBusError *error); -dbus_bool_t libhal_device_remove_property (LibHalContext *ctx, +dbus_bool_t libhal_device_remove_property (LibHalContext *ctx, const char *udi, const char *key, DBusError *error); -LibHalPropertyTypelibhal_device_get_property_type (LibHalContext *ctx, +LibHalPropertyTypelibhal_device_get_property_type (LibHalContext *ctx, const char *udi, const char *key, DBusError *error); -struct LibHalChangeSet_s; -typedef LibHalChangeSet; -LibHalChangeSet* libhal_device_new_changeset (const char *udi); -dbus_bool_t libhal_changeset_set_property_string - (LibHalChangeSet *changeset, +struct LibHalChangeSet_s; +typedef LibHalChangeSet; +LibHalChangeSet* libhal_device_new_changeset (const char *udi); +dbus_bool_t libhal_changeset_set_property_string + (LibHalChangeSet *changeset, const char *key, const char *value); -dbus_bool_t libhal_changeset_set_property_int (LibHalChangeSet *changeset, +dbus_bool_t libhal_changeset_set_property_int (LibHalChangeSet *changeset, const char *key, dbus_int32_t value); -dbus_bool_t libhal_changeset_set_property_uint64 - (LibHalChangeSet *changeset, +dbus_bool_t libhal_changeset_set_property_uint64 + (LibHalChangeSet *changeset, const char *key, dbus_uint64_t value); -dbus_bool_t libhal_changeset_set_property_double - (LibHalChangeSet *changeset, +dbus_bool_t libhal_changeset_set_property_double + (LibHalChangeSet *changeset, const char *key, double value); -dbus_bool_t libhal_changeset_set_property_bool (LibHalChangeSet *changeset, +dbus_bool_t libhal_changeset_set_property_bool (LibHalChangeSet *changeset, const char *key, dbus_bool_t value); -dbus_bool_t libhal_changeset_set_property_strlist - (LibHalChangeSet *changeset, +dbus_bool_t libhal_changeset_set_property_strlist + (LibHalChangeSet *changeset, const char *key, const char **value); -dbus_bool_t libhal_device_commit_changeset (LibHalContext *ctx, - LibHalChangeSet *changeset, +dbus_bool_t libhal_device_commit_changeset (LibHalContext *ctx, + LibHalChangeSet *changeset, DBusError *error); -void libhal_device_free_changeset (LibHalChangeSet *changeset); -LibHalPropertySet* libhal_device_get_all_properties (LibHalContext *ctx, +void libhal_device_free_changeset (LibHalChangeSet *changeset); +LibHalPropertySet* libhal_device_get_all_properties (LibHalContext *ctx, const char *udi, DBusError *error); -void libhal_property_set_sort (LibHalPropertySet *set); -void libhal_free_property_set (LibHalPropertySet *set); -unsigned int libhal_property_set_get_num_elems (LibHalPropertySet *set); -LibHalPropertyTypelibhal_ps_get_type (const LibHalPropertySet *set, +void libhal_property_set_sort (LibHalPropertySet *set); +void libhal_free_property_set (LibHalPropertySet *set); +unsigned int libhal_property_set_get_num_elems (LibHalPropertySet *set); +LibHalPropertyTypelibhal_ps_get_type (const LibHalPropertySet *set, const char *key); -const char* libhal_ps_get_string (const LibHalPropertySet *set, +const char* libhal_ps_get_string (const LibHalPropertySet *set, const char *key); -dbus_int32_t libhal_ps_get_int32 (const LibHalPropertySet *set, +dbus_int32_t libhal_ps_get_int32 (const LibHalPropertySet *set, const char *key); -dbus_uint64_t libhal_ps_get_uint64 (const LibHalPropertySet *set, +dbus_uint64_t libhal_ps_get_uint64 (const LibHalPropertySet *set, const char *key); -double libhal_ps_get_double (const LibHalPropertySet *set, +double libhal_ps_get_double (const LibHalPropertySet *set, const char *key); -dbus_bool_t libhal_ps_get_bool (const LibHalPropertySet *set, +dbus_bool_t libhal_ps_get_bool (const LibHalPropertySet *set, const char *key); -struct LibHalPropertySetIterator_s; -typedef LibHalPropertySetIterator; -void libhal_psi_init (LibHalPropertySetIterator *iter, - LibHalPropertySet *set); -dbus_bool_t libhal_psi_has_more (LibHalPropertySetIterator *iter); -void libhal_psi_next (LibHalPropertySetIterator *iter); -LibHalPropertyTypelibhal_psi_get_type (LibHalPropertySetIterator *iter); -char* libhal_psi_get_key (LibHalPropertySetIterator *iter); -char* libhal_psi_get_string (LibHalPropertySetIterator *iter); -dbus_int32_t libhal_psi_get_int (LibHalPropertySetIterator *iter); -dbus_uint64_t libhal_psi_get_uint64 (LibHalPropertySetIterator *iter); -double libhal_psi_get_double (LibHalPropertySetIterator *iter); -dbus_bool_t libhal_psi_get_bool (LibHalPropertySetIterator *iter); -char** libhal_psi_get_strlist (LibHalPropertySetIterator *iter); -unsigned int libhal_string_array_length (char **str_array); -void libhal_free_string_array (char **str_array); -void libhal_free_string (char *str); -char* libhal_new_device (LibHalContext *ctx, +struct LibHalPropertySetIterator_s; +typedef LibHalPropertySetIterator; +void libhal_psi_init (LibHalPropertySetIterator *iter, + LibHalPropertySet *set); +dbus_bool_t libhal_psi_has_more (LibHalPropertySetIterator *iter); +void libhal_psi_next (LibHalPropertySetIterator *iter); +LibHalPropertyTypelibhal_psi_get_type (LibHalPropertySetIterator *iter); +char* libhal_psi_get_key (LibHalPropertySetIterator *iter); +char* libhal_psi_get_string (LibHalPropertySetIterator *iter); +dbus_int32_t libhal_psi_get_int (LibHalPropertySetIterator *iter); +dbus_uint64_t libhal_psi_get_uint64 (LibHalPropertySetIterator *iter); +double libhal_psi_get_double (LibHalPropertySetIterator *iter); +dbus_bool_t libhal_psi_get_bool (LibHalPropertySetIterator *iter); +char** libhal_psi_get_strlist (LibHalPropertySetIterator *iter); +unsigned int libhal_string_array_length (char **str_array); +void libhal_free_string_array (char **str_array); +void libhal_free_string (char *str); +char* libhal_new_device (LibHalContext *ctx, DBusError *error); -dbus_bool_t libhal_device_commit_to_gdl (LibHalContext *ctx, +dbus_bool_t libhal_device_commit_to_gdl (LibHalContext *ctx, const char *temp_udi, const char *udi, DBusError *error); -dbus_bool_t libhal_remove_device (LibHalContext *ctx, +dbus_bool_t libhal_remove_device (LibHalContext *ctx, const char *udi, DBusError *error); -dbus_bool_t libhal_merge_properties (LibHalContext *ctx, +dbus_bool_t libhal_merge_properties (LibHalContext *ctx, const char *target_udi, const char *source_udi, DBusError *error); -dbus_bool_t libhal_device_matches (LibHalContext *ctx, +dbus_bool_t libhal_device_matches (LibHalContext *ctx, const char *udi1, const char *udi2, const char *property_namespace, DBusError *error); -char** libhal_manager_find_device_string_match - (LibHalContext *ctx, +char** libhal_manager_find_device_string_match + (LibHalContext *ctx, const char *key, const char *value, int *num_devices, DBusError *error); -dbus_bool_t libhal_device_add_capability (LibHalContext *ctx, +dbus_bool_t libhal_device_add_capability (LibHalContext *ctx, const char *udi, const char *capability, DBusError *error); -dbus_bool_t libhal_device_query_capability (LibHalContext *ctx, +dbus_bool_t libhal_device_query_capability (LibHalContext *ctx, const char *udi, const char *capability, DBusError *error); -char** libhal_find_device_by_capability (LibHalContext *ctx, +char** libhal_find_device_by_capability (LibHalContext *ctx, const char *capability, int *num_devices, DBusError *error); -dbus_bool_t libhal_device_property_watch_all (LibHalContext *ctx, +dbus_bool_t libhal_device_property_watch_all (LibHalContext *ctx, DBusError *error); -dbus_bool_t libhal_device_add_property_watch (LibHalContext *ctx, +dbus_bool_t libhal_device_add_property_watch (LibHalContext *ctx, const char *udi, DBusError *error); -dbus_bool_t libhal_device_remove_property_watch (LibHalContext *ctx, +dbus_bool_t libhal_device_remove_property_watch (LibHalContext *ctx, const char *udi, DBusError *error); -dbus_bool_t libhal_device_lock (LibHalContext *ctx, +dbus_bool_t libhal_device_lock (LibHalContext *ctx, const char *udi, const char *reason_to_lock, char **reason_why_locked, DBusError *error); -dbus_bool_t libhal_device_unlock (LibHalContext *ctx, +dbus_bool_t libhal_device_unlock (LibHalContext *ctx, const char *udi, DBusError *error); -dbus_bool_t libhal_device_rescan (LibHalContext *ctx, +dbus_bool_t libhal_device_rescan (LibHalContext *ctx, const char *udi, DBusError *error); -dbus_bool_t libhal_device_reprobe (LibHalContext *ctx, +dbus_bool_t libhal_device_reprobe (LibHalContext *ctx, const char *udi, DBusError *error); -dbus_bool_t libhal_device_emit_condition (LibHalContext *ctx, +dbus_bool_t libhal_device_emit_condition (LibHalContext *ctx, const char *udi, const char *condition_name, const char *condition_details, DBusError *error); -dbus_bool_t libhal_device_claim_interface (LibHalContext *ctx, +dbus_bool_t libhal_device_claim_interface (LibHalContext *ctx, const char *udi, const char *interface_name, const char *introspection_xml, DBusError *error); -dbus_bool_t libhal_device_addon_is_ready (LibHalContext *ctx, +dbus_bool_t libhal_device_addon_is_ready (LibHalContext *ctx, const char *udi, DBusError *error); -dbus_bool_t libhal_device_singleton_addon_is_ready - (LibHalContext *ctx, +dbus_bool_t libhal_device_singleton_addon_is_ready + (LibHalContext *ctx, const char *command_line, DBusError *error); -dbus_bool_t libhal_device_acquire_interface_lock - (LibHalContext *ctx, +dbus_bool_t libhal_device_acquire_interface_lock + (LibHalContext *ctx, const char *udi, const char *interface, dbus_bool_t exclusive, DBusError *error); -dbus_bool_t libhal_device_release_interface_lock - (LibHalContext *ctx, +dbus_bool_t libhal_device_release_interface_lock + (LibHalContext *ctx, const char *udi, const char *interface, DBusError *error); -dbus_bool_t libhal_acquire_global_interface_lock - (LibHalContext *ctx, +dbus_bool_t libhal_acquire_global_interface_lock + (LibHalContext *ctx, const char *interface, dbus_bool_t exclusive, DBusError *error); -dbus_bool_t libhal_release_global_interface_lock - (LibHalContext *ctx, +dbus_bool_t libhal_release_global_interface_lock + (LibHalContext *ctx, const char *interface, DBusError *error); -dbus_bool_t libhal_device_is_caller_locked_out (LibHalContext *ctx, +dbus_bool_t libhal_device_is_caller_locked_out (LibHalContext *ctx, const char *udi, const char *interface, const char *caller, DBusError *error); -dbus_bool_t libhal_device_is_locked_by_others (LibHalContext *ctx, +dbus_bool_t libhal_device_is_locked_by_others (LibHalContext *ctx, const char *udi, const char *interface, DBusError *error); -char* libhal_device_is_caller_privileged (LibHalContext *ctx, +char* libhal_device_is_caller_privileged (LibHalContext *ctx, const char *udi, const char *action, const char *caller, @@ -417,17 +417,17 @@
-

Description

+

Description

-

Details

+

Details

-

+

DBUS_API_SUBJECT_TO_CHANGE

-
#define DBUS_API_SUBJECT_TO_CHANGE 
+
#define DBUS_API_SUBJECT_TO_CHANGE 
 

@@ -435,25 +435,25 @@


-

+

LIBHAL_DEPRECATED

-
#define             LIBHAL_DEPRECATED
+
#define             LIBHAL_DEPRECATED


-

+

LIBHAL_FREE_DBUS_ERROR()

-
#define             LIBHAL_FREE_DBUS_ERROR(_dbus_error_)
+
#define             LIBHAL_FREE_DBUS_ERROR(_dbus_error_)

-libhal +libhal

libhal

- + - + - + @@ -489,9 +489,9 @@
-

+

enum LibHalPropertyType

-
typedef enum {
+
typedef enum {
         /** Used to report error condition */
 	LIBHAL_PROPERTY_TYPE_INVALID =    DBUS_TYPE_INVALID,
 
@@ -522,9 +522,9 @@
 

-

+

LibHalContext

-
typedef struct LibHalContext_s LibHalContext;
+
typedef struct LibHalContext_s LibHalContext;
 

Context for connection to the HAL daemon. Opaque, use the @@ -535,9 +535,9 @@


-

+

LibHalProperty

-
typedef struct LibHalProperty_s LibHalProperty;
+
typedef struct LibHalProperty_s LibHalProperty;
 

Represents a property. Opaque.

@@ -547,9 +547,9 @@

-

+

LibHalPropertySet

-
typedef struct LibHalPropertySet_s LibHalPropertySet;
+
typedef struct LibHalPropertySet_s LibHalPropertySet;
 

Represents a set of properties. Opaque; use the @@ -560,9 +560,9 @@


-

+

LibHalIntegrateDBusIntoMainLoop ()

-
void                (*LibHalIntegrateDBusIntoMainLoop)  (LibHalContext *ctx,
+
void                (*LibHalIntegrateDBusIntoMainLoop)  (LibHalContext *ctx,
                                                          DBusConnection *dbus_connection);

Type for function in application code that integrates a @@ -574,12 +574,12 @@

- + - + @@ -588,9 +588,9 @@
-

+

LibHalDeviceAdded ()

-
void                (*LibHalDeviceAdded)                (LibHalContext *ctx,
+
void                (*LibHalDeviceAdded)                (LibHalContext *ctx,
                                                          const char *udi);

Type for callback when a device is added.

@@ -601,12 +601,12 @@
- + - + @@ -615,9 +615,9 @@
-

+

LibHalDeviceRemoved ()

-
void                (*LibHalDeviceRemoved)              (LibHalContext *ctx,
+
void                (*LibHalDeviceRemoved)              (LibHalContext *ctx,
                                                          const char *udi);

Type for callback when a device is removed.

@@ -628,12 +628,12 @@
- + - + @@ -642,9 +642,9 @@
-

+

LibHalDeviceNewCapability ()

-
void                (*LibHalDeviceNewCapability)        (LibHalContext *ctx,
+
void                (*LibHalDeviceNewCapability)        (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *capability);

@@ -656,17 +656,17 @@

- + - + - + @@ -675,9 +675,9 @@
-

+

LibHalDeviceLostCapability ()

-
void                (*LibHalDeviceLostCapability)       (LibHalContext *ctx,
+
void                (*LibHalDeviceLostCapability)       (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *capability);

@@ -689,17 +689,17 @@

- + - + - + @@ -708,9 +708,9 @@
-

+

LibHalDevicePropertyModified ()

-
void                (*LibHalDevicePropertyModified)     (LibHalContext *ctx,
+
void                (*LibHalDevicePropertyModified)     (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          dbus_bool_t is_removed,
@@ -724,27 +724,27 @@
 
- + - + - + - + - + @@ -753,9 +753,9 @@
-

+

LibHalDeviceCondition ()

-
void                (*LibHalDeviceCondition)            (LibHalContext *ctx,
+
void                (*LibHalDeviceCondition)            (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *condition_name,
                                                          const char *condition_detail);
@@ -768,22 +768,22 @@
- + - + - + - + @@ -792,10 +792,10 @@
-

+

LibHalGlobalInterfaceLockAcquired ()

-
void                (*LibHalGlobalInterfaceLockAcquired)
-                                                        (LibHalContext *ctx,
+
void                (*LibHalGlobalInterfaceLockAcquired)
+                                                        (LibHalContext *ctx,
                                                          const char *interface_name,
                                                          const char *lock_owner,
                                                          int num_locks);
@@ -808,22 +808,22 @@
- + - + - + - + @@ -832,10 +832,10 @@
-

+

LibHalGlobalInterfaceLockReleased ()

-
void                (*LibHalGlobalInterfaceLockReleased)
-                                                        (LibHalContext *ctx,
+
void                (*LibHalGlobalInterfaceLockReleased)
+                                                        (LibHalContext *ctx,
                                                          const char *interface_name,
                                                          const char *lock_owner,
                                                          int num_locks);
@@ -848,22 +848,22 @@
- + - + - + - + @@ -872,9 +872,9 @@
-

+

LibHalInterfaceLockAcquired ()

-
void                (*LibHalInterfaceLockAcquired)      (LibHalContext *ctx,
+
void                (*LibHalInterfaceLockAcquired)      (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *interface_name,
                                                          const char *lock_owner,
@@ -888,27 +888,27 @@
 
- + - + - + - + - + @@ -917,9 +917,9 @@
-

+

LibHalInterfaceLockReleased ()

-
void                (*LibHalInterfaceLockReleased)      (LibHalContext *ctx,
+
void                (*LibHalInterfaceLockReleased)      (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *interface_name,
                                                          const char *lock_owner,
@@ -933,27 +933,27 @@
 
- + - + - + - + - + @@ -962,11 +962,11 @@
-

+

LibHalSingletonDeviceAdded ()

-
void                (*LibHalSingletonDeviceAdded)       (LibHalContext *ctx,
+
void                (*LibHalSingletonDeviceAdded)       (LibHalContext *ctx,
                                                          const char *udi,
-                                                         const LibHalPropertySet *properties);
+ const LibHalPropertySet *properties);

Type for callback for addon singletons when a device is added

@@ -976,17 +976,17 @@

- + - + - + @@ -995,11 +995,11 @@
-

+

LibHalSingletonDeviceRemoved ()

-
void                (*LibHalSingletonDeviceRemoved)     (LibHalContext *ctx,
+
void                (*LibHalSingletonDeviceRemoved)     (LibHalContext *ctx,
                                                          const char *udi,
-                                                         const LibHalPropertySet *properties);
+ const LibHalPropertySet *properties);

Type for callback for addon singletons when a device is added

@@ -1009,17 +1009,17 @@

- + - + - + @@ -1028,9 +1028,9 @@
-

+

libhal_ctx_new ()

-
LibHalContext*      libhal_ctx_new                      (void);
+
LibHalContext*      libhal_ctx_new                      (void);

Create a new LibHalContext

@@ -1039,7 +1039,7 @@

_dbus_error_ :

_dbus_error_ : @@ -463,9 +463,9 @@
-

+

LIBHAL_CHECK_LIBHALCONTEXT()

-
#define             LIBHAL_CHECK_LIBHALCONTEXT(_ctx_, _ret_)
+
#define             LIBHAL_CHECK_LIBHALCONTEXT(_ctx_, _ret_)

Handy macro for checking whether a context is valid.

@@ -475,12 +475,12 @@

_ctx_ :

_ctx_ : the context

_ret_ :

_ret_ : what to use for return value if context is invalid

ctx :

ctx : context for connection to hald

dbus_connection :

dbus_connection : DBus connection to use in ctx

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

capability :

capability : capability of the device

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

capability :

capability : capability of the device

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property that has changed

is_removed :

is_removed : whether or not property was removed

is_added :

is_added : whether or not property was added

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

condition_name :

condition_name : name of the condition, e.g. ProcessorOverheating. Consult the HAL spec for details

condition_detail :

condition_detail : detail of condition

ctx :

ctx : context for connection to hald

interface_name :

interface_name : the name of the interface

lock_owner :

lock_owner : what service acquired the lock

num_locks :

num_locks : number of locks on the interface

ctx :

ctx : context for connection to hald

interface_name :

interface_name : the name of the interface

lock_owner :

lock_owner : what service released the lock

num_locks :

num_locks : number of locks on the interface

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

interface_name :

interface_name : the name of the interface

lock_owner :

lock_owner : what service acquired the lock

num_locks :

num_locks : number of locks on the interface

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

interface_name :

interface_name : the name of the interface

lock_owner :

lock_owner : what service released the lock

num_locks :

num_locks : number of locks on the interface

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

properties :

properties : the device's properties

ctx :

ctx : context for connection to hald

udi :

udi : the Unique Device Id

properties :

properties : the device's properties
- + @@ -1047,9 +1047,9 @@
-

+

libhal_ctx_set_cache ()

-
dbus_bool_t         libhal_ctx_set_cache                (LibHalContext *ctx,
+
dbus_bool_t         libhal_ctx_set_cache                (LibHalContext *ctx,
                                                          dbus_bool_t use_cache);

Enable or disable caching. Note: Caching is not actually @@ -1061,17 +1061,17 @@

- + - + - + @@ -1080,9 +1080,9 @@
-

+

libhal_ctx_set_dbus_connection ()

-
dbus_bool_t         libhal_ctx_set_dbus_connection      (LibHalContext *ctx,
+
dbus_bool_t         libhal_ctx_set_dbus_connection      (LibHalContext *ctx,
                                                          DBusConnection *conn);

Set DBus connection to use to talk to hald.

@@ -1093,17 +1093,17 @@
- + - + - + @@ -1112,9 +1112,9 @@
-

+

libhal_ctx_get_dbus_connection ()

-
DBusConnection*     libhal_ctx_get_dbus_connection      (LibHalContext *ctx);
+
DBusConnection*     libhal_ctx_get_dbus_connection      (LibHalContext *ctx);

Get DBus connection used for talking to hald.

@@ -1124,12 +1124,12 @@

- + - + @@ -1138,9 +1138,9 @@
-

+

libhal_ctx_set_user_data ()

-
dbus_bool_t         libhal_ctx_set_user_data            (LibHalContext *ctx,
+
dbus_bool_t         libhal_ctx_set_user_data            (LibHalContext *ctx,
                                                          void *user_data);

Set user data for the context.

@@ -1151,17 +1151,17 @@
- + - + - + @@ -1170,9 +1170,9 @@
-

+

libhal_ctx_get_user_data ()

-
void*               libhal_ctx_get_user_data            (LibHalContext *ctx);
+
void*               libhal_ctx_get_user_data            (LibHalContext *ctx);

Get user data for the context.

@@ -1182,13 +1182,13 @@

- + - - + @@ -1196,10 +1196,10 @@
-

+

libhal_ctx_set_device_added ()

-
dbus_bool_t         libhal_ctx_set_device_added         (LibHalContext *ctx,
-                                                         LibHalDeviceAdded callback);
+
dbus_bool_t         libhal_ctx_set_device_added         (LibHalContext *ctx,
+                                                         LibHalDeviceAdded callback);

Set the callback for when a device is added

@@ -1209,17 +1209,17 @@

- + - + - + @@ -1228,10 +1228,10 @@
-

+

libhal_ctx_set_device_removed ()

-
dbus_bool_t         libhal_ctx_set_device_removed       (LibHalContext *ctx,
-                                                         LibHalDeviceRemoved callback);
+
dbus_bool_t         libhal_ctx_set_device_removed       (LibHalContext *ctx,
+                                                         LibHalDeviceRemoved callback);

Set the callback for when a device is removed.

@@ -1241,17 +1241,17 @@

- + - + - + @@ -1260,11 +1260,11 @@
-

+

libhal_ctx_set_device_new_capability ()

-
dbus_bool_t         libhal_ctx_set_device_new_capability
-                                                        (LibHalContext *ctx,
-                                                         LibHalDeviceNewCapability callback);
+
dbus_bool_t         libhal_ctx_set_device_new_capability
+                                                        (LibHalContext *ctx,
+                                                         LibHalDeviceNewCapability callback);

Set the callback for when a device gains a new capability.

@@ -1274,17 +1274,17 @@

- + - + - + @@ -1293,11 +1293,11 @@
-

+

libhal_ctx_set_device_lost_capability ()

-
dbus_bool_t         libhal_ctx_set_device_lost_capability
-                                                        (LibHalContext *ctx,
-                                                         LibHalDeviceLostCapability callback);
+
dbus_bool_t         libhal_ctx_set_device_lost_capability
+                                                        (LibHalContext *ctx,
+                                                         LibHalDeviceLostCapability callback);

Set the callback for when a device loses a capability

@@ -1307,17 +1307,17 @@

- + - + - + @@ -1326,11 +1326,11 @@
-

+

libhal_ctx_set_device_property_modified ()

-
dbus_bool_t         libhal_ctx_set_device_property_modified
-                                                        (LibHalContext *ctx,
-                                                         LibHalDevicePropertyModified callback);
+
dbus_bool_t         libhal_ctx_set_device_property_modified
+                                                        (LibHalContext *ctx,
+                                                         LibHalDevicePropertyModified callback);

Set the callback for when a property is modified on a device.

@@ -1340,17 +1340,17 @@

- + - + - + @@ -1359,10 +1359,10 @@
-

+

libhal_ctx_set_device_condition ()

-
dbus_bool_t         libhal_ctx_set_device_condition     (LibHalContext *ctx,
-                                                         LibHalDeviceCondition callback);
+
dbus_bool_t         libhal_ctx_set_device_condition     (LibHalContext *ctx,
+                                                         LibHalDeviceCondition callback);

Set the callback for when a device emits a condition

@@ -1372,17 +1372,17 @@

- + - + - + @@ -1391,11 +1391,11 @@
-

+

libhal_ctx_set_global_interface_lock_acquired ()

-
dbus_bool_t         libhal_ctx_set_global_interface_lock_acquired
-                                                        (LibHalContext *ctx,
-                                                         LibHalGlobalInterfaceLockAcquired callback);
+
dbus_bool_t         libhal_ctx_set_global_interface_lock_acquired
+                                                        (LibHalContext *ctx,
+                                                         LibHalGlobalInterfaceLockAcquired callback);

Set the callback for when a global interface lock is acquired.

@@ -1405,17 +1405,17 @@

- + - + - + @@ -1424,11 +1424,11 @@
-

+

libhal_ctx_set_global_interface_lock_released ()

-
dbus_bool_t         libhal_ctx_set_global_interface_lock_released
-                                                        (LibHalContext *ctx,
-                                                         LibHalGlobalInterfaceLockReleased callback);
+
dbus_bool_t         libhal_ctx_set_global_interface_lock_released
+                                                        (LibHalContext *ctx,
+                                                         LibHalGlobalInterfaceLockReleased callback);

Set the callback for when a global interface lock is released.

@@ -1438,17 +1438,17 @@

- + - + - + @@ -1457,11 +1457,11 @@
-

+

libhal_ctx_set_interface_lock_acquired ()

-
dbus_bool_t         libhal_ctx_set_interface_lock_acquired
-                                                        (LibHalContext *ctx,
-                                                         LibHalInterfaceLockAcquired callback);
+
dbus_bool_t         libhal_ctx_set_interface_lock_acquired
+                                                        (LibHalContext *ctx,
+                                                         LibHalInterfaceLockAcquired callback);

Set the callback for when an interface lock is acquired.

@@ -1471,17 +1471,17 @@

- + - + - + @@ -1490,11 +1490,11 @@
-

+

libhal_ctx_set_interface_lock_released ()

-
dbus_bool_t         libhal_ctx_set_interface_lock_released
-                                                        (LibHalContext *ctx,
-                                                         LibHalInterfaceLockReleased callback);
+
dbus_bool_t         libhal_ctx_set_interface_lock_released
+                                                        (LibHalContext *ctx,
+                                                         LibHalInterfaceLockReleased callback);

Set the callback for when an interface lock is released.

@@ -1504,17 +1504,17 @@

- + - + - + @@ -1523,11 +1523,11 @@
-

+

libhal_ctx_set_singleton_device_added ()

-
dbus_bool_t         libhal_ctx_set_singleton_device_added
-                                                        (LibHalContext *ctx,
-                                                         LibHalSingletonDeviceAdded callback);
+
dbus_bool_t         libhal_ctx_set_singleton_device_added
+                                                        (LibHalContext *ctx,
+                                                         LibHalSingletonDeviceAdded callback);

Set the callback for when a singleton should handle a new device

@@ -1537,17 +1537,17 @@

- + - + - + @@ -1556,11 +1556,11 @@
-

+

libhal_ctx_set_singleton_device_removed ()

-
dbus_bool_t         libhal_ctx_set_singleton_device_removed
-                                                        (LibHalContext *ctx,
-                                                         LibHalSingletonDeviceRemoved callback);
+
dbus_bool_t         libhal_ctx_set_singleton_device_removed
+                                                        (LibHalContext *ctx,
+                                                         LibHalSingletonDeviceRemoved callback);

Set the callback for when a singleton should discard a device

@@ -1570,17 +1570,17 @@

- + - + - + @@ -1589,9 +1589,9 @@
-

+

libhal_ctx_init ()

-
dbus_bool_t         libhal_ctx_init                     (LibHalContext *ctx,
+
dbus_bool_t         libhal_ctx_init                     (LibHalContext *ctx,
                                                          DBusError *error);

Initialize the connection to hald.

@@ -1602,17 +1602,17 @@
- + - + - + @@ -1621,9 +1621,9 @@
-

+

libhal_ctx_shutdown ()

-
dbus_bool_t         libhal_ctx_shutdown                 (LibHalContext *ctx,
+
dbus_bool_t         libhal_ctx_shutdown                 (LibHalContext *ctx,
                                                          DBusError *error);

Shut down a connection to hald.

@@ -1634,17 +1634,17 @@
- + - + - + @@ -1653,9 +1653,9 @@
-

+

libhal_ctx_free ()

-
dbus_bool_t         libhal_ctx_free                     (LibHalContext *ctx);
+
dbus_bool_t         libhal_ctx_free                     (LibHalContext *ctx);

Free a LibHalContext resource.

@@ -1665,12 +1665,12 @@

- + - + @@ -1679,9 +1679,9 @@
-

+

libhal_ctx_init_direct ()

-
LibHalContext*      libhal_ctx_init_direct              (DBusError *error);
+
LibHalContext*      libhal_ctx_init_direct              (DBusError *error);

Create an already initialized connection to hald. This function should only be used by HAL helpers.

@@ -1691,12 +1691,12 @@

- + - + @@ -1705,9 +1705,9 @@
-

+

libhal_get_all_devices ()

-
char**              libhal_get_all_devices              (LibHalContext *ctx,
+
char**              libhal_get_all_devices              (LibHalContext *ctx,
                                                          int *num_devices,
                                                          DBusError *error);

@@ -1719,25 +1719,25 @@

- + - + - + - + @@ -1745,9 +1745,9 @@
-

+

libhal_device_exists ()

-
dbus_bool_t         libhal_device_exists                (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_exists                (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -1759,22 +1759,22 @@

- + - + - + - + @@ -1783,9 +1783,9 @@
-

+

libhal_device_print ()

-
dbus_bool_t         libhal_device_print                 (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_print                 (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -1797,22 +1797,22 @@

- + - + - + - + @@ -1821,9 +1821,9 @@
-

+

libhal_device_property_exists ()

-
dbus_bool_t         libhal_device_property_exists       (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_property_exists       (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          DBusError *error);
@@ -1836,27 +1836,27 @@
- + - + - + - + - + @@ -1865,9 +1865,9 @@
-

+

libhal_device_get_property_string ()

-
char*               libhal_device_get_property_string   (LibHalContext *ctx,
+
char*               libhal_device_get_property_string   (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          DBusError *error);
@@ -1880,29 +1880,29 @@
- + - + - + - + - + @@ -1911,9 +1911,9 @@
-

+

libhal_device_get_property_int ()

-
dbus_int32_t        libhal_device_get_property_int      (LibHalContext *ctx,
+
dbus_int32_t        libhal_device_get_property_int      (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          DBusError *error);
@@ -1926,27 +1926,27 @@
- + - + - + - + - + @@ -1955,9 +1955,9 @@
-

+

libhal_device_get_property_uint64 ()

-
dbus_uint64_t       libhal_device_get_property_uint64   (LibHalContext *ctx,
+
dbus_uint64_t       libhal_device_get_property_uint64   (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          DBusError *error);
@@ -1970,27 +1970,27 @@
- + - + - + - + - + @@ -1999,9 +1999,9 @@
-

+

libhal_device_get_property_double ()

-
double              libhal_device_get_property_double   (LibHalContext *ctx,
+
double              libhal_device_get_property_double   (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          DBusError *error);
@@ -2014,27 +2014,27 @@
- + - + - + - + - + @@ -2043,9 +2043,9 @@
-

+

libhal_device_get_property_bool ()

-
dbus_bool_t         libhal_device_get_property_bool     (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_get_property_bool     (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          DBusError *error);
@@ -2058,27 +2058,27 @@
- + - + - + - + - + @@ -2087,9 +2087,9 @@
-

+

libhal_device_get_property_strlist ()

-
char**              libhal_device_get_property_strlist  (LibHalContext *ctx,
+
char**              libhal_device_get_property_strlist  (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          DBusError *error);
@@ -2102,30 +2102,30 @@
- + - + - + - + - + @@ -2134,9 +2134,9 @@
-

+

libhal_device_set_property_string ()

-
dbus_bool_t         libhal_device_set_property_string   (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_set_property_string   (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          const char *value,
@@ -2150,32 +2150,32 @@
 
- + - + - + - + - + - + @@ -2185,9 +2185,9 @@
-

+

libhal_device_set_property_int ()

-
dbus_bool_t         libhal_device_set_property_int      (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_set_property_int      (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          dbus_int32_t value,
@@ -2201,32 +2201,32 @@
 
- + - + - + - + - + - + @@ -2236,9 +2236,9 @@
-

+

libhal_device_set_property_uint64 ()

-
dbus_bool_t         libhal_device_set_property_uint64   (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_set_property_uint64   (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          dbus_uint64_t value,
@@ -2252,32 +2252,32 @@
 
- + - + - + - + - + - + @@ -2287,9 +2287,9 @@
-

+

libhal_device_set_property_double ()

-
dbus_bool_t         libhal_device_set_property_double   (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_set_property_double   (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          double value,
@@ -2303,32 +2303,32 @@
 
- + - + - + - + - + - + @@ -2338,9 +2338,9 @@
-

+

libhal_device_set_property_bool ()

-
dbus_bool_t         libhal_device_set_property_bool     (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_set_property_bool     (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          dbus_bool_t value,
@@ -2354,32 +2354,32 @@
 
- + - + - + - + - + - + @@ -2389,10 +2389,10 @@
-

+

libhal_device_property_strlist_append ()

-
dbus_bool_t         libhal_device_property_strlist_append
-                                                        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_property_strlist_append
+                                                        (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          const char *value,
@@ -2406,32 +2406,32 @@
 
- + - + - + - + - + - + @@ -2441,10 +2441,10 @@
-

+

libhal_device_property_strlist_prepend ()

-
dbus_bool_t         libhal_device_property_strlist_prepend
-                                                        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_property_strlist_prepend
+                                                        (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          const char *value,
@@ -2458,32 +2458,32 @@
 
- + - + - + - + - + - + @@ -2493,10 +2493,10 @@
-

+

libhal_device_property_strlist_remove_index ()

-
dbus_bool_t         libhal_device_property_strlist_remove_index
-                                                        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_property_strlist_remove_index
+                                                        (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          unsigned int idx,
@@ -2510,32 +2510,32 @@
 
- + - + - + - + - + - + @@ -2545,10 +2545,10 @@
-

+

libhal_device_property_strlist_remove ()

-
dbus_bool_t         libhal_device_property_strlist_remove
-                                                        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_property_strlist_remove
+                                                        (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          const char *value,
@@ -2562,32 +2562,32 @@
 
- + - + - + - + - + - + @@ -2597,9 +2597,9 @@
-

+

libhal_device_remove_property ()

-
dbus_bool_t         libhal_device_remove_property       (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_remove_property       (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          DBusError *error);
@@ -2612,27 +2612,27 @@
- + - + - + - + - + @@ -2642,9 +2642,9 @@
-

+

libhal_device_get_property_type ()

-
LibHalPropertyType  libhal_device_get_property_type     (LibHalContext *ctx,
+
LibHalPropertyType  libhal_device_get_property_type     (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *key,
                                                          DBusError *error);
@@ -2657,27 +2657,27 @@
- + - + - + - + - + @@ -2687,18 +2687,18 @@
-

+

struct LibHalChangeSet_s

-
struct LibHalChangeSet_s;
+
struct LibHalChangeSet_s;


-

+

LibHalChangeSet

-
typedef struct LibHalChangeSet_s LibHalChangeSet;
+
typedef struct LibHalChangeSet_s LibHalChangeSet;
 

@@ -2706,9 +2706,9 @@


-

+

libhal_device_new_changeset ()

-
LibHalChangeSet*    libhal_device_new_changeset         (const char *udi);
+
LibHalChangeSet*    libhal_device_new_changeset         (const char *udi);

Request a new changeset object. Used for changing multiple properties at once. Useful when performance is critical and also for atomically updating several properties.

@@ -2719,12 +2719,12 @@
- + - + @@ -2733,10 +2733,10 @@
-

+

libhal_changeset_set_property_string ()

-
dbus_bool_t         libhal_changeset_set_property_string
-                                                        (LibHalChangeSet *changeset,
+
dbus_bool_t         libhal_changeset_set_property_string
+                                                        (LibHalChangeSet *changeset,
                                                          const char *key,
                                                          const char *value);

@@ -2748,22 +2748,22 @@

- + - + - + - + @@ -2772,9 +2772,9 @@
-

+

libhal_changeset_set_property_int ()

-
dbus_bool_t         libhal_changeset_set_property_int   (LibHalChangeSet *changeset,
+
dbus_bool_t         libhal_changeset_set_property_int   (LibHalChangeSet *changeset,
                                                          const char *key,
                                                          dbus_int32_t value);

@@ -2786,22 +2786,22 @@

- + - + - + - + @@ -2810,10 +2810,10 @@
-

+

libhal_changeset_set_property_uint64 ()

-
dbus_bool_t         libhal_changeset_set_property_uint64
-                                                        (LibHalChangeSet *changeset,
+
dbus_bool_t         libhal_changeset_set_property_uint64
+                                                        (LibHalChangeSet *changeset,
                                                          const char *key,
                                                          dbus_uint64_t value);

@@ -2825,22 +2825,22 @@

- + - + - + - + @@ -2849,10 +2849,10 @@
-

+

libhal_changeset_set_property_double ()

-
dbus_bool_t         libhal_changeset_set_property_double
-                                                        (LibHalChangeSet *changeset,
+
dbus_bool_t         libhal_changeset_set_property_double
+                                                        (LibHalChangeSet *changeset,
                                                          const char *key,
                                                          double value);

@@ -2864,22 +2864,22 @@

- + - + - + - + @@ -2888,9 +2888,9 @@
-

+

libhal_changeset_set_property_bool ()

-
dbus_bool_t         libhal_changeset_set_property_bool  (LibHalChangeSet *changeset,
+
dbus_bool_t         libhal_changeset_set_property_bool  (LibHalChangeSet *changeset,
                                                          const char *key,
                                                          dbus_bool_t value);

@@ -2902,22 +2902,22 @@

- + - + - + - + @@ -2926,10 +2926,10 @@
-

+

libhal_changeset_set_property_strlist ()

-
dbus_bool_t         libhal_changeset_set_property_strlist
-                                                        (LibHalChangeSet *changeset,
+
dbus_bool_t         libhal_changeset_set_property_strlist
+                                                        (LibHalChangeSet *changeset,
                                                          const char *key,
                                                          const char **value);

@@ -2941,22 +2941,22 @@

- + - + - + - + @@ -2965,10 +2965,10 @@
-

+

libhal_device_commit_changeset ()

-
dbus_bool_t         libhal_device_commit_changeset      (LibHalContext *ctx,
-                                                         LibHalChangeSet *changeset,
+
dbus_bool_t         libhal_device_commit_changeset      (LibHalContext *ctx,
+                                                         LibHalChangeSet *changeset,
                                                          DBusError *error);

Commit a changeset to the daemon.

@@ -2979,22 +2979,22 @@
- + - + - + - + @@ -3003,9 +3003,9 @@
-

+

libhal_device_free_changeset ()

-
void                libhal_device_free_changeset        (LibHalChangeSet *changeset);
+
void                libhal_device_free_changeset        (LibHalChangeSet *changeset);

Free a changeset.

@@ -3014,7 +3014,7 @@

Returns :

Returns : a new uninitialized LibHalContext object

ctx :

ctx : context to enable/disable cache for

use_cache :

use_cache : whether or not to use cache

Returns :

Returns : TRUE if cache was successfully enabled/disabled, FALSE otherwise

ctx :

ctx : context to set connection for

conn :

conn : DBus connection to use

Returns :

Returns : TRUE if connection was successfully set, FALSE otherwise

ctx :

ctx : context to get connection for

Returns :

Returns : DBus connection to use or NULL

ctx :

ctx : the context for the connection to hald

user_data :

user_data : user data

Returns :

Returns : TRUE if user data was successfully set, FALSE if otherwise

ctx :

ctx : the context for the connection to hald

Returns :

opaque pointer stored through libhal_ctx_set_user_data() or NULL if not set. +Returns : opaque pointer stored through libhal_ctx_set_user_data() or NULL if not set.

ctx :

ctx : the context for the connection to hald

callback :

callback : the function to call when a device is added

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the function to call when a device is removed

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the function to call when a device gains a new capability

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the function to call when a device loses a capability

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the function to call when a property is modified on a device

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the function to call when a device emits a condition

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the callback

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the callback

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the callback

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the callback

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the function to call when a device emits a condition

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : the context for the connection to hald

callback :

callback : the function to call when a device emits a condition

Returns :

Returns : TRUE if callback was successfully set, FALSE otherwise

ctx :

ctx : Context for connection to hald (D-BUS connection should be set with libhal_ctx_set_dbus_connection)

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if initialization succeeds, FALSE otherwise

ctx :

ctx : the context for the connection to hald

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if connection successfully shut down, FALSE otherwise

ctx :

ctx : pointer to a LibHalContext

Returns :

Returns : TRUE

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : A pointer to an already initialized LibHalContext

ctx :

ctx : the context for the connection to hald

num_devices :

num_devices : the number of devices will be stored here

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : An array of device identifiers terminated with NULL. It is the responsibility of the caller to free with -libhal_free_string_array(). If an error occurs NULL is returned. +libhal_free_string_array(). If an error occurs NULL is returned.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique device id.

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the device exists

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if device's information could be obtained, FALSE otherwise

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique device id.

key :

key : name of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the device exists, FALSE otherwise

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : the name of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : UTF8 nul-terminated string. The caller is responsible for -freeing this string with the function libhal_free_string(). Returns +freeing this string with the function libhal_free_string(). Returns NULL if the property didn't exist or we are OOM.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : Property value (32-bit signed integer)

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : Property value (64-bit unsigned integer)

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : Property value (IEEE754 double precision float)

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : Property value (boolean)

ctx :

ctx : the context for the connection to hald

udi :

udi : unique Device Id

key :

key : name of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : Array of pointers to UTF8 nul-terminated strings terminated by NULL. The caller is responsible for freeing this -string array with the function libhal_free_string_array(). Returns +string array with the function libhal_free_string_array(). Returns NULL if the property didn't exist or we are OOM

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

value :

value : value of the property; a UTF8 string

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the property was set, FALSE if the device didn't exist or the property had a different type.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

value :

value : value of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the property was set, FALSE if the device didn't exist or the property had a different type.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

value :

value : value of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the property was set, FALSE if the device didn't exist or the property had a different type.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

value :

value : value of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the property was set, FALSE if the device didn't exist or the property had a different type.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

value :

value : value of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the property was set, FALSE if the device didn't exist or the property had a different type.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

value :

value : value to append to property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the value was appended, FALSE if the device didn't exist or the property had a different type.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

value :

value : value to prepend to property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the value was prepended, FALSE if the device didn't exist or the property had a different type.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

idx :

idx : index of string to remove in the strlist

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the string was removed, FALSE if the device didn't exist or the property had a different type.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

value :

value : the string to remove

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the string was removed, FALSE if the device didn't exist or the property had a different type.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the property was set, FALSE if the device didn't exist

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

key :

key : name of the property

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : A LibHalPropertyType. LIBHAL_PROPERTY_TYPE_INVALID is return if the property doesn't exist.

udi :

udi : unique device identifier

Returns :

Returns : A new changeset object or NULL on error

changeset :

changeset : the changeset

key :

key : key of property

value :

value : the value to set

Returns :

Returns : FALSE on OOM

changeset :

changeset : the changeset

key :

key : key of property

value :

value : the value to set

Returns :

Returns : FALSE on OOM

changeset :

changeset : the changeset

key :

key : key of property

value :

value : the value to set

Returns :

Returns : FALSE on OOM

changeset :

changeset : the changeset

key :

key : key of property

value :

value : the value to set

Returns :

Returns : FALSE on OOM

changeset :

changeset : the changeset

key :

key : key of property

value :

value : the value to set

Returns :

Returns : FALSE on OOM

changeset :

changeset : the changeset

key :

key : key of property

value :

value : the value to set - NULL terminated array of strings

Returns :

Returns : FALSE on OOM

ctx :

ctx : the context for the connection to hald

changeset :

changeset : the changeset to commit

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : True if the changeset was committed on the daemon side
- + @@ -3022,9 +3022,9 @@
-

+

libhal_device_get_all_properties ()

-
LibHalPropertySet*  libhal_device_get_all_properties    (LibHalContext *ctx,
+
LibHalPropertySet*  libhal_device_get_all_properties    (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -3036,23 +3036,23 @@

- + - + - + - - + @@ -3060,9 +3060,9 @@
-

+

libhal_property_set_sort ()

-
void                libhal_property_set_sort            (LibHalPropertySet *set);
+
void                libhal_property_set_sort            (LibHalPropertySet *set);

Sort all properties according to property name.

@@ -3071,7 +3071,7 @@

changeset :

changeset : the changeset to free

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique id of device

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

An object represent all properties. Must be freed with libhal_free_property_set(). +Returns : An object represent all properties. Must be freed with libhal_free_property_set().
- + @@ -3079,18 +3079,18 @@
-

+

libhal_free_property_set ()

-
void                libhal_free_property_set            (LibHalPropertySet *set);
+
void                libhal_free_property_set            (LibHalPropertySet *set);

-Free a property set earlier obtained with libhal_device_get_all_properties().

+Free a property set earlier obtained with libhal_device_get_all_properties().

set :

set : property-set to sort
- + @@ -3098,9 +3098,9 @@
-

+

libhal_property_set_get_num_elems ()

-
unsigned int        libhal_property_set_get_num_elems   (LibHalPropertySet *set);
+
unsigned int        libhal_property_set_get_num_elems   (LibHalPropertySet *set);

Get the number of properties in a property set.

@@ -3110,12 +3110,12 @@

- + - + @@ -3124,9 +3124,9 @@
-

+

libhal_ps_get_type ()

-
LibHalPropertyType  libhal_ps_get_type                  (const LibHalPropertySet *set,
+
LibHalPropertyType  libhal_ps_get_type                  (const LibHalPropertySet *set,
                                                          const char *key);

Get the type of a given property.

@@ -3137,18 +3137,18 @@
- + - + - - + @@ -3157,9 +3157,9 @@
-

+

libhal_ps_get_string ()

-
const char*         libhal_ps_get_string                (const LibHalPropertySet *set,
+
const char*         libhal_ps_get_string                (const LibHalPropertySet *set,
                                                          const char *key);

Get the value of a property of type string.

@@ -3170,19 +3170,19 @@
- + - + - + @@ -3191,9 +3191,9 @@
-

+

libhal_ps_get_int32 ()

-
dbus_int32_t        libhal_ps_get_int32                 (const LibHalPropertySet *set,
+
dbus_int32_t        libhal_ps_get_int32                 (const LibHalPropertySet *set,
                                                          const char *key);

@@ -3202,17 +3202,17 @@

- + - + - + - + - + - + @@ -3255,9 +3255,9 @@
-

+

libhal_ps_get_double ()

-
double              libhal_ps_get_double                (const LibHalPropertySet *set,
+
double              libhal_ps_get_double                (const LibHalPropertySet *set,
                                                          const char *key);

Get the value of a property of type double.

@@ -3268,17 +3268,17 @@
- + - + - + @@ -3287,9 +3287,9 @@
-

+

libhal_ps_get_bool ()

-
dbus_bool_t         libhal_ps_get_bool                  (const LibHalPropertySet *set,
+
dbus_bool_t         libhal_ps_get_bool                  (const LibHalPropertySet *set,
                                                          const char *key);

Get the value of a property of type bool.

@@ -3300,17 +3300,17 @@
- + - + - + @@ -3319,9 +3319,9 @@
-

+

struct LibHalPropertySetIterator_s

-
struct LibHalPropertySetIterator_s {
+
struct LibHalPropertySetIterator_s {
 	LibHalPropertySet *set;    /**< Property set we are iterating over */
 	unsigned int idx;          /**< Index into current element */
 	LibHalProperty *cur_prop;  /**< Current property being visited */
@@ -3335,9 +3335,9 @@
 

-

+

LibHalPropertySetIterator

-
typedef struct LibHalPropertySetIterator_s LibHalPropertySetIterator;
+
typedef struct LibHalPropertySetIterator_s LibHalPropertySetIterator;
 

Iterator for inspecting all properties. Do not access any members; @@ -3348,10 +3348,10 @@


-

+

libhal_psi_init ()

-
void                libhal_psi_init                     (LibHalPropertySetIterator *iter,
-                                                         LibHalPropertySet *set);
+
void                libhal_psi_init                     (LibHalPropertySetIterator *iter,
+                                                         LibHalPropertySet *set);

Initialize a property set iterator.

@@ -3361,12 +3361,12 @@

- + - + @@ -3375,9 +3375,9 @@
-

+

libhal_psi_has_more ()

-
dbus_bool_t         libhal_psi_has_more                 (LibHalPropertySetIterator *iter);
+
dbus_bool_t         libhal_psi_has_more                 (LibHalPropertySetIterator *iter);

Determine whether there are more properties to iterate over.

@@ -3387,12 +3387,12 @@

- + - + @@ -3401,9 +3401,9 @@
-

+

libhal_psi_next ()

-
void                libhal_psi_next                     (LibHalPropertySetIterator *iter);
+
void                libhal_psi_next                     (LibHalPropertySetIterator *iter);

Advance iterator to next property.

@@ -3412,7 +3412,7 @@

set :

set : property-set to free

set :

set : property set to consider

Returns :

Returns : number of properties in given property set

set :

set : property set

key :

key : name of property to inspect

Returns :

the LibHalPropertyType of the given property, +Returns : the LibHalPropertyType of the given property, LIBHAL_PROPERTY_TYPE_INVALID if property is not in the set

set :

set : property set

key :

key : name of property to inspect

Returns :

Returns : UTF8 nul-terminated string. This pointer is only valid -until libhal_free_property_set() is invoked on the property set +until libhal_free_property_set() is invoked on the property set this property belongs to. NULL if property is not in the set or not a string

set :

set :

key :

key :

Returns :

Returns : @@ -3223,9 +3223,9 @@
-

+

libhal_ps_get_uint64 ()

-
dbus_uint64_t       libhal_ps_get_uint64                (const LibHalPropertySet *set,
+
dbus_uint64_t       libhal_ps_get_uint64                (const LibHalPropertySet *set,
                                                          const char *key);

Get the value of a property of type unsigned integer.

@@ -3236,17 +3236,17 @@

set :

set : property set

key :

key : name of property to inspect

Returns :

Returns : property value (64-bit unsigned integer)

set :

set : property set

key :

key : name of property to inspect

Returns :

Returns : property value (IEEE754 double precision float)

set :

set : property set

key :

key : name of property to inspect

Returns :

Returns : property value (bool)

iter :

iter : iterator object

set :

set : property set to iterate over

iter :

iter : iterator object

Returns :

Returns : TRUE if there are more properties, FALSE otherwise.
- + @@ -3420,9 +3420,9 @@
-

+

libhal_psi_get_type ()

-
LibHalPropertyType  libhal_psi_get_type                 (LibHalPropertySetIterator *iter);
+
LibHalPropertyType  libhal_psi_get_type                 (LibHalPropertySetIterator *iter);

Get type of property.

@@ -3432,12 +3432,12 @@

- + - + @@ -3446,9 +3446,9 @@
-

+

libhal_psi_get_key ()

-
char*               libhal_psi_get_key                  (LibHalPropertySetIterator *iter);
+
char*               libhal_psi_get_key                  (LibHalPropertySetIterator *iter);

Get the key of a property.

@@ -3458,14 +3458,14 @@

- + - + @@ -3474,9 +3474,9 @@
-

+

libhal_psi_get_string ()

-
char*               libhal_psi_get_string               (LibHalPropertySetIterator *iter);
+
char*               libhal_psi_get_string               (LibHalPropertySetIterator *iter);

Get the value of a property of type string.

@@ -3486,14 +3486,14 @@

- + - + @@ -3502,9 +3502,9 @@
-

+

libhal_psi_get_int ()

-
dbus_int32_t        libhal_psi_get_int                  (LibHalPropertySetIterator *iter);
+
dbus_int32_t        libhal_psi_get_int                  (LibHalPropertySetIterator *iter);

Get the value of a property of type signed integer.

@@ -3514,12 +3514,12 @@

- + - + @@ -3528,9 +3528,9 @@
-

+

libhal_psi_get_uint64 ()

-
dbus_uint64_t       libhal_psi_get_uint64               (LibHalPropertySetIterator *iter);
+
dbus_uint64_t       libhal_psi_get_uint64               (LibHalPropertySetIterator *iter);

Get the value of a property of type unsigned integer.

@@ -3540,12 +3540,12 @@

- + - + @@ -3554,9 +3554,9 @@
-

+

libhal_psi_get_double ()

-
double              libhal_psi_get_double               (LibHalPropertySetIterator *iter);
+
double              libhal_psi_get_double               (LibHalPropertySetIterator *iter);

Get the value of a property of type double.

@@ -3566,12 +3566,12 @@

- + - + @@ -3580,9 +3580,9 @@
-

+

libhal_psi_get_bool ()

-
dbus_bool_t         libhal_psi_get_bool                 (LibHalPropertySetIterator *iter);
+
dbus_bool_t         libhal_psi_get_bool                 (LibHalPropertySetIterator *iter);

Get the value of a property of type bool.

@@ -3592,12 +3592,12 @@

- + - + @@ -3606,9 +3606,9 @@
-

+

libhal_psi_get_strlist ()

-
char**              libhal_psi_get_strlist              (LibHalPropertySetIterator *iter);
+
char**              libhal_psi_get_strlist              (LibHalPropertySetIterator *iter);

Get the value of a property of type string list.

@@ -3618,12 +3618,12 @@

- + - + @@ -3632,9 +3632,9 @@
-

+

libhal_string_array_length ()

-
unsigned int        libhal_string_array_length          (char **str_array);
+
unsigned int        libhal_string_array_length          (char **str_array);

Get the length of an array of strings.

@@ -3644,12 +3644,12 @@

- + - + @@ -3658,9 +3658,9 @@
-

+

libhal_free_string_array ()

-
void                libhal_free_string_array            (char **str_array);
+
void                libhal_free_string_array            (char **str_array);

Frees a NULL-terminated array of strings. If passed NULL, does nothing.

@@ -3669,7 +3669,7 @@

iter :

iter : iterator object

iter :

iter : iterator object

Returns :

Returns : the property type at the iterator's position

iter :

iter : iterator object

Returns :

Returns : ASCII nul-terminated string. This pointer is only valid -until libhal_free_property_set() is invoked on the property set +until libhal_free_property_set() is invoked on the property set this property belongs to.

iter :

iter : iterator object

Returns :

Returns : UTF8 nul-terminated string. This pointer is only valid -until libhal_free_property_set() is invoked on the property set +until libhal_free_property_set() is invoked on the property set this property belongs to.

iter :

iter : iterator object

Returns :

Returns : property value (32-bit signed integer)

iter :

iter : iterator object

Returns :

Returns : property value (64-bit unsigned integer)

iter :

iter : iterator object

Returns :

Returns : property value (IEEE754 double precision float)

iter :

iter : iterator object

Returns :

Returns : property value (bool)

iter :

iter : iterator object

Returns :

Returns : pointer to array of strings

str_array :

str_array : array of strings to consider

Returns :

Returns : Number of strings in array
- + @@ -3677,9 +3677,9 @@
-

+

libhal_free_string ()

-
void                libhal_free_string                  (char *str);
+
void                libhal_free_string                  (char *str);

Used to free strings returned by libhal.

@@ -3688,7 +3688,7 @@

str_array :

str_array : the array to be freed
- + @@ -3696,13 +3696,13 @@
-

+

libhal_new_device ()

-
char*               libhal_new_device                   (LibHalContext *ctx,
+
char*               libhal_new_device                   (LibHalContext *ctx,
                                                          DBusError *error);

Create a new device object which will be hidden from applications -until the CommitToGdl(), ie. libhal_device_commit_to_gdl(), method +until the CommitToGdl(), ie. libhal_device_commit_to_gdl(), method is called. Note that the program invoking this method needs to run with super user privileges.

@@ -3712,17 +3712,17 @@

- + - + - + @@ -3732,15 +3732,15 @@
-

+

libhal_device_commit_to_gdl ()

-
dbus_bool_t         libhal_device_commit_to_gdl         (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_commit_to_gdl         (LibHalContext *ctx,
                                                          const char *temp_udi,
                                                          const char *udi,
                                                          DBusError *error);

When a hidden device has been built using the NewDevice method, -ie. libhal_new_device(), and the org.freedesktop.Hal.Device +ie. libhal_new_device(), and the org.freedesktop.Hal.Device interface this function will commit it to the global device list.

@@ -3758,27 +3758,27 @@

- + - - + - + - + - + @@ -3787,9 +3787,9 @@
-

+

libhal_remove_device ()

-
dbus_bool_t         libhal_remove_device                (LibHalContext *ctx,
+
dbus_bool_t         libhal_remove_device                (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -3807,22 +3807,22 @@

- + - + - + - + @@ -3831,9 +3831,9 @@
-

+

libhal_merge_properties ()

-
dbus_bool_t         libhal_merge_properties             (LibHalContext *ctx,
+
dbus_bool_t         libhal_merge_properties             (LibHalContext *ctx,
                                                          const char *target_udi,
                                                          const char *source_udi,
                                                          DBusError *error);
@@ -3846,27 +3846,27 @@
- + - + - + - + - + @@ -3875,9 +3875,9 @@
-

+

libhal_device_matches ()

-
dbus_bool_t         libhal_device_matches               (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_matches               (LibHalContext *ctx,
                                                          const char *udi1,
                                                          const char *udi2,
                                                          const char *property_namespace,
@@ -3901,32 +3901,32 @@
 
- + - + - + - + - + - + @@ -3936,10 +3936,10 @@
-

+

libhal_manager_find_device_string_match ()

-
char**              libhal_manager_find_device_string_match
-                                                        (LibHalContext *ctx,
+
char**              libhal_manager_find_device_string_match
+                                                        (LibHalContext *ctx,
                                                          const char *key,
                                                          const char *value,
                                                          int *num_devices,
@@ -3954,33 +3954,33 @@
 
- + - + - + - + - + - - + @@ -3988,9 +3988,9 @@
-

+

libhal_device_add_capability ()

-
dbus_bool_t         libhal_device_add_capability        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_add_capability        (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *capability,
                                                          DBusError *error);
@@ -4003,27 +4003,27 @@
- + - + - + - + - + @@ -4032,9 +4032,9 @@
-

+

libhal_device_query_capability ()

-
dbus_bool_t         libhal_device_query_capability      (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_query_capability      (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *capability,
                                                          DBusError *error);
@@ -4048,27 +4048,27 @@
- + - + - + - + - + @@ -4077,9 +4077,9 @@
-

+

libhal_find_device_by_capability ()

-
char**              libhal_find_device_by_capability    (LibHalContext *ctx,
+
char**              libhal_find_device_by_capability    (LibHalContext *ctx,
                                                          const char *capability,
                                                          int *num_devices,
                                                          DBusError *error);
@@ -4092,28 +4092,28 @@
- + - + - + - + - - + @@ -4121,9 +4121,9 @@
-

+

libhal_device_property_watch_all ()

-
dbus_bool_t         libhal_device_property_watch_all    (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_property_watch_all    (LibHalContext *ctx,
                                                          DBusError *error);

Watch all devices, ie. the device_property_changed callback is @@ -4135,17 +4135,17 @@

- + - + - + @@ -4154,9 +4154,9 @@
-

+

libhal_device_add_property_watch ()

-
dbus_bool_t         libhal_device_add_property_watch    (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_add_property_watch    (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -4173,22 +4173,22 @@

- + - + - + - + @@ -4197,9 +4197,9 @@
-

+

libhal_device_remove_property_watch ()

-
dbus_bool_t         libhal_device_remove_property_watch (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_remove_property_watch (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -4211,22 +4211,22 @@

- + - + - + - + @@ -4235,9 +4235,9 @@
-

+

libhal_device_lock ()

-
dbus_bool_t         libhal_device_lock                  (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_lock                  (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *reason_to_lock,
                                                          char **reason_why_locked,
@@ -4251,32 +4251,32 @@
 
- + - + - + - + - + - + @@ -4285,9 +4285,9 @@
-

+

libhal_device_unlock ()

-
dbus_bool_t         libhal_device_unlock                (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_unlock                (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -4299,22 +4299,22 @@

- + - + - + - + @@ -4324,9 +4324,9 @@
-

+

libhal_device_rescan ()

-
dbus_bool_t         libhal_device_rescan                (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_rescan                (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -4338,22 +4338,22 @@

- + - + - + - + @@ -4362,9 +4362,9 @@
-

+

libhal_device_reprobe ()

-
dbus_bool_t         libhal_device_reprobe               (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_reprobe               (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -4376,22 +4376,22 @@

- + - + - + - + @@ -4400,9 +4400,9 @@
-

+

libhal_device_emit_condition ()

-
dbus_bool_t         libhal_device_emit_condition        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_emit_condition        (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *condition_name,
                                                          const char *condition_details,
@@ -4416,32 +4416,32 @@
 
- + - + - + - + - + - + @@ -4451,9 +4451,9 @@
-

+

libhal_device_claim_interface ()

-
dbus_bool_t         libhal_device_claim_interface       (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_claim_interface       (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *interface_name,
                                                          const char *introspection_xml,
@@ -4469,32 +4469,32 @@
 
- + - + - + - + - + - + @@ -4503,9 +4503,9 @@
-

+

libhal_device_addon_is_ready ()

-
dbus_bool_t         libhal_device_addon_is_ready        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_addon_is_ready        (LibHalContext *ctx,
                                                          const char *udi,
                                                          DBusError *error);

@@ -4521,22 +4521,22 @@

- + - + - + - + @@ -4545,10 +4545,10 @@
-

+

libhal_device_singleton_addon_is_ready ()

-
dbus_bool_t         libhal_device_singleton_addon_is_ready
-                                                        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_singleton_addon_is_ready
+                                                        (LibHalContext *ctx,
                                                          const char *command_line,
                                                          DBusError *error);

@@ -4564,22 +4564,22 @@

- + - + - + - + @@ -4588,10 +4588,10 @@
-

+

libhal_device_acquire_interface_lock ()

-
dbus_bool_t         libhal_device_acquire_interface_lock
-                                                        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_acquire_interface_lock
+                                                        (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *interface,
                                                          dbus_bool_t exclusive,
@@ -4605,32 +4605,32 @@
 
- + - + - + - + - + - + @@ -4639,10 +4639,10 @@
-

+

libhal_device_release_interface_lock ()

-
dbus_bool_t         libhal_device_release_interface_lock
-                                                        (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_release_interface_lock
+                                                        (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *interface,
                                                          DBusError *error);
@@ -4655,27 +4655,27 @@
- + - + - + - + - + @@ -4684,10 +4684,10 @@
-

+

libhal_acquire_global_interface_lock ()

-
dbus_bool_t         libhal_acquire_global_interface_lock
-                                                        (LibHalContext *ctx,
+
dbus_bool_t         libhal_acquire_global_interface_lock
+                                                        (LibHalContext *ctx,
                                                          const char *interface,
                                                          dbus_bool_t exclusive,
                                                          DBusError *error);
@@ -4700,27 +4700,27 @@
- + - + - + - + - + @@ -4729,10 +4729,10 @@
-

+

libhal_release_global_interface_lock ()

-
dbus_bool_t         libhal_release_global_interface_lock
-                                                        (LibHalContext *ctx,
+
dbus_bool_t         libhal_release_global_interface_lock
+                                                        (LibHalContext *ctx,
                                                          const char *interface,
                                                          DBusError *error);

@@ -4744,22 +4744,22 @@

- + - + - + - + @@ -4768,9 +4768,9 @@
-

+

libhal_device_is_caller_locked_out ()

-
dbus_bool_t         libhal_device_is_caller_locked_out  (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_is_caller_locked_out  (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *interface,
                                                          const char *caller,
@@ -4786,32 +4786,32 @@
 
- + - + - + - + - + - + @@ -4820,9 +4820,9 @@
-

+

libhal_device_is_locked_by_others ()

-
dbus_bool_t         libhal_device_is_locked_by_others   (LibHalContext *ctx,
+
dbus_bool_t         libhal_device_is_locked_by_others   (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *interface,
                                                          DBusError *error);
@@ -4835,27 +4835,27 @@
- + - + - + - + - + @@ -4864,9 +4864,9 @@
-

+

libhal_device_is_caller_privileged ()

-
char*               libhal_device_is_caller_privileged  (LibHalContext *ctx,
+
char*               libhal_device_is_caller_privileged  (LibHalContext *ctx,
                                                          const char *udi,
                                                          const char *action,
                                                          const char *caller,
@@ -4882,36 +4882,36 @@
 
- + - + - + - + - + - + --- hal-0.5.10.orig/doc/api/libhal/libhal-undocumented.txt +++ hal-0.5.10/doc/api/libhal/libhal-undocumented.txt @@ -0,0 +1,57 @@ +72% symbol docs coverage. +122 symbols documented. +1 symbols incomplete. +48 not documented. + + +DBUS_API_SUBJECT_TO_CHANGE +HASH_ADD +HASH_ADD_INT +HASH_ADD_KEYPTR +HASH_ADD_STR +HASH_ADD_TO_BKT +HASH_BER +HASH_BKT_CAPACITY_THRESH +HASH_DEL +HASH_DELETE +HASH_DEL_IN_BKT +HASH_EMIT_KEY +HASH_EXPAND_BUCKETS +HASH_FCN +HASH_FIND +HASH_FIND_INT +HASH_FIND_IN_BKT +HASH_FIND_STR +HASH_FNV +HASH_FSCK +HASH_INITIAL_NUM_BUCKETS +HASH_JEN +HASH_JEN_MIX +HASH_JSW +HASH_KEYCMP +HASH_OAT +HASH_OOPS +HASH_SAX +HASH_SORT +LIBHAL_DEPRECATED +LIBHAL_FREE_DBUS_ERROR +LibHalChangeSet +LibHalChangeSet_s +LibHalPropertySetIterator_s +LibHalPropertyType (LIBHAL_PROPERTY_TYPE_INVALID, LIBHAL_PROPERTY_TYPE_INT32, LIBHAL_PROPERTY_TYPE_UINT64, LIBHAL_PROPERTY_TYPE_DOUBLE, LIBHAL_PROPERTY_TYPE_BOOLEAN, LIBHAL_PROPERTY_TYPE_STRING, LIBHAL_PROPERTY_TYPE_STRLIST) +UT_hash_bucket +UT_hash_handle +UT_hash_table +libhal_ps_get_int32 +uthash_bkt_free +uthash_bkt_malloc +uthash_expand_fyi +uthash_fatal +uthash_noexpand_fyi +uthash_tbl_free +uthash_tbl_malloc + + +libhal:Long_Description +libhal:Short_Description +uthash:Short_Description --- hal-0.5.10.orig/doc/api/libhal/libhal-decl-list.txt +++ hal-0.5.10/doc/api/libhal/libhal-decl-list.txt @@ -0,0 +1,174 @@ +
+libhal +DBUS_API_SUBJECT_TO_CHANGE +LIBHAL_DEPRECATED +LIBHAL_FREE_DBUS_ERROR +LIBHAL_CHECK_LIBHALCONTEXT +LibHalPropertyType +LibHalContext +LibHalProperty +LibHalPropertySet +LibHalIntegrateDBusIntoMainLoop +LibHalDeviceAdded +LibHalDeviceRemoved +LibHalDeviceNewCapability +LibHalDeviceLostCapability +LibHalDevicePropertyModified +LibHalDeviceCondition +LibHalGlobalInterfaceLockAcquired +LibHalGlobalInterfaceLockReleased +LibHalInterfaceLockAcquired +LibHalInterfaceLockReleased +LibHalSingletonDeviceAdded +LibHalSingletonDeviceRemoved +libhal_ctx_new +libhal_ctx_set_cache +libhal_ctx_set_dbus_connection +libhal_ctx_get_dbus_connection +libhal_ctx_set_user_data +libhal_ctx_get_user_data +libhal_ctx_set_device_added +libhal_ctx_set_device_removed +libhal_ctx_set_device_new_capability +libhal_ctx_set_device_lost_capability +libhal_ctx_set_device_property_modified +libhal_ctx_set_device_condition +libhal_ctx_set_global_interface_lock_acquired +libhal_ctx_set_global_interface_lock_released +libhal_ctx_set_interface_lock_acquired +libhal_ctx_set_interface_lock_released +libhal_ctx_set_singleton_device_added +libhal_ctx_set_singleton_device_removed +libhal_ctx_init +libhal_ctx_shutdown +libhal_ctx_free +libhal_ctx_init_direct +libhal_get_all_devices +libhal_device_exists +libhal_device_print +libhal_device_property_exists +libhal_device_get_property_string +libhal_device_get_property_int +libhal_device_get_property_uint64 +libhal_device_get_property_double +libhal_device_get_property_bool +libhal_device_get_property_strlist +libhal_device_set_property_string +libhal_device_set_property_int +libhal_device_set_property_uint64 +libhal_device_set_property_double +libhal_device_set_property_bool +libhal_device_property_strlist_append +libhal_device_property_strlist_prepend +libhal_device_property_strlist_remove_index +libhal_device_property_strlist_remove +libhal_device_remove_property +libhal_device_get_property_type +LibHalChangeSet_s +LibHalChangeSet +libhal_device_new_changeset +libhal_changeset_set_property_string +libhal_changeset_set_property_int +libhal_changeset_set_property_uint64 +libhal_changeset_set_property_double +libhal_changeset_set_property_bool +libhal_changeset_set_property_strlist +libhal_device_commit_changeset +libhal_device_free_changeset +libhal_device_get_all_properties +libhal_property_set_sort +libhal_free_property_set +libhal_property_set_get_num_elems +libhal_ps_get_type +libhal_ps_get_string +libhal_ps_get_int32 +libhal_ps_get_uint64 +libhal_ps_get_double +libhal_ps_get_bool +LibHalPropertySetIterator_s +LibHalPropertySetIterator +libhal_psi_init +libhal_psi_has_more +libhal_psi_next +libhal_psi_get_type +libhal_psi_get_key +libhal_psi_get_string +libhal_psi_get_int +libhal_psi_get_uint64 +libhal_psi_get_double +libhal_psi_get_bool +libhal_psi_get_strlist +libhal_string_array_length +libhal_free_string_array +libhal_free_string +libhal_new_device +libhal_device_commit_to_gdl +libhal_remove_device +libhal_merge_properties +libhal_device_matches +libhal_manager_find_device_string_match +libhal_device_add_capability +libhal_device_query_capability +libhal_find_device_by_capability +libhal_device_property_watch_all +libhal_device_add_property_watch +libhal_device_remove_property_watch +libhal_device_lock +libhal_device_unlock +libhal_device_rescan +libhal_device_reprobe +libhal_device_emit_condition +libhal_device_claim_interface +libhal_device_addon_is_ready +libhal_device_singleton_addon_is_ready +libhal_device_acquire_interface_lock +libhal_device_release_interface_lock +libhal_acquire_global_interface_lock +libhal_release_global_interface_lock +libhal_device_is_caller_locked_out +libhal_device_is_locked_by_others +libhal_device_is_caller_privileged +
+ +
+uthash +uthash_fatal +uthash_bkt_malloc +uthash_bkt_free +uthash_tbl_malloc +uthash_tbl_free +uthash_noexpand_fyi +uthash_expand_fyi +HASH_INITIAL_NUM_BUCKETS +HASH_BKT_CAPACITY_THRESH +HASH_FIND +HASH_ADD +HASH_ADD_KEYPTR +HASH_DELETE +HASH_FIND_STR +HASH_ADD_STR +HASH_FIND_INT +HASH_ADD_INT +HASH_DEL +HASH_OOPS +HASH_FSCK +HASH_EMIT_KEY +HASH_FCN +HASH_BER +HASH_SAX +HASH_FNV +HASH_OAT +HASH_JEN_MIX +HASH_JEN +HASH_JSW +HASH_KEYCMP +HASH_FIND_IN_BKT +HASH_ADD_TO_BKT +HASH_DEL_IN_BKT +HASH_EXPAND_BUCKETS +HASH_SORT +UT_hash_bucket +UT_hash_table +UT_hash_handle +
+ --- hal-0.5.10.orig/doc/api/libhal/libhal-decl.txt +++ hal-0.5.10/doc/api/libhal/libhal-decl.txt @@ -0,0 +1,1337 @@ + +DBUS_API_SUBJECT_TO_CHANGE +#define DBUS_API_SUBJECT_TO_CHANGE + + +LIBHAL_DEPRECATED +#define LIBHAL_DEPRECATED __attribute__ ((deprecated)) + + +LIBHAL_DEPRECATED +#define LIBHAL_DEPRECATED + + +LIBHAL_FREE_DBUS_ERROR +#define LIBHAL_FREE_DBUS_ERROR(_dbus_error_) \ + do { \ + if (dbus_error_is_set(_dbus_error_)) \ + dbus_error_free (_dbus_error_); \ + } while (0) + + +LIBHAL_CHECK_LIBHALCONTEXT +#define LIBHAL_CHECK_LIBHALCONTEXT(_ctx_, _ret_) \ + do { \ + if (_ctx_ == NULL) { \ + fprintf (stderr, \ + "%s %d : LibHalContext *ctx is NULL\n", \ + __FILE__, __LINE__); \ + return _ret_; \ + } \ + } while(0) + + +LibHalPropertyType +typedef enum { + /** Used to report error condition */ + LIBHAL_PROPERTY_TYPE_INVALID = DBUS_TYPE_INVALID, + + /** Type for 32-bit signed integer property */ + LIBHAL_PROPERTY_TYPE_INT32 = DBUS_TYPE_INT32, + + /** Type for 64-bit unsigned integer property */ + LIBHAL_PROPERTY_TYPE_UINT64 = DBUS_TYPE_UINT64, + + /** Type for double precision floating point property */ + LIBHAL_PROPERTY_TYPE_DOUBLE = DBUS_TYPE_DOUBLE, + + /** Type for boolean property */ + LIBHAL_PROPERTY_TYPE_BOOLEAN = DBUS_TYPE_BOOLEAN, + + /** Type for UTF-8 string property */ + LIBHAL_PROPERTY_TYPE_STRING = DBUS_TYPE_STRING, + + /** Type for list of UTF-8 strings property */ + LIBHAL_PROPERTY_TYPE_STRLIST = ((int) (DBUS_TYPE_STRING<<8)+('l')) +} LibHalPropertyType; + + +LibHalContext +typedef struct LibHalContext_s LibHalContext; + + +LibHalProperty +typedef struct LibHalProperty_s LibHalProperty; + + +LibHalPropertySet +typedef struct LibHalPropertySet_s LibHalPropertySet; + + +LibHalIntegrateDBusIntoMainLoop +void +LibHalContext *ctx, + DBusConnection *dbus_connection + + +LibHalDeviceAdded +void +LibHalContext *ctx, + const char *udi + + +LibHalDeviceRemoved +void +LibHalContext *ctx, + const char *udi + + +LibHalDeviceNewCapability +void +LibHalContext *ctx, + const char *udi, + const char *capability + + +LibHalDeviceLostCapability +void +LibHalContext *ctx, + const char *udi, + const char *capability + + +LibHalDevicePropertyModified +void +LibHalContext *ctx, + const char *udi, + const char *key, + dbus_bool_t is_removed, + dbus_bool_t is_added + + +LibHalDeviceCondition +void +LibHalContext *ctx, + const char *udi, + const char *condition_name, + const char *condition_detail + + +LibHalGlobalInterfaceLockAcquired +void +LibHalContext *ctx, + const char *interface_name, + const char *lock_owner, + int num_locks + + +LibHalGlobalInterfaceLockReleased +void +LibHalContext *ctx, + const char *interface_name, + const char *lock_owner, + int num_locks + + +LibHalInterfaceLockAcquired +void +LibHalContext *ctx, + const char *udi, + const char *interface_name, + const char *lock_owner, + int num_locks + + +LibHalInterfaceLockReleased +void +LibHalContext *ctx, + const char *udi, + const char *interface_name, + const char *lock_owner, + int num_locks + + +LibHalSingletonDeviceAdded +void +LibHalContext *ctx, + const char *udi, + const LibHalPropertySet *properties + + +LibHalSingletonDeviceRemoved +void +LibHalContext *ctx, + const char *udi, + const LibHalPropertySet *properties + + +libhal_ctx_new +LibHalContext * +void + + +libhal_ctx_set_cache +dbus_bool_t +LibHalContext *ctx, dbus_bool_t use_cache + + +libhal_ctx_set_dbus_connection +dbus_bool_t +LibHalContext *ctx, DBusConnection *conn + + +libhal_ctx_get_dbus_connection +DBusConnection * +LibHalContext *ctx + + +libhal_ctx_set_user_data +dbus_bool_t +LibHalContext *ctx, void *user_data + + +libhal_ctx_get_user_data +void* +LibHalContext *ctx + + +libhal_ctx_set_device_added +dbus_bool_t +LibHalContext *ctx, LibHalDeviceAdded callback + + +libhal_ctx_set_device_removed +dbus_bool_t +LibHalContext *ctx, LibHalDeviceRemoved callback + + +libhal_ctx_set_device_new_capability +dbus_bool_t +LibHalContext *ctx, LibHalDeviceNewCapability callback + + +libhal_ctx_set_device_lost_capability +dbus_bool_t +LibHalContext *ctx, LibHalDeviceLostCapability callback + + +libhal_ctx_set_device_property_modified +dbus_bool_t +LibHalContext *ctx, LibHalDevicePropertyModified callback + + +libhal_ctx_set_device_condition +dbus_bool_t +LibHalContext *ctx, LibHalDeviceCondition callback + + +libhal_ctx_set_global_interface_lock_acquired +dbus_bool_t +LibHalContext *ctx, LibHalGlobalInterfaceLockAcquired callback + + +libhal_ctx_set_global_interface_lock_released +dbus_bool_t +LibHalContext *ctx, LibHalGlobalInterfaceLockReleased callback + + +libhal_ctx_set_interface_lock_acquired +dbus_bool_t +LibHalContext *ctx, LibHalInterfaceLockAcquired callback + + +libhal_ctx_set_interface_lock_released +dbus_bool_t +LibHalContext *ctx, LibHalInterfaceLockReleased callback + + +libhal_ctx_set_singleton_device_added +dbus_bool_t +LibHalContext *ctx, LibHalSingletonDeviceAdded callback + + +libhal_ctx_set_singleton_device_removed +dbus_bool_t +LibHalContext *ctx, LibHalSingletonDeviceRemoved callback + + +libhal_ctx_init +dbus_bool_t +LibHalContext *ctx, DBusError *error + + +libhal_ctx_shutdown +dbus_bool_t +LibHalContext *ctx, DBusError *error + + +libhal_ctx_free +dbus_bool_t +LibHalContext *ctx + + +libhal_ctx_init_direct +LibHalContext * +DBusError *error + + +libhal_get_all_devices +char ** +LibHalContext *ctx, int *num_devices, DBusError *error + + +libhal_device_exists +dbus_bool_t +LibHalContext *ctx, const char *udi, DBusError *error + + +libhal_device_print +dbus_bool_t +LibHalContext *ctx, const char *udi, DBusError *error + + +libhal_device_property_exists +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,DBusError *error + + +libhal_device_get_property_string +char * +LibHalContext *ctx,const char *udi,const char *key,DBusError *error + + +libhal_device_get_property_int +dbus_int32_t +LibHalContext *ctx,const char *udi,const char *key,DBusError *error + + +libhal_device_get_property_uint64 +dbus_uint64_t +LibHalContext *ctx,const char *udi,const char *key,DBusError *error + + +libhal_device_get_property_double +double +LibHalContext *ctx,const char *udi,const char *key,DBusError *error + + +libhal_device_get_property_bool +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,DBusError *error + + +libhal_device_get_property_strlist +char ** +LibHalContext *ctx,const char *udi,const char *key,DBusError *error + + +libhal_device_set_property_string +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,const char *value,DBusError *error + + +libhal_device_set_property_int +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,dbus_int32_t value,DBusError *error + + +libhal_device_set_property_uint64 +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,dbus_uint64_t value,DBusError *error + + +libhal_device_set_property_double +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,double value,DBusError *error + + +libhal_device_set_property_bool +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,dbus_bool_t value,DBusError *error + + +libhal_device_property_strlist_append +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,const char *value,DBusError *error + + +libhal_device_property_strlist_prepend +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,const char *value,DBusError *error + + +libhal_device_property_strlist_remove_index +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,unsigned int idx,DBusError *error + + +libhal_device_property_strlist_remove +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,const char *value,DBusError *error + + +libhal_device_remove_property +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *key,DBusError *error + + +libhal_device_get_property_type +LibHalPropertyType +LibHalContext *ctx,const char *udi,const char *key,DBusError *error + + +LibHalChangeSet_s +struct LibHalChangeSet_s; + + +LibHalChangeSet +typedef struct LibHalChangeSet_s LibHalChangeSet; + + +libhal_device_new_changeset +LibHalChangeSet * +const char *udi + + +libhal_changeset_set_property_string +dbus_bool_t +LibHalChangeSet *changeset,const char *key,const char *value + + +libhal_changeset_set_property_int +dbus_bool_t +LibHalChangeSet *changeset,const char *key,dbus_int32_t value + + +libhal_changeset_set_property_uint64 +dbus_bool_t +LibHalChangeSet *changeset,const char *key,dbus_uint64_t value + + +libhal_changeset_set_property_double +dbus_bool_t +LibHalChangeSet *changeset,const char *key,double value + + +libhal_changeset_set_property_bool +dbus_bool_t +LibHalChangeSet *changeset,const char *key,dbus_bool_t value + + +libhal_changeset_set_property_strlist +dbus_bool_t +LibHalChangeSet *changeset,const char *key,const char **value + + +libhal_device_commit_changeset +dbus_bool_t +LibHalContext *ctx,LibHalChangeSet *changeset,DBusError *error + + +libhal_device_free_changeset +void +LibHalChangeSet *changeset + + +libhal_device_get_all_properties +LibHalPropertySet * +LibHalContext *ctx,const char *udi,DBusError *error + + +libhal_property_set_sort +void +LibHalPropertySet *set + + +libhal_free_property_set +void +LibHalPropertySet *set + + +libhal_property_set_get_num_elems +unsigned int +LibHalPropertySet *set + + +libhal_ps_get_type +LibHalPropertyType +const LibHalPropertySet *set, const char *key + + +libhal_ps_get_string +const char * +const LibHalPropertySet *set, const char *key + + +libhal_ps_get_int32 +dbus_int32_t +const LibHalPropertySet *set, const char *key + + +libhal_ps_get_uint64 +dbus_uint64_t +const LibHalPropertySet *set, const char *key + + +libhal_ps_get_double +double +const LibHalPropertySet *set, const char *key + + +libhal_ps_get_bool +dbus_bool_t +const LibHalPropertySet *set, const char *key + + +LibHalPropertySetIterator_s +struct LibHalPropertySetIterator_s { + LibHalPropertySet *set; /**< Property set we are iterating over */ + unsigned int idx; /**< Index into current element */ + LibHalProperty *cur_prop; /**< Current property being visited */ + void *reservered0; /**< Reserved for future use */ + void *reservered1; /**< Reserved for future use */ +}; + + +LibHalPropertySetIterator +typedef struct LibHalPropertySetIterator_s LibHalPropertySetIterator; + + +libhal_psi_init +void +LibHalPropertySetIterator *iter, LibHalPropertySet *set + + +libhal_psi_has_more +dbus_bool_t +LibHalPropertySetIterator *iter + + +libhal_psi_next +void +LibHalPropertySetIterator *iter + + +libhal_psi_get_type +LibHalPropertyType +LibHalPropertySetIterator *iter + + +libhal_psi_get_key +char * +LibHalPropertySetIterator *iter + + +libhal_psi_get_string +char * +LibHalPropertySetIterator *iter + + +libhal_psi_get_int +dbus_int32_t +LibHalPropertySetIterator *iter + + +libhal_psi_get_uint64 +dbus_uint64_t +LibHalPropertySetIterator *iter + + +libhal_psi_get_double +double +LibHalPropertySetIterator *iter + + +libhal_psi_get_bool +dbus_bool_t +LibHalPropertySetIterator *iter + + +libhal_psi_get_strlist +char ** +LibHalPropertySetIterator *iter + + +libhal_string_array_length +unsigned int +char **str_array + + +libhal_free_string_array +void +char **str_array + + +libhal_free_string +void +char *str + + +libhal_new_device +char * +LibHalContext *ctx, DBusError *error + + +libhal_device_commit_to_gdl +dbus_bool_t +LibHalContext *ctx,const char *temp_udi,const char *udi,DBusError *error + + +libhal_remove_device +dbus_bool_t +LibHalContext *ctx,const char *udi,DBusError *error + + +libhal_merge_properties +dbus_bool_t +LibHalContext *ctx,const char *target_udi,const char *source_udi,DBusError *error + + +libhal_device_matches +dbus_bool_t +LibHalContext *ctx,const char *udi1,const char *udi2,const char *property_namespace,DBusError *error + + +libhal_manager_find_device_string_match +char ** +LibHalContext *ctx,const char *key,const char *value,int *num_devices,DBusError *error + + +libhal_device_add_capability +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *capability,DBusError *error + + +libhal_device_query_capability +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *capability,DBusError *error + + +libhal_find_device_by_capability +char ** +LibHalContext *ctx,const char *capability,int *num_devices,DBusError *error + + +libhal_device_property_watch_all +dbus_bool_t +LibHalContext *ctx,DBusError *error + + +libhal_device_add_property_watch +dbus_bool_t +LibHalContext *ctx,const char *udi,DBusError *error + + +libhal_device_remove_property_watch +dbus_bool_t +LibHalContext *ctx,const char *udi,DBusError *error + + +libhal_device_lock +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *reason_to_lock,char **reason_why_locked,DBusError *error + + +libhal_device_unlock +dbus_bool_t +LibHalContext *ctx,const char *udi,DBusError *error + + +libhal_device_rescan +dbus_bool_t +LibHalContext *ctx,const char *udi,DBusError *error + + +libhal_device_reprobe +dbus_bool_t +LibHalContext *ctx,const char *udi,DBusError *error + + +libhal_device_emit_condition +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *condition_name,const char *condition_details,DBusError *error + + +libhal_device_claim_interface +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *interface_name,const char *introspection_xml,DBusError *error + + +libhal_device_addon_is_ready +dbus_bool_t +LibHalContext *ctx, const char *udi, DBusError *error + + +libhal_device_singleton_addon_is_ready +dbus_bool_t +LibHalContext *ctx, const char *command_line, DBusError *error + + +libhal_device_acquire_interface_lock +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *interface,dbus_bool_t exclusive,DBusError *error + + +libhal_device_release_interface_lock +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *interface,DBusError *error + + +libhal_acquire_global_interface_lock +dbus_bool_t +LibHalContext *ctx,const char *interface,dbus_bool_t exclusive,DBusError *error + + +libhal_release_global_interface_lock +dbus_bool_t +LibHalContext *ctx,const char *interface,DBusError *error + + +libhal_device_is_caller_locked_out +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *interface,const char *caller,DBusError *error + + +libhal_device_is_locked_by_others +dbus_bool_t +LibHalContext *ctx,const char *udi,const char *interface,DBusError *error + + +libhal_device_is_caller_privileged +char* +LibHalContext *ctx,const char *udi,const char *action,const char *caller,DBusError *error + + +uthash_fatal +#define uthash_fatal(msg) exit(-1) /* fatal error (out of memory,etc) */ + + +uthash_bkt_malloc +#define uthash_bkt_malloc(sz) malloc(sz) /* malloc fcn for UT_hash_bucket's */ + + +uthash_bkt_free +#define uthash_bkt_free(ptr) free(ptr) /* free fcn for UT_hash_bucket's */ + + +uthash_tbl_malloc +#define uthash_tbl_malloc(sz) malloc(sz) /* malloc fcn for UT_hash_table */ + + +uthash_tbl_free +#define uthash_tbl_free(ptr) free(ptr) /* free fcn for UT_hash_table */ + + +uthash_noexpand_fyi +#define uthash_noexpand_fyi(tbl) /* can be defined to log noexpand */ + + +uthash_expand_fyi +#define uthash_expand_fyi(tbl) /* can be defined to log expands */ + + +HASH_INITIAL_NUM_BUCKETS +#define HASH_INITIAL_NUM_BUCKETS 32 /* initial number of buckets */ + + +HASH_BKT_CAPACITY_THRESH +#define HASH_BKT_CAPACITY_THRESH 10 /* expand when bucket count reaches */ + + +HASH_FIND +#define HASH_FIND(hh,head,keyptr,keylen_in,out) \ +do { \ + out=head; \ + if (head) { \ + (head)->hh.tbl->key = (char*)(keyptr); \ + (head)->hh.tbl->keylen = keylen_in; \ + HASH_FCN((head)->hh.tbl->key,(head)->hh.tbl->keylen, \ + (head)->hh.tbl->num_buckets,(head)->hh.tbl->bkt, \ + (head)->hh.tbl->i, (head)->hh.tbl->j,(head)->hh.tbl->k); \ + HASH_FIND_IN_BKT(hh, (head)->hh.tbl->buckets[ (head)->hh.tbl->bkt], \ + keyptr,keylen_in,out); \ + } \ +} while (0) + + +HASH_ADD +#define HASH_ADD(hh,head,fieldname,keylen_in,add) \ + HASH_ADD_KEYPTR(hh,head,&add->fieldname,keylen_in,add) + + +HASH_ADD_KEYPTR +#define HASH_ADD_KEYPTR(hh,head,keyptr,keylen_in,add) \ +do { \ + add->hh.next = NULL; \ + add->hh.key = (char*)keyptr; \ + add->hh.keylen = keylen_in; \ + add->hh.elmt = add; \ + if (!(head)) { \ + head = add; \ + (head)->hh.prev = NULL; \ + (head)->hh.tbl = (UT_hash_table*)uthash_tbl_malloc( \ + sizeof(UT_hash_table)); \ + if (!((head)->hh.tbl)) { uthash_fatal( "out of memory"); } \ + (head)->hh.tbl->name = #head; \ + (head)->hh.tbl->tail = &(add->hh); \ + (head)->hh.tbl->noexpand = 0; \ + (head)->hh.tbl->hash_q = 1<<16; \ + (head)->hh.tbl->num_buckets = HASH_INITIAL_NUM_BUCKETS; \ + (head)->hh.tbl->num_items = 0; \ + (head)->hh.tbl->hho = ((long)(&add->hh) - (long)(add)); \ + (head)->hh.tbl->buckets = (UT_hash_bucket*)uthash_bkt_malloc( \ + HASH_INITIAL_NUM_BUCKETS*sizeof(struct UT_hash_bucket)); \ + if (! (head)->hh.tbl->buckets) { uthash_fatal( "out of memory"); } \ + memset((head)->hh.tbl->buckets, 0, \ + HASH_INITIAL_NUM_BUCKETS*sizeof(struct UT_hash_bucket)); \ + } else { \ + (head)->hh.tbl->tail->next = add; \ + add->hh.prev = (head)->hh.tbl->tail->elmt; \ + (head)->hh.tbl->tail = &(add->hh); \ + } \ + (head)->hh.tbl->num_items++; \ + add->hh.tbl = (head)->hh.tbl; \ + (head)->hh.tbl->key = (char*)keyptr; \ + (head)->hh.tbl->keylen = keylen_in; \ + HASH_FCN((head)->hh.tbl->key,(head)->hh.tbl->keylen, \ + (head)->hh.tbl->num_buckets, \ + (head)->hh.tbl->bkt, \ + (head)->hh.tbl->i, (head)->hh.tbl->j, (head)->hh.tbl->k ); \ + HASH_ADD_TO_BKT(hh,(head)->hh.tbl->buckets[(head)->hh.tbl->bkt],add); \ + HASH_EMIT_KEY(hh,head,keyptr,keylen_in); \ + HASH_FSCK(head); \ +} while(0) + + +HASH_DELETE +#define HASH_DELETE(hh,head,delptr) \ +do { \ + if ( ((delptr)->hh.prev == NULL) && ((delptr)->hh.next == NULL) ) { \ + uthash_bkt_free((head)->hh.tbl->buckets ); \ + uthash_tbl_free((head)->hh.tbl); \ + head = NULL; \ + } else { \ + if ((delptr) == (head)->hh.tbl->tail->elmt) { \ + (head)->hh.tbl->tail = (void*)(((long)((delptr)->hh.prev)) + \ + (head)->hh.tbl->hho); \ + } \ + if ((delptr)->hh.prev) { \ + ((UT_hash_handle*)(((long)((delptr)->hh.prev)) + \ + (head)->hh.tbl->hho))->next = (delptr)->hh.next; \ + } else { \ + head = (delptr)->hh.next; \ + } \ + if ((delptr)->hh.next) { \ + ((UT_hash_handle*)(((long)((delptr)->hh.next)) + \ + (head)->hh.tbl->hho))->prev = (delptr)->hh.prev; \ + } \ + (head)->hh.tbl->key = (char*)((delptr)->hh.key); \ + (head)->hh.tbl->keylen = (delptr)->hh.keylen; \ + HASH_FCN((head)->hh.tbl->key,(head)->hh.tbl->keylen, \ + (head)->hh.tbl->num_buckets,(head)->hh.tbl->bkt, \ + (head)->hh.tbl->i,(head)->hh.tbl->j,(head)->hh.tbl->k ); \ + HASH_DEL_IN_BKT(hh,(head)->hh.tbl->buckets[(head)->hh.tbl->bkt], \ + delptr); \ + (head)->hh.tbl->num_items--; \ + } \ + HASH_FSCK(head); \ +} while (0) + + +HASH_FIND_STR +#define HASH_FIND_STR(head,findstr,out) \ + HASH_FIND(hh,head,findstr,strlen(findstr),out) + + +HASH_ADD_STR +#define HASH_ADD_STR(head,strfield,add) \ + HASH_ADD(hh,head,strfield,strlen(add->strfield),add) + + +HASH_FIND_INT +#define HASH_FIND_INT(head,findint,out) \ + HASH_FIND(hh,head,findint,sizeof(int),out) + + +HASH_ADD_INT +#define HASH_ADD_INT(head,intfield,add) \ + HASH_ADD(hh,head,intfield,sizeof(int),add) + + +HASH_DEL +#define HASH_DEL(head,delptr) \ + HASH_DELETE(hh,head,delptr) + + +HASH_OOPS +#define HASH_OOPS(...) do { fprintf(stderr,__VA_ARGS__); exit(-1); } while (0) + + +HASH_FSCK +#define HASH_FSCK(head) \ +do { \ + if (head) { \ + (head)->hh.tbl->keylen = 0; /* item counter */ \ + for( (head)->hh.tbl->bkt_i = 0; \ + (head)->hh.tbl->bkt_i < (head)->hh.tbl->num_buckets; \ + (head)->hh.tbl->bkt_i++) \ + { \ + (head)->hh.tbl->bkt_ideal = 0; /* bkt item counter */ \ + (head)->hh.tbl->hh = \ + (head)->hh.tbl->buckets[(head)->hh.tbl->bkt_i].hh_head; \ + (head)->hh.tbl->key = NULL; /* hh_prev */ \ + while ((head)->hh.tbl->hh) { \ + if ((head)->hh.tbl->key != \ + (char*)((head)->hh.tbl->hh->hh_prev)) { \ + HASH_OOPS("invalid hh_prev %x, actual %x\n", \ + (head)->hh.tbl->hh->hh_prev, \ + (head)->hh.tbl->key ); \ + } \ + (head)->hh.tbl->bkt_ideal++; \ + (head)->hh.tbl->key = (char*)((head)->hh.tbl->hh); \ + (head)->hh.tbl->hh = (head)->hh.tbl->hh->hh_next; \ + } \ + (head)->hh.tbl->keylen += (head)->hh.tbl->bkt_ideal; \ + if ((head)->hh.tbl->buckets[(head)->hh.tbl->bkt_i].count \ + != (head)->hh.tbl->bkt_ideal) { \ + HASH_OOPS("invalid bucket count %d, actual %d\n", \ + (head)->hh.tbl->buckets[(head)->hh.tbl->bkt_i].count, \ + (head)->hh.tbl->bkt_ideal); \ + } \ + } \ + if ((head)->hh.tbl->keylen != (head)->hh.tbl->num_items) { \ + HASH_OOPS("invalid hh item count %d, actual %d\n", \ + (head)->hh.tbl->num_items, (head)->hh.tbl->keylen ); \ + } \ + /* traverse hh in app order; check next/prev integrity, count */ \ + (head)->hh.tbl->keylen = 0; /* item counter */ \ + (head)->hh.tbl->key = NULL; /* app prev */ \ + (head)->hh.tbl->hh = &(head)->hh; \ + while ((head)->hh.tbl->hh) { \ + (head)->hh.tbl->keylen++; \ + if ((head)->hh.tbl->key !=(char*)((head)->hh.tbl->hh->prev)) {\ + HASH_OOPS("invalid prev %x, actual %x\n", \ + (head)->hh.tbl->hh->prev, \ + (head)->hh.tbl->key ); \ + } \ + (head)->hh.tbl->key = (head)->hh.tbl->hh->elmt; \ + (head)->hh.tbl->hh = ( (head)->hh.tbl->hh->next ? \ + (UT_hash_handle*)((long)((head)->hh.tbl->hh->next) + \ + (head)->hh.tbl->hho) \ + : NULL ); \ + } \ + if ((head)->hh.tbl->keylen != (head)->hh.tbl->num_items) { \ + HASH_OOPS("invalid app item count %d, actual %d\n", \ + (head)->hh.tbl->num_items, (head)->hh.tbl->keylen ); \ + } \ + } \ +} while (0) + + +HASH_FSCK +#define HASH_FSCK(head) + + +HASH_EMIT_KEY +#define HASH_EMIT_KEY(hh,head,keyptr,fieldlen) \ + (head)->hh.tbl->keylen = fieldlen; \ + write(HASH_EMIT_KEYS, &((head)->hh.tbl->keylen), sizeof(int)); \ + write(HASH_EMIT_KEYS, keyptr, fieldlen); + + +HASH_EMIT_KEY +#define HASH_EMIT_KEY(hh,head,keyptr,fieldlen) + + +HASH_FCN +#define HASH_FCN HASH_FUNCTION + + +HASH_FCN +#define HASH_FCN HASH_JEN + + +HASH_BER +#define HASH_BER(key,keylen,num_bkts,bkt,i,j,k) \ + bkt = 0; \ + while (keylen--) bkt = (bkt * 33) + *key++; \ + bkt &= (num_bkts-1); + + +HASH_SAX +#define HASH_SAX(key,keylen,num_bkts,bkt,i,j,k) \ + bkt = 0; \ + for(i=0; i < keylen; i++) \ + bkt ^= (bkt << 5) + (bkt >> 2) + key[i]; \ + bkt &= (num_bkts-1); + + +HASH_FNV +#define HASH_FNV(key,keylen,num_bkts,bkt,i,j,k) \ + bkt = 2166136261UL; \ + for(i=0; i < keylen; i++) \ + bkt = (bkt * 16777619) ^ key[i]; \ + bkt &= (num_bkts-1); + + +HASH_OAT +#define HASH_OAT(key,keylen,num_bkts,bkt,i,j,k) \ + bkt = 0; \ + for(i=0; i < keylen; i++) { \ + bkt += key[i]; \ + bkt += (bkt << 10); \ + bkt ^= (bkt >> 6); \ + } \ + bkt += (bkt << 3); \ + bkt ^= (bkt >> 11); \ + bkt += (bkt << 15); \ + bkt &= (num_bkts-1); + + +HASH_JEN_MIX +#define HASH_JEN_MIX(a,b,c) \ +{ \ + a -= b; a -= c; a ^= ( c >> 13 ); \ + b -= c; b -= a; b ^= ( a << 8 ); \ + c -= a; c -= b; c ^= ( b >> 13 ); \ + a -= b; a -= c; a ^= ( c >> 12 ); \ + b -= c; b -= a; b ^= ( a << 16 ); \ + c -= a; c -= b; c ^= ( b >> 5 ); \ + a -= b; a -= c; a ^= ( c >> 3 ); \ + b -= c; b -= a; b ^= ( a << 10 ); \ + c -= a; c -= b; c ^= ( b >> 15 ); \ +} + + +HASH_JEN +#define HASH_JEN(key,keylen,num_bkts,bkt,i,j,k) \ + bkt = 0xfeedbeef; \ + i = j = 0x9e3779b9; \ + k = keylen; \ + while (k >= 12) { \ + i += (key[0] + ( (unsigned)key[1] << 8 ) \ + + ( (unsigned)key[2] << 16 ) \ + + ( (unsigned)key[3] << 24 ) ); \ + j += (key[4] + ( (unsigned)key[5] << 8 ) \ + + ( (unsigned)key[6] << 16 ) \ + + ( (unsigned)key[7] << 24 ) ); \ + bkt += (key[8] + ( (unsigned)key[9] << 8 ) \ + + ( (unsigned)key[10] << 16 ) \ + + ( (unsigned)key[11] << 24 ) ); \ + \ + HASH_JEN_MIX(i, j, bkt); \ + \ + key += 12; \ + k -= 12; \ + } \ + bkt += keylen; \ + switch ( k ) { \ + case 11: bkt += ( (unsigned)key[10] << 24 ); \ + case 10: bkt += ( (unsigned)key[9] << 16 ); \ + case 9: bkt += ( (unsigned)key[8] << 8 ); \ + case 8: j += ( (unsigned)key[7] << 24 ); \ + case 7: j += ( (unsigned)key[6] << 16 ); \ + case 6: j += ( (unsigned)key[5] << 8 ); \ + case 5: j += key[4]; \ + case 4: i += ( (unsigned)key[3] << 24 ); \ + case 3: i += ( (unsigned)key[2] << 16 ); \ + case 2: i += ( (unsigned)key[1] << 8 ); \ + case 1: i += key[0]; \ + } \ + HASH_JEN_MIX(i, j, bkt); \ + bkt &= (num_bkts-1); + + +HASH_JSW +#define HASH_JSW(key,keylen,num_bkts,bkt,i,j,k) \ + bkt = 16777551; \ + for(i=0; i < keylen; i++) { \ + bkt = (bkt << 1 | bkt >> 31) ^ \ + *(int*)((long)( \ + "\xe9\x81\x51\xe4\x84\x9d\x32\xd9\x2d\xda\xca\x94\xa7\x85\x1e" \ + "\x28\xfe\xa3\x18\x60\x28\x45\xa6\x48\x67\xdb\xd5\xa2\x91\x4d" \ + "\x1a\x2f\x97\x37\x82\xd8\xe9\x1c\xb7\x7b\x3c\xa5\x4c\x23\x2" \ + "\x42\x85\x20\x78\x6c\x6\x67\x6f\xa5\xcb\x53\x8c\xe1\x1f\x12" \ + "\x66\xcb\xa0\xbe\x47\x59\x8\x20\xd5\x31\xd9\xdc\xcc\x27\xc3" \ + "\x4d\x8\x9f\xb3\x50\x8\x90\x4f\x1f\x20\x60\xb8\xe2\x7b\x63" \ + "\x49\xc0\x64\xc7\xaf\xc9\x81\x9c\x5f\x7d\x45\xc5\xe4\xe4\x86" \ + "\xaf\x1a\x15\x6c\x9b\xc3\x7c\xc5\x88\x2b\xf3\xd9\x72\x76\x47" \ + "\x56\xe6\x8c\xd1\x6c\x94\x41\x59\x4d\xe2\xd7\x44\x9a\x55\x5e" \ + "\xee\x9d\x7c\x8f\x21\x57\x10\x77\xf7\x4b\xd8\x7e\xc0\x4d\xba" \ + "\x1f\x96\x2a\x60\x13\xae\xab\x58\x70\xe5\x23\x62\x2b\x63\xb6" \ + "\x42\x8e\x8f\x57\xf2\xfa\x47\x37\x91\xac\x11\x3d\x9a\x85\x73" \ + "\x9e\x39\x65\xc8\xd4\x5b\xaa\x35\x72\x5f\x40\x31\x9a\xb0\xdd" \ + "\xa9\x2c\x16\xa3\x32\xef\xcb\x8c\x80\x33\x60\xd\x85\xce\x22" \ + "\x8c\x28\x6\x7f\xff\xf6\x8a\x5f\x21\x8e\xf2\xd0\xd9\x63\x66" \ + "\x22\xe8\xe6\x3\x39\xfd\x10\x69\xce\x6c\xc4\xde\xf3\x87\x56" \ + "\xc8\x4a\x31\x51\x58\xc5\x62\x30\x8e\xd\xd5\x2f\x7c\x24\xca" \ + "\xd1\x12\x1b\x3a\x3e\x95\x99\xa\x7\xc1\x83\xd0\x4f\x97\x8c" \ + "\xf1\xb0\x9c\xd8\xb9\x72\xd7\x3e\x6b\x66\x83\x8e\xe9\x86\xad" \ + "\xfa\xc2\xe\x4\xb5\x7b\x5d\x0\xbc\x47\xbe\x4\x69\xfa\xd1" \ + "\x29\x5c\x77\x38\xfc\x88\xeb\xd5\xe1\x17\x54\xf6\xe5\xb3\xae" \ + "\xc7\x14\xb6\x4b\xa6\x42\x4b\xa3\xdf\xa5\xcf\xdb\xad\xcd\x2c" \ + "\xa3\x3\x13\xc0\x42\x5d\x6e\x3c\xfe\xd8\xeb\xa7\x96\x47\x2b" \ + "\x61\xb3\x70\xc9\x6d\xff\x1a\x82\x65\xdc\x92\x4b\x1a\x52\x75" \ + "\xa5\x61\x55\x2b\xe\x7\xde\x1e\x71\xc5\x12\x34\x59\x4f\x19" \ + "\x2\x9\xb6\x5\xe6\x7b\xad\xb6\x92\xfb\x84\x32\xf1\x45\x6c" \ + "\xec\x1a\xcb\x39\x32\x2\x47\x51\xd6\xc8\x9d\xd0\xb1\xdb\xa8" \ + "\x90\x4c\x65\x5a\x77\x1f\xca\x74\x8e\x3b\xce\x76\x55\x8b\x78" \ + "\x3c\xf3\x19\x8f\xe1\xc3\xa9\x8a\xc8\xf3\x14\x30\x4e\x77\xe9" \ + "\xd5\x6a\xcb\x96\x2f\x31\x35\xff\x6b\x10\x92\xf7\xc4\x33\xb8" \ + "\x76\x35\x6\xf\x82\x1c\xfa\x1f\x92\x47\xa1\xf9\x7e\xe5\x51" \ + "\xee\x63\xaa\x9a\x38\xa3\xa1\x86\xbf\xf0\xe8\x29\xe1\x19\x83" \ + "\xff\x36\x3c\x26\x15\x89\x36\x22\x93\x41\x3e\x63\x36\x34\x4c" \ + "\xda\x18\xd4\x18\xd8\xc8\x8a\x10\x1f\x14\x4c\x7f\x79\xfc\x46" \ + "\xbb\xc8\x24\x51\xc7\xe4\xfb\xc0\x78\xb1\xe9\xac\xf1\x3d\x55" \ + "\x51\x9c\x8\xf0\xa6\x3\xcb\x91\xc6\xf4\xe2\xd4\xe5\x18\x61" \ + "\xfc\x8f\x8a\xce\x89\x33\xcd\xf\x7d\x50\xa0\x7d\x3f\xac\x49" \ + "\xe1\x71\x92\xc7\x8d\xc0\xd0\x6e\xe4\xf7\xcd\xc1\x47\x9f\x99" \ + "\xd5\x7\x20\xad\x64\xdb\xab\x44\xd4\x8\xc6\x9a\xa4\xa7\x7c" \ + "\x9b\x13\xe4\x9c\x88\xec\xc4\xcb\xe1\x3f\x5\x5\xf\xd\x3a" \ + "\x75\xed\xfa\xc0\x23\x34\x74\xfd\xca\x1c\x74\x77\x29\xc8\xb6" \ + "\xe2\xbb\xa1\xa\x2e\xae\x65\x3e\xcb\xf5\x5e\xe0\x29\x4c\xfa" \ + "\xab\x35\xea\x7\x9f\xb3\x3b\x9c\x4e\x86\xe8\x5b\x76\x11\xf1" \ + "\xbf\x7f\x73\x34\x71\x9\x2d\x2a\x60\x8f\x14\x12\xba\x26\x84" \ + "\xb9\x94\xa9\x59\x38\x25\xfd\x77\xc3\xe5\x86\xc4\x3\xda\x32" \ + "\x30\xd8\x84\x81\x83\x14\x8c\x24\xee\x51\xa9\x92\x61\xb2\xeb" \ + "\xce\xac\x34\xc1\xad\x24\x74\xce\xf9\xce\x5c\xfd\x45\x69\x1d" \ + "\xc6\xc2\xaf\x7c\x8d\x5\x52\xb5\x88\x2f\x9f\xee\x6b\x5f\xbd" \ + "\xfe\x22\x6\x47\xa2\xc8\x25\x37\x67\x44\x4c\xe\xfe\x7e\x5a" \ + "\x36\x7f\x18\x83\x8f\x82\x87\x3b\xbf\xb8\xd2\x37\xff\x52\x60" \ + "\xb5\xf3\xd\x20\x80\xcc\xb2\x7a\xdd\xc2\x94\xbc\xe3\xb1\x87" \ + "\x3e\x49\x57\xcc\xe9\x5a\xea\xb4\xe\xdf\xa6\x8f\x70\x60\x32" \ + "\xb\x7d\x74\xf5\x46\xb6\x93\xc2\x5\x92\x72\xfc\xd9\xd2\xe5" \ + "\x90\x36\x2a\xd4\xf9\x50\x33\x52\xa5\xcc\xcf\x14\x9e\xdc\x4f" \ + "\xb7\x7d\xcf\x25\xdb\xc0\x46\xdb\xea\xe\x27\xc8\x18\x40\x39" \ + "\xbd\xec\x48\xa3\xfa\x87\xa3\x18\x68\xfc\x7a\x44\xa8\xc5\x8c" \ + "\x45\x81\x70\x72\x14\x70\xf9\x40\xc8\xe7\x41\xcb\xde\xd\x4e" \ + "\x35\x4d\xcd\xe2\x40\xa3\x2e\xbb\xb7\x50\x6c\x26\xb8\xbe\x2a" \ + "\x36\x8e\x23\xb\xa\xfe\xed\xa\xe7\xa0\x16\x73\xad\x24\x51" \ + "\x7f\xda\x9d\xd7\x9f\x18\xe6\xa8\xe4\x98\xbc\x62\x77\x55\x60" \ + "\x88\x16\x25\xbf\x95\xad\xea\xe1\x87\x18\x35\x9e\x7c\x51\xee" \ + "\xc0\x80\x8b\xb8\x37\xfd\x95\xfe\x87\x15\xf4\x97\xd5\x61\x4f" \ + "\x97\xfa\xaf\x48\xd\x5b\x84\x2d\xdb\x15\xf2\xb4\x17\x4f\x41" \ + "\x31\x58\x32\x93\xc1\x52\x34\xa6\x17\xd\x56\x5\xee\xfb\xfb" \ + "\x2d\x69\x14\xbe\x24\x94\x8\xb0\xfc\x9f\x2\x95\x88\x7d\xd6" \ + "\xe7\xa4\x5b\xbb\xf2\x7d\xd8\xa5\xd2\x7c\x9\x62\x22\x5\x53" \ + "\xd0\x67\xeb\x68\xfc\x82\x80\xf\xc9\x73\x76\x36\xb8\x13\x9f" \ + "\xb1\xf1\xee\x61\x12\xe7\x5d\x75\x65\xb8\x84\x17\xb\x7b\x28" \ + "\x4c\xb7\xda\xbb" ) \ + + ( (unsigned char)key[i] * sizeof(int) )); \ + } \ + bkt &= (num_bkts-1); + + +HASH_KEYCMP +#define HASH_KEYCMP(a,b,len) memcmp(a,b,len) + + +HASH_FIND_IN_BKT +#define HASH_FIND_IN_BKT(hh,head,keyptr,keylen_in,out) \ +out = (head.hh_head) ? (head.hh_head->elmt) : NULL; \ +while (out) { \ + if (out->hh.keylen == keylen_in) { \ + if ((HASH_KEYCMP(out->hh.key,keyptr,keylen_in)) == 0) break; \ + } \ + out= (out->hh.hh_next) ? (out->hh.hh_next->elmt) : NULL; \ +} + + +HASH_ADD_TO_BKT +#define HASH_ADD_TO_BKT(hh,head,add) \ + head.count++; \ + add->hh.hh_next = head.hh_head; \ + add->hh.hh_prev = NULL; \ + if (head.hh_head) head.hh_head->hh_prev = &add->hh; \ + head.hh_head=&add->hh; \ + if (head.count >= ((head.expand_mult+1) * HASH_BKT_CAPACITY_THRESH) \ + && add->hh.tbl->noexpand != 1) { \ + HASH_EXPAND_BUCKETS(add->hh.tbl) \ + } + + +HASH_DEL_IN_BKT +#define HASH_DEL_IN_BKT(hh,head,delptr) \ + (head).count--; \ + if ((head).hh_head->elmt == delptr) { \ + (head).hh_head = delptr->hh.hh_next; \ + } \ + if (delptr->hh.hh_prev) { \ + delptr->hh.hh_prev->hh_next = delptr->hh.hh_next; \ + } \ + if (delptr->hh.hh_next) { \ + delptr->hh.hh_next->hh_prev = delptr->hh.hh_prev; \ + } + + +HASH_EXPAND_BUCKETS +#define HASH_EXPAND_BUCKETS(tbl) \ + tbl->new_buckets = (UT_hash_bucket*)uthash_bkt_malloc( \ + 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \ + if (!tbl->new_buckets) { uthash_fatal( "out of memory"); } \ + memset(tbl->new_buckets, 0, \ + 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \ + tbl->bkt_ideal= (tbl->num_items / tbl->num_buckets*2) + \ + ((tbl->num_items % (tbl->num_buckets*2)) ? 1 : 0);\ + tbl->sum_of_deltas = 0; \ + for(tbl->bkt_i = 0; tbl->bkt_i < tbl->num_buckets; tbl->bkt_i++) \ + { \ + tbl->hh = tbl->buckets[ tbl->bkt_i ].hh_head; \ + while (tbl->hh) { \ + tbl->hh_nxt = tbl->hh->hh_next; \ + tbl->key = tbl->hh->key; \ + tbl->keylen = tbl->hh->keylen; \ + HASH_FCN(tbl->key,tbl->keylen,tbl->num_buckets*2,tbl->bkt,\ + tbl->i,tbl->j,tbl->k); \ + tbl->newbkt = &(tbl->new_buckets[ tbl->bkt ]); \ + if (++(tbl->newbkt->count) > tbl->bkt_ideal) { \ + tbl->sum_of_deltas++; \ + tbl->newbkt->expand_mult = tbl->newbkt->count / \ + tbl->bkt_ideal; \ + } \ + tbl->hh->hh_prev = NULL; \ + tbl->hh->hh_next = tbl->newbkt->hh_head; \ + if (tbl->newbkt->hh_head) tbl->newbkt->hh_head->hh_prev = \ + tbl->hh; \ + tbl->newbkt->hh_head = tbl->hh; \ + tbl->hh = tbl->hh_nxt; \ + } \ + } \ + tbl->num_buckets *= 2; \ + uthash_bkt_free( tbl->buckets ); \ + tbl->buckets = tbl->new_buckets; \ + tbl->new_hash_q = (1<<16) - ((tbl->sum_of_deltas << 16) / tbl->num_items); \ + if (tbl->hash_q < (1<<15) && tbl->new_hash_q < (1<<15)) { \ + tbl->noexpand=1; \ + uthash_noexpand_fyi(tbl); \ + } \ + tbl->hash_q = tbl->new_hash_q; \ + uthash_expand_fyi(tbl); + + +HASH_SORT +#define HASH_SORT(head,cmpfcn) \ + if (head) { \ + (head)->hh.tbl->insize = 1; \ + (head)->hh.tbl->looping = 1; \ + (head)->hh.tbl->list = &((head)->hh); \ + while ((head)->hh.tbl->looping) { \ + (head)->hh.tbl->p = (head)->hh.tbl->list; \ + (head)->hh.tbl->list = NULL; \ + (head)->hh.tbl->tale = NULL; \ + (head)->hh.tbl->nmerges = 0; \ + while ((head)->hh.tbl->p) { \ + (head)->hh.tbl->nmerges++; \ + (head)->hh.tbl->q = (head)->hh.tbl->p; \ + (head)->hh.tbl->psize = 0; \ + for ( (head)->hh.tbl->i = 0; \ + (head)->hh.tbl->i < (head)->hh.tbl->insize; \ + (head)->hh.tbl->i++ ) { \ + (head)->hh.tbl->psize++; \ + (head)->hh.tbl->q = (((head)->hh.tbl->q->next) ? \ + ((void*)(((long)((head)->hh.tbl->q->next)) + \ + (head)->hh.tbl->hho)) : NULL); \ + if (! ((head)->hh.tbl->q) ) break; \ + } \ + (head)->hh.tbl->qsize = (head)->hh.tbl->insize; \ + while (((head)->hh.tbl->psize > 0) || \ + (((head)->hh.tbl->qsize > 0) && (head)->hh.tbl->q )) { \ + if ((head)->hh.tbl->psize == 0) { \ + (head)->hh.tbl->e = (head)->hh.tbl->q; \ + (head)->hh.tbl->q = (((head)->hh.tbl->q->next) ? \ + ((void*)(((long)((head)->hh.tbl->q->next)) + \ + (head)->hh.tbl->hho)) : NULL); \ + (head)->hh.tbl->qsize--; \ + } else if ( ((head)->hh.tbl->qsize == 0) || \ + !((head)->hh.tbl->q) ) { \ + (head)->hh.tbl->e = (head)->hh.tbl->p; \ + (head)->hh.tbl->p = (((head)->hh.tbl->p->next) ? \ + ((void*)(((long)((head)->hh.tbl->p->next)) + \ + (head)->hh.tbl->hho)) : NULL); \ + (head)->hh.tbl->psize--; \ + } else if (( \ + cmpfcn((head)->hh.tbl->p->elmt,(head)->hh.tbl->q->elmt)) \ + <= 0) { \ + (head)->hh.tbl->e = (head)->hh.tbl->p; \ + (head)->hh.tbl->p = (((head)->hh.tbl->p->next) ? \ + ((void*)(((long)((head)->hh.tbl->p->next)) + \ + (head)->hh.tbl->hho)) : NULL); \ + (head)->hh.tbl->psize--; \ + } else { \ + (head)->hh.tbl->e = (head)->hh.tbl->q; \ + (head)->hh.tbl->q = (((head)->hh.tbl->q->next) ? \ + ((void*)(((long)((head)->hh.tbl->q->next)) + \ + (head)->hh.tbl->hho)) : NULL); \ + (head)->hh.tbl->qsize--; \ + } \ + if ( (head)->hh.tbl->tale ) { \ + (head)->hh.tbl->tale->next = (((head)->hh.tbl->e) ? \ + ((head)->hh.tbl->e->elmt) : NULL); \ + } else { \ + (head)->hh.tbl->list = (head)->hh.tbl->e; \ + } \ + (head)->hh.tbl->e->prev = (((head)->hh.tbl->tale) ? \ + ((head)->hh.tbl->tale->elmt) : NULL); \ + (head)->hh.tbl->tale = (head)->hh.tbl->e; \ + } \ + (head)->hh.tbl->p = (head)->hh.tbl->q; \ + } \ + (head)->hh.tbl->tale->next = NULL; \ + if ( (head)->hh.tbl->nmerges <= 1 ) { \ + (head)->hh.tbl->looping=0; \ + (head)->hh.tbl->tail = (head)->hh.tbl->tale; \ + (head) = (head)->hh.tbl->list->elmt; \ + } \ + (head)->hh.tbl->insize *= 2; \ + } \ + HASH_FSCK(head); \ + } + + +UT_hash_bucket +typedef struct UT_hash_bucket { + struct UT_hash_handle *hh_head; + unsigned count; + unsigned expand_mult; +} UT_hash_bucket; + + +UT_hash_table +typedef struct UT_hash_table { + UT_hash_bucket *buckets; + unsigned num_buckets; + unsigned num_items; + int noexpand; /* when set, inhibits expansion of buckets for this hash */ + int hash_q; /* measures the evenness of the items among buckets (0-1) */ + struct UT_hash_handle *tail; /* tail hh in app order, for fast append */ + char *name; /* macro-stringified name of list head, used by libut */ + int hho; + /* scratch */ + unsigned bkt; + char *key; + size_t keylen; + int i,j,k; + /* scratch for bucket expansion */ + UT_hash_bucket *new_buckets, *newbkt; + struct UT_hash_handle *hh, *hh_nxt; + unsigned bkt_i, bkt_ideal, sum_of_deltas; + int new_hash_q; + /* scratch for sort */ + int looping,nmerges,insize,psize,qsize; + struct UT_hash_handle *p, *q, *e, *list, *tale; + +} UT_hash_table; + + +UT_hash_handle +typedef struct UT_hash_handle { + struct UT_hash_table *tbl; + void *elmt; /* ptr to enclosing element */ + void *prev; /* prev element in app order */ + void *next; /* next element in app order */ + struct UT_hash_handle *hh_prev; /* previous hh in bucket order */ + struct UT_hash_handle *hh_next; /* next hh in bucket order */ + void *key; /* ptr to enclosing struct's key */ + size_t keylen; /* enclosing struct's key len */ +} UT_hash_handle; + --- hal-0.5.10.orig/debian/control +++ hal-0.5.10/debian/control @@ -0,0 +1,103 @@ +Source: hal +Section: admin +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Sjoerd Simons +Uploaders: Sebastian Dröge , Michael Biebl +Build-Depends: debhelper (>= 5.0.37.2), cdbs, autotools-dev, libdbus-glib-1-dev (>= 0.61), libglib2.0-dev, libsysfs-dev, libexpat1-dev, libpopt-dev, pkg-config, pciutils, doxygen, intltool (>= 0.22), libusb-dev, libvolume-id-dev, xmlto, libxml2-utils, gtk-doc-tools, libsmbios-dev [i386 amd64], gperf, pciutils-dev +Standards-Version: 3.7.2 +XS-Vcs-Bzr: https://code.launchpad.net/~ubuntu-core-dev/hal/ubuntu +Homepage: http://hal.freedesktop.org/ + +Package: hal +Architecture: any +Depends: ${shlibs:Depends}, adduser, pciutils, usbutils, udev (>= 0.065), dbus (>= 0.61), lsb-base, hal-info (>= 20070402), pm-utils, mount (>= 2.13) +Recommends: eject, libsmbios-bin [i386 amd64] +Suggests: gnome-device-manager +Description: Hardware Abstraction Layer + HAL provides an abstract view on hardware. + . + This abstraction layer is simply an interface that makes it possible to + add support for new devices and new ways of connecting devices to the + computer, without modifying every application that uses the device. + It maintains a list of devices that currently exist, and can provide + information about those upon request. + +Package: hal-doc +Architecture: all +Section: doc +Suggests: devhelp +Description: Hardware Abstraction Layer - documentation + HAL provides an abstract view on hardware. + . + This abstraction layer is simply an interface that makes it possible to + add support for new devices and new ways of connecting devices to the + computer, without modifying every application that uses the device. + It maintains a list of devices that currently exist, and can provide + information about those upon request. + . + This package contains the API documentation for HAL. + +Package: libhal1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: Hardware Abstraction Layer - shared library + HAL provides an abstract view on hardware. + . + This abstraction layer is simply an interface that makes it possible to + add support for new devices and new ways of connecting devices to the + computer, without modifying every application that uses the device. + It maintains a list of devices that currently exist, and can provide + information about those upon request. + . + This package contains shared libraries to be used by applications. + +Package: libhal-storage1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: Hardware Abstraction Layer - shared library for storage devices + HAL provides an abstract view on hardware. + . + This abstraction layer is simply an interface that makes it possible to + add support for new devices and new ways of connecting devices to the + computer, without modifying every application that uses the device. + It maintains a list of devices that currently exist, and can provide + information about those upon request. + . + This library provides an interface for handling storage devices. + +Package: libhal-dev +Section: libdevel +Architecture: any +Depends: libhal1 (= ${binary:Version}), libdbus-1-dev (>= 0.60) +Suggests: hal-doc +Description: Hardware Abstraction Layer - development files + HAL provides an abstract view on hardware. + . + This abstraction layer is simply an interface that makes it possible to + add support for new devices and new ways of connecting devices to the + computer, without modifying every application that uses the device. + It maintains a list of devices that currently exist, and can provide + information about those upon request. + . + This package contains files that are needed to build applications. + +Package: libhal-storage-dev +Section: libdevel +Architecture: any +Depends: libhal-storage1 (= ${binary:Version}), libdbus-1-dev (>= 0.60), libhal-dev +Suggests: hal-doc +Description: Hardware Abstraction Layer - development files + HAL provides an abstract view on hardware. + . + This abstraction layer is simply an interface that makes it possible to + add support for new devices and new ways of connecting devices to the + computer, without modifying every application that uses the device. + It maintains a list of devices that currently exist, and can provide + information about those upon request. + . + This package contains files that are needed to build applications that use + libhal-storage1. + --- hal-0.5.10.orig/debian/hal.preinst +++ hal-0.5.10/debian/hal.preinst @@ -0,0 +1,76 @@ +#!/bin/sh + +set -e + +rm_conffile() { + PKGNAME="hal" + CONFFILE="$1" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +mv_conffile() { + OLD="$1" + NEW="$2" + if [ -e "$OLD" ]; then + md5sum="`md5sum \"$OLD\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg -s dhcdbd | sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' $OLD'{s/.* //;p}}\"`" + if [ "$md5sum" = "$old_md5sum" ]; then + mv -f "$OLD" "$OLD.moved-by-preinst" + else + mv -f "$OLD" "$NEW" + fi + fi +} + + +case "$1" in + install|upgrade) + if dpkg --compare-versions "$2" le "0.5.2-1"; then + rm_conffile "/etc/hal/fdi/preferences.fdi" + rm_conffile "/etc/dev.d/block/hal-unmount.dev" + fi + if dpkg --compare-versions "$2" le "0.5.6-2"; then + rm_conffile "/etc/udev/scripts/device-removable.sh" + fi + if dpkg --compare-versions "$2" le "0.5.6-4"; then + rm_conffile "/etc/hal/fdi/preferences.fdi" + fi + if dpkg --compare-versions "$2" le "0.5.7-2"; then + rm_conffile "/etc/udev/rules.d/90-hal.rules" + fi + if dpkg --compare-versions "$2" le "0.5.7.1-1"; then + deluser --quiet --system hal > /dev/null || true + fi + if dpkg --compare-versions "$2" le "0.5.8.1-3ubuntu7"; then + mv_conffile /etc/udev/rules.d/85-hal.rules /etc/udev/rules.d/95-hal.rules + fi + if dpkg --compare-versions "$2" lt "0.5.9-3"; then + if [ -x /etc/dbus-1/event.d/20hal ]; then + /etc/dbus-1/event.d/20hal stop + fi + rm_conffile "/etc/dbus-1/event.d/20hal" + fi + # clean up doc directory symlinking from Gutsy + if dpkg --compare-versions "$2" lt-nl 0.5.10; then + for p in hal libhal-dev libhal-storage1 libhal-storage-dev; do + f=/usr/share/doc/$p + [ -e "$f" ] && rm -f $f || true + done + fi +esac + +#DEBHELPER# + +exit 0 --- hal-0.5.10.orig/debian/hal.default +++ hal-0.5.10/debian/hal.default @@ -0,0 +1 @@ +DAEMON_OPTS= --- hal-0.5.10.orig/debian/libhal-storage1.install +++ hal-0.5.10/debian/libhal-storage1.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/libhal-storage.so.* --- hal-0.5.10.orig/debian/rules +++ hal-0.5.10/debian/rules @@ -0,0 +1,38 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/rules/utils.mk + +ifneq ($(findstring $(DEB_BUILD_ARCH), i386 amd64),) +MACBOOK_SUPPORT = --with-macbookpro --with-macbook +endif + +DEB_CONFIGURE_EXTRA_FLAGS := --enable-hotplug-map \ + --with-pid-file=/var/run/hal/hald.pid \ + --enable-pcmcia-support \ + --with-hwdata=/usr/share/misc \ + $(MACBOOK_SUPPORT) \ + --disable-policy-kit \ + --disable-console-kit \ + --enable-umount-helper \ + --enable-docbook-docs \ + --docdir=/usr/share/doc/hal-doc + +DEB_DH_INSTALLINIT_ARGS := -- start 24 2 3 4 5 . stop 16 1 . + +common-install-impl:: + # Remove hal's default udev rules files.. We ship our own + rm -rf $(DEB_DESTDIR)/etc/udev + + install -m 644 -D debian/hal.udev.rules \ + $(DEB_DESTDIR)/etc/udev/rules.d/95-hal.rules + +install/hal:: + # Remove executable bit as this is nothing that can be executed + chmod -x $(DEB_DESTDIR)/usr/lib/hal/scripts/hal-functions + # Don't install 10-x11-input.fdi until xorg input hotplugging is fixed to + # properly support non-US keyboard layouts (see also: #442316). + rm -f $(DEB_DESTDIR)/usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi + --- hal-0.5.10.orig/debian/watch +++ hal-0.5.10/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://hal.freedesktop.org/releases/hal-([\d\.]+)\.tar\.gz --- hal-0.5.10.orig/debian/shlibs.local +++ hal-0.5.10/debian/shlibs.local @@ -0,0 +1 @@ +libhal 1 libhal1 (>= 0.5) --- hal-0.5.10.orig/debian/changelog +++ hal-0.5.10/debian/changelog @@ -0,0 +1,1460 @@ +hal (0.5.10-2ubuntu1) hardy; urgency=low + + * Merge with Debian unstable to get the X.org input hotplug reversion for + the time being. + * *.preinst: On upgrades from Gutsy, remove the symlinks to entire + /usr/share/doc// directories which got introduced in Gutsy. They + break upgrades all over, and current cdbs just symlinks individual files. + + -- Martin Pitt Wed, 31 Oct 2007 10:46:49 -0400 + +hal (0.5.10-2) unstable; urgency=low + + * debian/rules + - Remove /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi which + effectively disables xorg input hotplugging again + (Closes: #447666, #447676, #447841). + This is only a temporary workaround until xserver-xorg has been fixed + to provide a clean upgrade path for non-US keyboard layouts. + * debian/hal.examples + - Install 10-x11-input.fdi under /usr/share/doc/hal/examples/ for the time + being. + * debian/patches/71_realpath.patch + - Include stdlib.h in tools/hal-disable-polling.c for the realpath + function prototype definition (Closes: #447657). + Patch by dann frazier, thanks. + + -- Michael Biebl Wed, 24 Oct 2007 15:38:34 +0200 + +hal (0.5.10-1ubuntu1) hardy; urgency=low + + * Redo the bzr branch of this package as clean fork from the Debian svn + (https://code.launchpad.net/~ubuntu-core-dev/hal/debian, thanks bzr-svn!) + and commit the remaining relevant Ubuntu patches to it: + https://code.launchpad.net/~ubuntu-core-dev/hal/ubuntu + * Merge with Debian unstable; remaining Ubuntu changes: + - Ubuntu udev world order: + + debian/hal.links: Remove rules symlink, we install the rules file + directly into rules/. + + debian/rules: Install udev rules into /etc/udev/rules.d/. + + debian/hal.{preinst,postinst,postrm}: Transition code for changing the + udev rule priority (see 0.5.8.1-3ubuntu7, needs to be kept until after + next LTS). + - debian/rules: Enable MacBook (Pro) support on i386 and amd64. Add + pciutils-dev build dependency. + - debian/hal.init: Remove stray gparted-disable-automount.fdi on startup. + (LP #134712) + - debian/rules: Do not run stop init.d script for levels 1 and 6 + (TearDown). + - debian/preferences.fdi: Disable automounting for fixed disks. On session + startup it is not done anyway (since that disables the gnome-mount UI + which would ask for authentication) and it leads to confusion when + restarting hal while a session is running. (LP #138537) + - 80_allow_vfat_usefree.patch: Allow vfat mount option "usefree". + (LP #133567) + - 81_ignore_single_slash_label.patch: Ignore labels which only consist of a + slash, so that they do not end up as /media/-. An earlier Ubuntu + d-i/ubiquity created those labels by default. (LP #83323) + - 82_ignore_fixed_nonmedia.patch: Ignore fixed partitions which mounted, + but not below /media/. + - 83_ssb_bus_support.patch: Add support for devices on the SSB bus; patch + by Matthew Garrett (not applied upstream yet, this needs to update the + spec, too). + - 84_memstick_bus_support.patch: Add support for devices on the "memstick" + bus; patch by Matthew Garrett (not reported upstream yet, this needs to + update the spec, too). + - 85_read_brightness_not_actual_brightness.patch: Read the brightness from + /sys/class/backlight/foo/brightness, not actual_brightness. It makes more + sense to change based on the brightness that we wanted to set, not the + brightness that we actually set. Patch by Matthew Garrett. Forwarded to + FD#12891. + * Now build with libsmbios to get Dell backlight support. (LP: #43572) + * Dropped the following Ubuntu changes: + - hwdb icons and patches, python-launchpad-integration, .desktop file + translation fixes: hal-device-manager is gone, will be replaced by + indepentent gnome-device-manager project. + - symlinking of doc directories in debian/rules: current cdbs does that + automatically now. + - 02_powerscripts.patch, 90_pmi.patch: pm-utils is the only supported + backend now. + - 26-addon-acpi-fix-free-before-init.diff, + 63_my_dbus_is_full_of_uints.patch, 69_set_dmi_before_matching.patch, + macbook-backlight.diff: Applied upstream. + - 56_probe_fstab.patch and the disabling of mounting for unmounted + partitions which are 'auto' in fstab: The patch does not fit into hal's + design to always show current information, was rejected upstream, + only handles a corner case, and we do not automount fixed drives anyway. + * Add 86_allow_ufs_ufstype.patch: Allow ufs mount option 'ufstype', thanks + to Georges Discry. (LP: #110865, FD#10998) + + -- Martin Pitt Tue, 23 Oct 2007 12:33:58 +0200 + +hal (0.5.10-1) unstable; urgency=low + + [ Michael Biebl ] + * New upstream release. + - Ships the x11-input.fdi file which is required for the xorg input + hotplugging (Closes: #446851). + - Correctly initializes the dbus error struct in the acpi addon + (Closes: #438802). + + hal-device-manager has been removed from the upstream tarball. There is + now a separate project called gnome-device-manager which is intended to + replace hal-device-manager. + * Remove obsolete files + - debian/hal-device-manager.1 + - debian/hal-device-manager.desktop + - debian/hal-device-manager.install + - debian/hal-device-manager.manpages + - debian/patches/62_dbus-python-0.80.patch + - debian/pyversions + * debian/rules + - Remove the dh_pysupport call. + - Enable the hal umount helper. + * debian/control + - Remove Build-Depends: python, python-dbus, python-support. + - Remove binary package hal-device-manager. + - Replace Suggests: hal-device-manager with gnome-device-manager. + - Use the new "Homepage:" field to specify the upstream URL. + - Add a Build-Depends: gperf. This utility is required for building the + hal-setup-keymap binary that is necessary for the multimedia key + re-mapping support. + - Add a Recommends: libsmbios-bin [i386 amd64]. The libsmbios-bin + package ships the dellWirelessCtl utility which is required for the + RF kill switch support on DELL laptops. + - Add a Depends: pm-utils. Beginning with this release we will only + support pm-utils as suspend infrastructure. + - Add a versioned Depends on mount (>= 2.13). This is a requirement of the + hal umount helper. + * debian/libhal1.shlibs, debian/libhal-storage1.shlibs + - Bump shlibs to >= 0.5.10 due to ABI additions. + * debian/hal.install + - Install the hal-setup-keymap binary. + - Install the hal umount helper to /usr/sbin as it has dependencies on + libraries in /usr/lib. + * debian/hal.links + - Create a symlink from /usr/sbin/umount.hal to /sbin. + * debian/watch + - Update to new download location at http://hal.freedesktop.org/releases/. + * Remove patches that were merged upstream + - debian/patches/68-pass-noquirks-to-pm-utils.patch + - debian/patches/70-libhal-changeset-memleak.patch + - debian/patches/75-hal-serial-null.patch + * debian/patches/70_killswitch_dell.patch + - Fix the path for the dellWirelessCtl utility (Closes: #443583). + * debian/patches/02_powerscripts.patch, + debian/patches/14_power_suspend_linux_pmu_fix.patch + - As we only support pm-utils, these patches have become obsolete and are + thus removed. + * debian/patches/55_nonpolkit-mount-policy.patch + - Rework patch for this hal version. Throw a Volume.PermissionDenied error + if a non-removable device is mounted by a user other than root. + + [ Sebastian Dröge ] + * debian/patches/68_alternative-cdrw-capacity-detection.patch + - Add an alternative method of detecting the capacity of CDR/CDRW discs. + Only using the old method fails for some drives, for more information + see http://bugs.freedesktop.org/show_bug.cgi?id=12822 . + * debian/rules: + - Don't mark /usr/lib/hal/scripts/hal-functions executable, this is + nothing that can be executed. + + -- Michael Biebl Mon, 22 Oct 2007 14:42:59 +0200 + +hal (0.5.9.1-6) unstable; urgency=low + + * debian/hal.init: + + Don't start hal if sysfs is not mounted on /sys or a chrooted session + is detected. + + -- Sebastian Dröge Tue, 25 Sep 2007 15:46:11 +0200 + +hal (0.5.9.1-5) unstable; urgency=low + + [ Sjoerd Simons ] + * debian/patches/75-hal-serial-null.patch: Fix crash when linux.device_file + of a serial device isn't known (Closes: #439919, #440468) + + -- Sjoerd Simons Sun, 23 Sep 2007 16:26:38 +0200 + +hal (0.5.9.1-4) unstable; urgency=low + + * debian/rules + - Do not explicitly enable the dell-backlight support as libsmbios-dev is + only available on amd64/i386. The ./configure script will automatically + enable the feature for platforms where libsmbios-dev is installed. + (Closes: #438459) + + -- Michael Biebl Fri, 17 Aug 2007 09:58:08 +0200 + +hal (0.5.9.1-3) unstable; urgency=low + + * Check for inotify support in the init script and fail gracefully with a + proper error message. (Closes: #426049, #434615) + * Check if dbus is running in the init script and fail gracefully with a + proper error message. (Closes: #426420, #427332) + * debian/hal-device-manager.desktop + - Remove invalid category "Application" from the Categories field. + + -- Michael Biebl Thu, 16 Aug 2007 09:57:24 +0200 + +hal (0.5.9.1-2) unstable; urgency=low + + [ Sjoerd Simons ] + * debian/control + + Add libsmbios-dev build-depend on amd64 and i386 to build the dell + backlight addon (Closes: #429871) + * debian/patches/70-libhal-changeset-memleak.patch + + Added. Fixes a memleak when freeing hal changesets. (Closes: #429823) + + [ Michael Biebl ] + * debian/hal.preinst + - Do not parse /var/lib/dpkg/status directly but use dpkg-query instead. + + -- Michael Biebl Fri, 22 Jun 2007 19:35:08 +0100 + +hal (0.5.9.1-1) unstable; urgency=low + + [ Sjoerd Simons ] + * debian/hal.udev.rules + + No longer try calling pumount or umount when devices are removed but not + unmounted. Leave this to hal itself + * debian/hal-unmount.sh + + Removed. No longer needed + + [ Tim Dijkstra ] + * Tell pm-utils if we know a machine doesn't need a quirk + + [ Michael Biebl ] + * New upstream release. + * Patches removed as they were merged upstream: + - debian/patches/10_repeated_property_changed_signals.patch + - debian/patches/11_fix_luks_mounting.patch + - debian/patches/12_powerscripts_quirks.patch + - debian/patches/16_ntfs_allowed_mount_options.patch + - debian/patches/66-NULL-fstype-crash.patch + - debian/patches/67-fix-probe-volume.patch + * debian/control + - Replace ${Source-Version} with ${binary:Version}. + - Add build dependency on autotools-dev for up-to-date config.{guess,sub} + files. + * debian/hal.init + - Don't fail to start if hal daemon is already running. + + -- Michael Biebl Tue, 19 Jun 2007 21:23:03 +0100 + +hal (0.5.9-3) unstable; urgency=low + + * Install the hal start script as regular SysV init script + (Closes: #407132, #397223) + - Rename debian/hal.init.dbus to debian/hal.init. + - Add proper LSB header to debian/hal.init and cleanup some cruft. + - debian/rules + + Don't install /etc/dbus-1/event.d/20hal anymore. + + Set DEB_DH_INSTALLINIT_ARGS to start at 24 and stop at 16. + - debian/hal.{preinst,postinst,prerm} + + The shell code to start/stop the hal daemon is now automatically + created by dh_installinit, so remove the manually written code. + hal.prerm is empty and therefore removed completely. + - debian/hal.preinst + + Remove the old conffile /etc/dbus-1/event.d/20hal or rename it to + *.dpkg-bak if it was modified locally. + + -- Michael Biebl Wed, 23 May 2007 12:33:08 +0200 + +hal (0.5.9-2) unstable; urgency=low + + [ Michael Biebl ] + * Upload to unstable. + + * Changes merged from Ubuntu: + - debian/patches/16_ntfs_allowed_mount_options.patch + + Allow NTFS mount option 'utf8' (LP #78142). + - debian/patches/62_dbus-python-0.80.patch + + Correctly show HAL properties in hal-device-manager with dbus-python. + (FD #9343; rejected upstream because h-d-m is going away). + - debian/patches/65-keyboard-addon-repeated.patch + + Do not ignore key repeat events in the keyboard addon. (FD #9767) + - debian/patches/66-NULL-fstype-crash.patch + + Do not crash on NULL volume.fstypes, and assing some fallback values + to them. (FD #10429, LP #87800) + - debian/patches/67-fix-probe-volume.patch + + Fix scrambled labels. (FD #10362, LP #69914) + - debian/hal.init.dbus + + Use actual init script path in usage help. + - debian/run-hald.sh + + Put absolute paths in HALD_RUNNER_PATH so that callouts are found, + too. + + * debian/control + - Drop Build-Depends: linux-kernel-headers (>= 2.6.17). + linux-libc-dev in unstable is recent enough. + - Drop Build-Depends: libcap-dev. It's only needed for compiling some of + the test programs. (Closes: #398933) + * debian/hal.postrm + - Reload dbus only on purge, i.e. when the conffile + /etc/dbus-1/system.d/hal.conf is removed. + - Remove the fdi-cache file on purge. + - Check for deluser being available. If not, print a warning message and + do not remove the haldaemon system account. (Closes: #416760) + * debian/hal.{preinst,postinst} + - Remove some old upgrade paths for the hal init script. + + [ Sjoerd Simons ] + * debian/libhal1.shlibs, debian/libhal-storage1.shlibs: Bump shlibs + + -- Michael Biebl Mon, 07 May 2007 15:41:16 +0200 + +hal (0.5.9-1) experimental; urgency=low + + * New upstream release. + - Fixes detection of wireless devices with dscape stack. (Closes: #399507) + - Adds support for fuse mounts. (Closes: #418570) + - Adds support for new sysfs layout of kernels > 2.6.20. (Closes: #410868) + * Patches removed as they were applied or fixed upstream: + - debian/patches/03_macbookpro_configure.patch + - debian/patches/04_cd_write.patch + - debian/patches/05_one_formfactor_fallback.patch + - debian/patches/06_smbios_return.patch + - debian/patches/07_ppc_suspend.patch + - debian/patches/08_openfirmware.patch + - debian/patches/09_check_hashtable_initialisation.patch + - debian/patches/10_callout_errors.patch + - debian/patches/11_no_useless_runner_errors.patch + - debian/patches/12_pegasus_pmu_crash_fix.patch + - debian/patches/13_hal_callout_bashism.patch + - debian/patches/15_partition_probing.patch + - debian/patches/24_dbus_connection_close.patch + - debian/patches/25_correctly_free_lists.patch + - debian/patches/26_fix_hald_not_running_coredump.patch + - debian/patches/27_hal_fix_dbus_error_is_set.patch + - debian/patches/29_handle_non_hal_mounts.patch + - debian/patches/30_cdrom_bogus_tocinfo.patch + * Revised patches: + - debian/patches/02_powerscripts.patch + - debian/patches/55_nonpolkit-mount-policy.patch + - debian/patches/14_power_suspend_linux_pmu_fix.patch + * debian/patches/19_sonypi_support.patch + - Removed. Instead of relying on the external spicctrl tool, /dev/sonypi + is used directly now by the hal-system-sonypic addon. + * Patches taken from upstream: + - debian/patches/10_repeated_property_changed_signals.patch + + Do not trigger the "device_property_changed" signal twice. + - debian/patches/11_fix_luks_mounting.patch + + Fix the lock checking for LUKS setup/teardown. + - debian/patches/12_powerscripts_quirks.patch + + Pass the correct quirks to pm-supend and pm-hibernate. + * debian/control + - Add Depends: hal-info (>= 20070402) to hal package. + - Change the Build-Depends: docbook-utils to xmlto which is now used for + building the API documentation. + * debian/libhal(-storage)-dev.install + - Do not install libtool *.la files anymore. + * debian/rules + - Remove cdbs tarball.mk rules file. + - Cleanup obsolete rm commands from common-install-impl. + * debian/hal.install + - Install the binaries hal-disable-polling, hal-is-caller-locked-out and + hal-lock. + * debian/hal.dirs + - Create the directories /var/cache/hald (fdi files cache) and + /var/lib/hal (dev acl management list). + * debian/hald.8, debian/lshal.1 + - Removed. Shipped upstream. + * debian/hal.manpages + - Install upstream manpages. (Closes: #277399) + + -- Michael Biebl Tue, 03 Apr 2007 09:31:47 +0200 + +hal (0.5.8.1-9) unstable; urgency=low + + * debian/no-cd-media-check.fdi + - Re-added "HL-DT-ST DVD-RW GCA-4080N" product string + + -- Sjoerd Simons Wed, 14 Mar 2007 21:31:28 +0100 + +hal (0.5.8.1-8) unstable; urgency=low + + [ Michael Biebl ] + * debian/control: + - Add an explicit build dependency on docbook-xml so we don't fail on + buildds without network access. + + [ Sjoerd Simons ] + * debian/hal-unmount.sh: Always run pumount/umount if a block device is + removed, not only when it's mounted. This ensure that dm devices can be + properly deconfigured by pumount. + * debian/debian-storage-policy-ignore-fixed-crypto-drives.fdi + - Added. Ignore non-removable devices with crypto volumes again + (Closes: #414417) + + -- Sjoerd Simons Wed, 14 Mar 2007 20:36:26 +0100 + +hal (0.5.8.1-7) unstable; urgency=low + + [ Sjoerd Simons ] + * Acknowledge Steve Langasek's NMU. (Closes: #370186) + * debian/patches/29_handle_non_hal_mounts.patch + - Added. Handle volume removal for mounted volumed that weren't mounted by + hal correctly. + * debian/patches/30_cdrom_bogus_tocinfo.patch + - Added. Some cdrom drives/discs report a wrong start of the session in the + TOC, causing hal to not detect the filesystem. Work around this by + rescanning at offset 0 for discs when filesystem detection fails. + + [ Michael Biebl ] + * Add XS-Vcs-* fields to debian/control. + * Drop debian-storage-policy-fixed-drives.fdi in favor of + debian/patches/55_nonpolkit-mount-policy.patch. + This fixes the problem that local devices are not shown in nautilus. + (Closes: #394155, #395169, #409879) + * debian/patches/02_powerscripts.patch + - Add support for pm-utils and prefer it over other solutions. This is in + anticipation of hal-0.5.9, where pm-utils will be the preferred backend. + * Install HAL specification document. (Closes: #413813) + - debian/control: Build-Depend on docbook-utils and libxml2-utils. + - debian/rules: Pass --enable-docbook-docs to ./configure. + * debian/watch + - Fix regexp to not match non-hal releases, like hal-info. + + -- Sjoerd Simons Wed, 7 Mar 2007 23:50:11 +0100 + +hal (0.5.8.1-6.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for RC bugfix. + * Provide /usr/share/doc/hal/examples/no-cd-media-check.fdi as an example + for disabling CD ROM media checks, and document this in README.Debian, as + a workaround for CD drives with broken firmware. Closes: #370186. + + -- Steve Langasek Mon, 12 Feb 2007 16:42:29 -0800 + +hal (0.5.8.1-6) unstable; urgency=low + + * debian/patches/19_sonypi_support.patch + - Added. Fixes the sonypi brightness setting method + (Patch from Mike Hommey) (Closes: #391528) + + -- Sjoerd Simons Mon, 15 Jan 2007 22:53:09 +0100 + +hal (0.5.8.1-5) unstable; urgency=high + + [ Michael Biebl ] + * debian/hal-doc.install, debian/hal-doc.links + - Install API documentation into /usr/share/doc/hal-doc/html and create a + link back to /usr/share/gtk-doc/html/hal so devhelp can find it. + (Closes: #398803) + * debian/control + - Add a Suggests on devhelp for the hal-doc package which allows to + access the API documentation more easily. + + [ Sebastian Dröge ] + * debian/control: + + Updated to use my debian.org mail address + + [ Sjoerd Simons ] + * debian/patches/28_runner_64bit_values.patch + - Added. Ensure 64 bit values are correctly aligned before passing them to + dbus (Closes: #404937) + * Urgency high, fixes an RC bug + + -- Sjoerd Simons Mon, 15 Jan 2007 14:28:45 +0100 + +hal (0.5.8.1-4) unstable; urgency=low + + [ Michael Biebl ] + * Improve short description of the hal-doc package. (Closes: #387374) + + [ Sebastian Dröge ] + * Patches from upstream GIT: + + debian/patches/24_dbus_connection_close.patch: + - Don't call dbus_connection_close() in lshal and hal-device. This is + invalid usage of DBus API. + GIT changeset c85e02d58d6503b494bb4c8584a7c44ac6923208 + + debian/patches/25_correctly_free_lists.patch: + - Correctly free lists to prevent accessing free'd memory. + GIT changeset a56a15b90177734c70a8b03d961a7bcabdea2af8 + + debian/patches/26_fix_hald_not_running_coredump.patch: + - Don't coredump utilities when hald is not running but print a usefull + error message. GIT changeset c2053bf825cd9d81949d63ad83790a68310bb808 + + [ Sjoerd Simons ] + * debian/patches/02_powerscripts.patch + + Prefer hibernate over uswsusp. (Closes: #397302) + * debian/patches/27_hal_fix_dbus_error_is_set.patch + + Added. Ensure libhal never calls dbus_error_is_set(NULL) as that's not + allowed in the D-Bus API + + -- Sjoerd Simons Sat, 11 Nov 2006 14:16:52 +0100 + +hal (0.5.8.1-3) unstable; urgency=low + + * debian/control + - Add a Recommends on eject to the hal package. + - Add myself to Uploaders. + * 15_partition_probing.patch + - Added. Fixes problems with extended partition tables. + (Closes: #393245, #392978) + * Update to new python policy using python-support + - Tightened Build-Depends on python-support (>= 0.5.3). + - Drop X[SB]-P-V fields from debian/control, add a debian/pyversions file + instead specifying the supported python versions. + - Drop debian/pycompat. + - Drop dh_python call from debian/rules, call dh_pysupport with the + correct path to the modules directory. + - Call dh_pysupport in binary-install instead of binary-predeb. + + -- Michael Biebl Tue, 24 Oct 2006 13:33:55 +0200 + +hal (0.5.8.1-2) unstable; urgency=low + + * 12_pegasus_pmu_crash_fix.patch + - Added. Check if power_management.type was set before doing strcmp and + detect Pegasos machines as having the desktop formfactor + (Closes: #391124) + * /debian/patches/13_hal_callout_bashism.patch + - Added. Fix some bashisms in the hal callout scripts + * debian/patches/02_powerscripts.patch + - Updated. Use s2ram instead of s2both to let uswsusp suspend to ram + (Closes: #388558) + * debian/patches/14_power_suspend_linux_pmu_fix.patch + - Added. Use the correct hal property to check the powermanagement type. + (Closes: #393203) + + -- Sjoerd Simons Wed, 18 Oct 2006 23:45:26 +0200 + +hal (0.5.8.1-1) unstable; urgency=low + + * New upstream release + u debian/patches/01_hal_debian_dbuspolicy.patch + - Updated. + * debian/patches/05_pmu_nohibernate.patch + - Removed. Recent kernels don't crash my machine anymore + * debian/patches/04_hald_scripts.patch + debian/patches/06_more_buttons.patch + debian/patches/08_probe_serial.patch + debian/patches/09_sony_brightness.patch + debian/patches/12_refresh_acpi_states.patch + debian/patches/14_probe_volume_invalidlabel.patch + debian/patches/16_dont_stat_autofs.patch + debian/patches/17_fix_dbus_090_build.patch + debian/patches/18_hald_runner_fd_leak.patch + debian/patches/22_recognize_partitions.patch + - Removed. All fixed upstream + * debian/patches/07_suspend2.patch + debian/patches/20_uswsusp.patch + debian/patches/21_acpi_support.patch + - Merged into 02_powerscripts.patch + * debian/patches/hdm-python2.4.patch + - Removed. Not needed anymore since the default python is 2.4 now + * debian/patches/19_sonypi_support.patch + - Updated. Upstream supports spicctrl but assumes it's in a different path + * debian/patches/15_mount_scripts_pmount.patch + - Removed. Replaced by the new version of the mount scripts + * debian/rules: Disable PolicyKit + * debian/control: Add build-depend on libvolume-id-dev + * debian/patches/23_addon_acpi.patch + - Updated. + * debian/control: Add linux-kernel-headers (>= 2.6.17) to the build-depends + for the definition of ARPHRD_IEEE80211_RADIOTAP + * debian/hal.install: Scripts are no longer in /usr/share/hal but in + /usr/lib/hal + * debian/patches/03_macbookpro_configure.patch + - Added. Change configure so the macbook pro utils can actually be + disabled. + * debian/rules: Disable the macbook pro backlight addon. + * debian/patches/04_cd_write.patch + - Added. don't crash on cd drives without write capabilities (From + upstream git) + * debian/patches/05_one_formfactor_fallback.patch + - Added. Use one fallback to an unknown formfactor instead of three. Fixes + bugs caused by falling back when not needed. + * debian/patches/06_smbios_return.patch + - Added. Only let the prober return success if it actually found some + usefull info. + * debian/patches/07_ppc_suspend.patch + - Added. pmu systems can suspend by using hal's own tool. So actually flag + it as being able to suspend even though mem isn't in /sys/power/state + * debian/patches/08_openfirmware.patch + - Added. Extra model and machine compatibility from openfirmware and + use that info to detect the formfactor. + * debian/debian-storage-policy-fixed-drives.fdi + - Added. Add policy to hal so it refuses to mount and unmount fixed + drives. + * debian/patches/09_check_hashtable_initialisation.patch + - Added. Check if the udi to method queue hashtable is initialized before + using it. (From upstream) + * debian/patches/10_callout_errors.patch + - Added. Use dbus_error_free instead of LIBHAL_FREE_DBUS_ERROR. Ensures + errors correctly reach hald-runner. + * debian/patches/11_no_useless_runner_errors.patch + - Added. Only let hald-runner output warnings if there was actually an + error. + + -- Sjoerd Simons Mon, 2 Oct 2006 18:55:05 +0200 + +hal (0.5.7.1-2) unstable; urgency=low + + * debian/patches/22_recognize_partitions.patch + - Added. More robust recognition that a block device is a partition. Fixes + detecting scsi cdrom drives as partitions (From upstream git) + (Closes: #383792) + * debian/patches/23_addon_acpi.patch + - Added. Don't use the kernel acpi event interface if acpid is installed. + (Closes: #380520, #352512) + * debian/README.Debian: Update documentations about the configuration of the + callouts. Also mention how hal's acpi addon interacts with acpid. + * debian/hal.dirs: Remove /var/run/hal from hal.dirs. Let the init scripts + takes care of its creation. (Closes: #385270) + * debian/hal.postinst: Don't create a homedir for hal. + * debian/hal.preinst: Remove the old hal user. As deluser --system only + removes system users this should be safe. + * debian/hal.postrm: Don't delgroup the daemon user on purge, deluser + already takes care of that. + * debian/hal.postrm: Remove the /var/run/hal dir on purge + * debian/patches/21_acpi_support.patch: + - Updated. Use the force argument to the sleep and hibernate call + (Closes: #384120) + * debian/patches/debian/patches/19_sonypi_support.patch: + - Updated. The spicctrl tool is installed in a different location on + debian then what upstream assumes. + + -- Sjoerd Simons Mon, 4 Sep 2006 23:22:49 +0200 + + +hal (0.5.7.1-1) unstable; urgency=low + + [ Sjoerd Simons ] + * New upstream release + * debian/hal.postinst,debian/hal.postrm,debian/rules: Rename the hal daemon + user to haldaemon (was hal) + * debian/hal.postinst: Created the plugdev system group if it doesn't exist + * debian/hal.links: Change the udev rules.d link from 050_hal-plugdev.rules + to z99_hal.rules to ensure hal gets its data after all the udev magic. + * debian/patches/09_sony_brightness.patch: + - Apply trivial upstream patch to fix LCD brightness setting on Sony + laptops. + - From the ubuntu hal package which took it from upstream, thanks to Paolo + Borelli + * debian/patches/12_refresh_acpi_states.patch: + - Added. refresh ACPI events after suspend/hibernate + - From the ubuntu hal package, patch created by Paul Sladen based on + upstream CVS. + * debian/patches/14_probe_volume_invalidlabel.patch + - Added. Don't try to fix device labels with invalid UTF-8 characters if + more than 20% of the characters is invalid. This avoids totally + unintelligible labels while still preserving only mildly damaged ones. + - From the ubuntu hal package, patch created by Martin Pitt + * debian/patches/15_mount_scripts_pmount.patch: + - Change mount/umount scripts to call pmount-hal/pumount as the + destination user instead of mount/umount as root. This way, we do not + have to rely on hal properties for sanity checking, which are unreliable + in hal's current trust model. + - Change eject script to call eject as the destination user instead of + root. + - This change should be completely transparent to the outside world, so + that KDE and gnome-mount will just work. (Closes: #377689) + - From the ubuntu hal package, patch created by Martin Pitt. + * debian/patches/16_dont_stat_autofs.patch: + - Added. Don't stat autofs filesystems as that will remount. + (Closes: #361785) (From upstream git) + * debian/patches/17_fix_dbus_090_build.patch: + - Added. Fix build with dbus >= 0.90 (From upstream git) + * debian/patches/18_hald_runner_fd_leak.patch + - Added. Fix fd leak in hald-runner. Patch by Mike Hommey (Closes: #375143) + * debian/patches/debian/patches/19_sonypi_support.patch: + - Added. Support sonypi using laptops (Closes: #375144) (From upstream git) + * debian/patches/07_suspend2.patch: + - Updated. Don't try to use suspend2 to suspend a pmu machine, which can + crash the machine. (Closes: #366008) + * debian/patches/20_uswsusp.patch: + - Added. Use uswsusp for suspend and hibernation if available. Patch by + Tim Dijkstra. (Closes: #382183) + * debian/patches/21_acpi_support.patch: + - Added. Use acpi-support for suspend and hibernation if available. + (Closes: #381708) + + [ Sebastian Dröge ] + * debian/pycompat, + debian/control, + debian/rules: + + update to the new Python Policy + * debian/control: + + Bump Standards-Version to 3.7.2 + + Add myself to Uploaders + + -- Sjoerd Simons Tue, 15 Aug 2006 15:45:35 +0200 + +hal (0.5.7-2) unstable; urgency=low + + * debian/hal.udev.rules + + Fix broken udev syntax (Closes: #364324) + * Bump compat version to 5 + * Killing hal with brute force in prerm shouldn't be needed anymore + * Don't install hal's default udev rules file, we ship our own + (Closes: 359749) + * debian/patches/07_suspend2.patch + + Added. Possibility to use hibernate to suspend-to-ram + * debian/patches/08_probe_serial.patch + + Only probe legacy serial ports. Fixes issue with usb serial ports from + wince pda's that can't handle the probing (Closes: #352934) + + -- Sjoerd Simons Mon, 1 May 2006 22:42:50 +0200 + +hal (0.5.7-1) unstable; urgency=low + + * New upstream release + * debian/patches/02_hal_addon_pmu.patch + + Removed. Fixed upstream + * debian/patches/03_hald_runnerpath.patch + + Removed. Fixed upstream + * debian/patches/05_pmu_nohibernate.patch + + Updated. Fix crash when power_management.type is not set (Thanks Martin + Pitt) + * debian/patches/06_more_buttons.patch + + Added. Update button signal names to the new convention and also + recognize mute, volume up/down buttons, switchvideo mode button and + keyboard illumination toggle/down/up buttons. + * Update debian/README.Debian + + -- Sjoerd Simons Thu, 2 Mar 2006 18:56:03 +0100 + +hal (0.5.6+cvs20060219-1) experimental; urgency=low + + * CVS snapshot + * debian/patches/01_hal_privsep.patch + + Removed. Fixed upstream + * debian/patches/02_hal_addon_pmu.patch + + Updated + * debian/patches/03_storage_sigio.patch + + Removed. Fixed upstream + * debian/patches/04_hald-no-patch.patch + + Removed. Fixed upstream + * debian/patches/05_hald_clear_udev_buffer.patch + + Removed. Fixed upstream + * Sync with Ubuntu + + Remove unneeded build-depends (libsysfs-dev and libcap-dev) + + force-reload dbus instead of reload + + Remove obsolete fdi example conffile + + Add small utility script to run hald from the debian dir. + * debian/patches/storage-policy-debian.patch + + Removed. Obsolete + * debian/patches/03_hald_runnerpath.patch + + Added. Give programs run by the runner a save PATH + * debian/patches/04_hald_scripts.patch + + Added. Fix various bugs in the hal scripts + * Add the powerdev group in postinst + * debian/patches/01_hal_debian_dbuspolicy.patch + + Added. Change the hal dbus policy to allow user part of the powerdev + group to use the org.freedesktop.Hal.Device.SystemPowerManagement and + org.freedesktop.Hal.Device.LaptopPanel interfaces. + + -- Sjoerd Simons Mon, 20 Feb 2006 23:24:34 +0100 + +hal (0.5.6-4) unstable; urgency=high + + * debian/patches/05_hald_clear_udev_buffer.patch + + Added. Clear the buffer where udev events are received before using + (from hal CVS) + + -- Sjoerd Simons Mon, 13 Feb 2006 18:59:12 +0100 + +hal (0.5.6-3) unstable; urgency=high + + * debian/patches/01_hal_privsep.patch + + Updated. Fix deadlock when using ATAPI Zip-drives (Closes: #351296) + + -- Sjoerd Simons Sun, 12 Feb 2006 17:52:58 +0100 + +hal (0.5.6-2) unstable; urgency=low + + * debian/patches/01_hal_privsep.patch + + Updated to current CVS version + * udev communicated events to hal via a socket now, which as a side-effect + fixes incompatibility with udev 0.83 (Closes: #350639, #350762) + * Let hal look in the right location for the pci.ids and usb.ids files + (Closes: #341824) + * Because the addons run with root privs. now, harddisk properties are + available (Closes: #290653) + * debian/patches/03_storage_sigio.patch + + Added. Switch EjectButton detection to SG_IO interface. Solves some + problems with scsi cdrom drives (from hal CVS) + * debian/patches/04_hald-no-patch.patch + + Added. Also start correctly when PATH is not set (Closes: #345391) + + -- Sjoerd Simons Wed, 1 Feb 2006 23:59:58 +0100 + +hal (0.5.6-1) experimental; urgency=low + + * New upstream release + * debian/patches/hal-dbus_max_match_rules_per_connection.patch + + Removed. Default max_match_rules in dbus is high enough these days + * Don't add the hal to group floppy and cdrom + * Stop using the hotplug helper, instead let udev pass data via a socket to + hal + * debian/patches/01_hal_privsep.patch + + Added. Let the addons and probes be called by a little helper running as + root while the main hal database runs as an unpriviledged user. + * No longer chown removable device to group hal + * debian/patches/02_hal_addon_pmu.patch + + Added. Use a direct connection to hal, because it might not be on the + system bus yet. Open /dev/adb non-block so read blocks instead of + getting EAGAIN and failing. + + -- Sjoerd Simons Thu, 19 Jan 2006 23:12:56 +0100 + +hal (0.5.5.1-5) unstable; urgency=low + + * Tighten depends on dbus and python2.4-dbus a little bit more + * Fix a bashim in the postinst script (Closes: 347326) + + -- Sjoerd Simons Thu, 12 Jan 2006 00:38:47 +0100 + +hal (0.5.5.1-4) unstable; urgency=low + + * Upload to unstable + * Add python to the build-depends for dh_python + + -- Sjoerd Simons Thu, 5 Jan 2006 22:36:33 +0100 + +hal (0.5.5.1-3) experimental; urgency=low + + * Let libhal-dev and libhal-storage-dev depend on libdbus-1-dev (>= 0.60) + + -- Sjoerd Simons Fri, 16 Dec 2005 15:37:21 +0100 + +hal (0.5.5.1-2) experimental; urgency=low + + * Use log_daemon_msg instead of log_begin_msg in the init script + (Closes: #339728) + * Build against dbus 0.60 + + -- Sjoerd Simons Thu, 15 Dec 2005 12:02:22 +0100 + +hal (0.5.5.1-1) experimental; urgency=low + + * New upstream release + * Sync with ubuntu (Thanks Martin Pitt) + + Make libhal-storage-dev depend libhal-dev + + Fix rm_conffile in hal.preinst + + Install hal-find-by-capability and hal-find-by-property + + Translation updates for hal-device-manager.desktop + * Never restart dbus in postinst or postrm . Only reload it's config. + * Depend on libusb-dev to build hald-addon-usb-csr (Closes: #335530) + * Build hal-device-manager again. + * debian/patches/hdm-python2.4.patch + + Force hal-device-manager to use python2.4 + * Install /usr/bin/hal-device + + -- Sjoerd Simons Tue, 15 Nov 2005 14:18:58 +0100 + +hal (0.5.4-2) experimental; urgency=low + + * Hal doesn't include hal.dev anymore, so don't try to execute it in the + udev rules (Closes: #326957) + * Package doesn't ship fstab-sync, so also don't ship it's manpage. + + -- Sjoerd Simons Thu, 8 Sep 2005 10:36:03 +0200 + +hal (0.5.4-1) experimental; urgency=low + + * New upstream release + * use udev RUN rules instead of the hotplug.d and dev.d script dirs + * Install hal-umount.sh in /usr/lib/hal instead of usr/lib/hal/hal-umount.sh + * debian/patches/property-null-values.patch + + Removed. Fixed upstream + * Sync with ubuntu + + Switched the init script to lsb-base + + hal.init.dbus: If hald does not want to die in do_stop, use the "yes, + we really mean it" approach to ensure clean restarts. + + debian/patches/storage-policy-debian.patch + - Dropped noatime/sync handling hunk since upstream now does the right + thing. + - Enable storage.requires_eject on USB storage devices to always + eject them (which causes them to properly power off). + + Only (re)start dbus when hal isn't already running. + + Update the manpage + + -- Sjoerd Simons Sat, 27 Aug 2005 22:31:21 +0200 + +hal (0.5.2-1) experimental; urgency=low + + * New upstream release + * Don't build hal-device-manager for now as it needs python2.4 gnome + packages + * Based on Ubuntu's hal 0.5.2 by Martin Pitt. + * Removed no longer relevant patches: + + debian/patches/harddisk-volumes.patch + + debian/patches/ids-search.patch + + debian/patches/hal-fdi.patch + + debian/patches/hotplug_timeout.patch + + debian/patches/patches/no_sysdevice.patch + + debian/paches/hal-hotplug-map.patch + * debian/ipod-music-player.fdi + + Fixed upstream + * debian/hal-device-manager.desktop + + Updated with new translations from the Ubuntu package + + -- Sjoerd Simons Tue, 21 Jun 2005 15:28:18 +0200 + +hal (0.4.8-2) unstable; urgency=low + + * debian/ipod-music-player.fdi + + Fix xml errors (Closes: #312817) + * debian/patches/storage-policy-debian.patch + + Enable the utf8 mount option for cdrom drives and iso9660 and udf + filesystems. (Closes: #312818) + + -- Sjoerd Simons Fri, 10 Jun 2005 15:50:45 +0200 + +hal (0.4.8-1) unstable; urgency=low + + * New upstream release + * debian/patches/storage-policy-zip.patch + + Removed. Merged upstream + * debian/patches/ids-search.patch + + Updated + * debian/patches/hotplug_timeout.patch + + Updated to work with dbs-edit-patch + * debian/hal.udev.device-removable.sh + + Fixed problem with detection of firewire disks (Closes: #309822) + * debian/patches/storage-policy-debian.patch + Don't set the sync mount option by default on smaller drives (flash + drives). Especially on newer kernels this can wear out media too fast. + * debian/preferences.fdi + Warn for media wear in the example fdi file when enabling the sync option. + + + -- Sjoerd Simons Mon, 23 May 2005 19:49:56 +0200 + +hal (0.4.7-4) unstable; urgency=low + + * Add fdi file to recognize Apple Ipods + * Improved udev script for removable drives detection (Thanks to Marco d'Itri) + * Move hal-plugdev.rules link after the setting of permissions, but before + naming of devices files. Enables the hal/gnome-volume-manager combination to + work with systems using devfs like naming (Closes: #302134) + * Added an example to set the group id and umask of a mounted volume to + preferences.fdi. (Closes: #303720) + * Have the dbus init script wait for hal to actually shutdown, when stopping. + + -- Sjoerd Simons Sat, 7 May 2005 00:17:11 +0200 + +hal (0.4.7-3) unstable; urgency=low + + * Remove 50-fstab-sync.hal symlink from the package, it's not supposed to be + used in hal's default config. (Closes: #298562) + * Added debian/patches/hotplug_timeout.patch + + Don't run the hotplug timeout handler while processing hotplug events. + (Closes: #292256) + * Fixes from the ubuntu package: + + Added debian/patches/hal-dbus_max_match_rules_per_connection.diff + - Allow more matching rules per connection. Fixes problems with + hal-device-manager on systems with lots of devices. + + Added debian/patches/harddisk-volumes.patch + - fdi/90defaultpolicy/storage-policy.fdi: If a volume has an empty + fsusage, set it to "filesystem" to work around the fact that the + non-root hald cannot read harddisk partitions. + - libhal-storage/libhal-storage.c: Do not declare a volume as invisible + if hal does not know the file system (hald cannot read harddisk + partitions). + + -- Sjoerd Simons Fri, 18 Mar 2005 19:25:04 +0100 + +hal (0.4.7-2) unstable; urgency=low + + * debian/patches/storage-policy-debian.patch + + Updated. Enable the quiet option for vfat volumes. (Closes: #292661) + * debian/hal.dbus.init + + Show a warning message when trying to start with an unsupported kernel. + (Closes: #292644) + * debian/patches/no_sysdevice.path + + Don't die when a device doesn't have a sysfs path when finalizing the + class device. (Closes: #293630) + * debian/patches/storage-policy-zip.patch + + Added. Correctly name partitioned zip mountpoints. Patch from Daniel + Serpell. (Closes: #294033) + + -- Sjoerd Simons Tue, 15 Feb 2005 11:51:34 +0100 + +hal (0.4.7-1) unstable; urgency=medium + + * New upstream release + + hal-device-manager handles ieee1394 now (Closes: #290931) + * Added watch file + + -- Sjoerd Simons Tue, 25 Jan 2005 15:25:51 +0100 + +hal (0.4.6-1) unstable; urgency=low + + * New upstream release + + Fixes various problems with vfat label detection (Closes: #271997) + * Enable building of fstab-sync as some people seem to like it + (Closes: #290780) + * debian/patches/storage-policy-debian.patch. + + Updated. Copy block.policy.desired_mount_point from block.storage to + volume.policy.desired_mount_point if the blockdevice has no partitions + (Closes: #290963) + + -- Sjoerd Simons Fri, 21 Jan 2005 17:27:34 +0100 + +hal (0.4.5-1) unstable; urgency=low + + * New upstream release + * Removed patches that were fixed/merged upstream + + debian/patches/check-ide-floppy-for-zip.patch + + debian/patches/volume_id-fat.patch + + -- Sjoerd Simons Thu, 13 Jan 2005 16:46:12 +0100 + +hal (0.4.4-2) unstable; urgency=low + + * debian/patches/volume_id-fat.patch + + Added. Fixes label reading on large FAT volumes. Patch from Kay Sievers. + (Closes: #271997) + * debian/patches/check-ide-floppy-for-zip.patch + + Added. Support IDE Zip drives that appear as IDE floppies. Patch from + David Zeuthen. + + -- Sjoerd Simons Mon, 10 Jan 2005 09:28:55 +0100 + +hal (0.4.4-1) unstable; urgency=low + + * New upstream release + * Removed patched that were merged/fixed upstream: + + debian/patches/netdev-recovery.patch + + -- Sjoerd Simons Fri, 7 Jan 2005 11:29:56 +0100 + +hal (0.4.3-1) unstable; urgency=low + + * New upstream release + * Start using tarball.mk from cdbs + * Removed patched that were merged/fixed upstream: + + debian/patches/cdrom-fdleak.patch + + debian/patches/cdrom-media-check.patch + + debian/patches/fix-ide-fdi.patch + + debian/patches/fstab-sync-crash.patch + + debian/patches/poll-only-cdroms.patch + + debian/patches/special_mtab_chars.patch + * debian/patches/netdev-recovery.patch + + Added. Fixes a crash in the netdev recovery code (Closes: #288089) + * debian/hal.udev.rules + + The only ide drives hal polls are cdroms, so it's unnecessary to set the + group of other removable ide drives to hal. (Closes: #288301) + * Stop shipping sony_dsc.fdi, it just causes problems. + * debian/patches/ids-search.patch + + Updated + * debian/patches/z_update_autofoo.patch + + Removed, not necessary anymore because of the ids-search.patch update + + -- Sjoerd Simons Tue, 4 Jan 2005 18:26:44 +0100 + +hal (0.4.2-6) unstable; urgency=low + + * debian/patches/cdrom-fdleak.patch + + Added. Don't leak a filedescriptor to the cdrom device when the + filesystem on a data cd isn't recognized. Patch from Peter Österlund + (Closes: #287779) + + -- Sjoerd Simons Thu, 30 Dec 2004 15:29:04 +0100 + +hal (0.4.2-5) unstable; urgency=high + + * Create /var/run/hal dir on start if it's not there (Closes: #287258) + + -- Sjoerd Simons Sun, 26 Dec 2004 15:27:45 +0100 + +hal (0.4.2-4) unstable; urgency=high + + * Only add hal to group cdrom and floppy when creating the user. This way it + won't get added on upgrade if the admin removed it. (Closes: #286790) + * debian/hal-unmount.dev + + Also check /etc/mtab to see if the device is mounted. (Closes: #286579) + * Urgency high. Fixes an RC bug. + + -- Sjoerd Simons Sun, 19 Dec 2004 20:42:37 +0100 + +hal (0.4.2-3) unstable; urgency=low + + * debian/patches/special_mtab_chars.patch + + Added. In /etc/mtab and /proc/mounts some special chars (like space) are + encoded in octal from. Decode these into normal chars again. Fixes + problems with spaces in mountpoints (Closes: #284322) + * debian/hal-unmount.dev: + + Sanity-check $DEVNAME to make sure it begins with a slash, so we don't + get bitten by DEVNAME=-a or DEVNAME="". Thanks to Scott James Remnant + + -- Sjoerd Simons Sun, 19 Dec 2004 18:32:47 +0100 + +hal (0.4.2-2) unstable; urgency=medium + + * debian/patches/fstab-sync-crash.patch + + Added. Don't crash on cleaning fstab in certain + circumstances (Closes: #284721) + * debian/patches/ids-search.patch + + Added. Search for pci.ids and usb.ids runtime. Fixes problems when the + location changes or if it is different then on the machine hal was build + on. + * debian/patches/fix-ide-fdi.patch + + Added. Correct syntax error in the fdi file + * debian/patches/cdrom-media-check.patch + + Added. Some CD-ROMs report that they contain a CD even if the tray is + open; probe CDROM_MEDIA_CHANGED twice to check whether there is indeed a + CD inside.Thanks to Michael Hofmann for discovering this and + finding the fix. + * debian/patches/poll-only-cdroms.patch: + + Added. Instead of trying to work around broken ide pcmcia device just + poll cdrom on the ide bus. Patch from David Zeuthen (Closes: #284164) + * debian/patches/z_update_autofoo.patch: + + Added. Update configure, this is needed by ids-search.patch. + + -- Sjoerd Simons Wed, 08 Dec 2004 16:18:14 +0100 + +hal (0.4.2-1) unstable; urgency=low + + * New upstream release + * Remove patches that have been merged upstream: + + debian/patches/device-manager-glade.patch + + debian/patches/device-manager.patch + + -- Sjoerd Simons Thu, 2 Dec 2004 13:13:50 +0100 + +hal (0.4.1-2) unstable; urgency=low + + * Rename the hal dbus start script from hal to 20hal. Makes it simpler to + order startup of dbus services. + * Let hald run as non-root by default + * Use a dev.d script for lazy device umount. So hald doesn't need too. + (Script from the ubuntu package) + * Install udev configuration to make removable devices owned by group hal + (Adapted from the ubuntu package) + * Call udevsend for all block devices in the postinst. To ensure + the permissions are set right for already available devices. + * debian/README. Updated to reflect we run as user hal by default now. + * debian/patches/storage-policy-debian.patch. + + Updated. turn off sync and noatime for drivers bigger then 2GB. + * /etc/hal/fdi/preferences.fdi + + Added. Some examples of system settings that can be tweaked via hal's + database. + * debian/patches/storage-policy-debian.patch. + + Updated. Disable the managed keyword again, so we don't have to depend + on a mount version that's already frozen. + + -- Sjoerd Simons Mon, 8 Nov 2004 23:59:23 +0100 + +hal (0.4.1-1) unstable; urgency=low + + * New upstream release + + Fixes fstab-sync crash when called without options (Closes: #278468) + + Detects highpoint ata raid configurations (Closes: #277534) + * debian/hald.8: Fixed typos + * debian/rules: Correctly generate the python dependencies for + hal-device-manager + * debian/hal.postinst: Don't fail when the dbus-1 init script isn't + available yet + * Removed patches (adopted upstream): + + debian/patches/fstab-sync.patch + + debian/patches/nonblock.patch + + debian/patches/storage-policy-uudi.patch + * debian/patches/storage-policy-debian.patch + Updated. Usage comment=fstabsync as option for fstab-sync mount lines + * debian/patches/hal-fdi.patch + Added. Look for user fdi files in /etc/hal/fdi + * debian/patches/device-manager.patch + Added. Fill the Device type and Capabilities field (Patch from Bryan Clark) + * debian/patches/device-manager-glade.patch + Added. Improve the appearance of the Device tab in h-d-m + * debian/patches/hal-hotplug-map.patch + Added. Check if the usb device isn't actually an usb mass storage device + before setting libgphoto2 support properties. Fixes problems with + olympus cameras, because PtP and UMS versions have the same usb id's + (Closes: #279395) + + -- Sjoerd Simons Sat, 06 Nov 2004 19:59:37 +0100 + +hal (0.4.0-1) experimental; urgency=low + + * New upstream release + * Marin Pitt: + + New packages libhal-storage0 and libhal-storage-dev for new hal-storage + library + + Removed patches (adopted upstrem): + - add_device_nullarg.patch + - fix_first_hotplug.diff + - hal-cdspeed.patch + - nofail_nocaps.patch + - pci_pre_process_check_null.diff + + debian/lshal.1: properly quoted dashes + + * Sjoerd Simons: + + Removed patches (adopted upstream): + - pciid-fdleak.patch + - usbdb-fdleak.patch + - fs_probing.patch + - haldb-require-privs.patch + - libgphoto2-usermap.patch + - netlink_spoofing.patch + + No longer shipping the fstab-update script + + debian/hal.preinst: Stop hal in preinst instead of dbus + + debian/hal.preinst: Add missing debhelper token + + debian/hal.preinst: Remove fstab-update.h transition. + + Added /etc/default/hal to easily configure running hal as non-root + + Added debian/patches/fstab-sync.patch (from CVS HEAD) + - Use the name of the special device file instead of 'foo' when writing + to the syslog. + - clean wasn't being called on hald startup because of missing defines + due to the removal of fstab-sync options + + Added debian/patches/nonblock.patch (from CVS HEAD) + - Fixes wrong handling of O_NONBLOCK by hal when probing the fileystem + type (by removing it) + + Added debian/patches//storage-policy-uudi.patch (from CVS HEAD) + - Never use filesystem UUDI for mount points in the default policy + + Ship fstab-sync.8 manpage + + Added debian/patches/storage-policy-debian.patch + - Change to storage policy to match the behaviour of previous hal + debian packages. + + -- Sjoerd Simons Mon, 18 Oct 2004 16:30:01 +0200 + +hal (0.2.98-5) unstable; urgency=high + + * Restart dbus on postinst instead of starting, fixes problems on upgrade + and install (Closes: #277050) (Closes: #277035) + * debian/patches/netlink_spoofing.patch + + Added. Check PID of netlink packets to prevent spoofing from user + processes (from CVS HEAD) + * High priority because it fixes upgrade and install problems. + + -- Sjoerd Simons Sun, 17 Oct 2004 20:19:48 +0200 + +hal (0.2.98-4) unstable; urgency=medium + + * Also restart dbus when hal is freshly installed. + + -- Sjoerd Simons Sun, 17 Oct 2004 19:45:26 +0200 + +hal (0.2.98-3) unstable; urgency=medium + + * debian/patches/haldb-require-privs.patch + + Added. Only allow root and the hal's current user to change things in + the hal's database (from CVS HEAD with some enhancements) + * Doesn't crash when SIOCGMIIREG fails (Closes: #276297) + + -- Sjoerd Simons Sun, 10 Oct 2004 19:57:52 +0200 + +hal (0.2.98-2) unstable; urgency=medium + + * Goodies from the Ubuntu hal packages (thanks to Martin Pitt) + + Properly quote dashes in the manpages + + German translation of hal-device-manager.desktop + * debian/patches/add_device_nullarg.patch + + Added. check whether given_sysfs_path is NULL and + immediately return in this case; previously, this parameter was copied + and compared without checking. (from ubuntu package) + * debian/patches/fix_first_hotplug.patch + + Added. Fixes race conditions with regard to the first hotplug event + (from CVS HEAD) + * debian/patches/fs_probing.patch + + Added. Fixes some file probing issues (from CVS HEAD) + * debian/patches/nofail_nocaps.patch + + Added. Don't fail on a kernel without capablities if privileges are + dropped (from Ubuntu package) + * debian/patches/pci_pre_process_check_null.patch + + Added. Added extra NULL pointing checking (from Ubuntu package) + * debian/patches/pciid-fdleak.patch + + Added. Close file descriptors after reading the pci id database + * debian/patches/usbdb-fdleak.patch + + Added. Close file descriptors after reading the usb id database + * Make fstab-update.hal POSIX compliant (patch from Martin Waitz) + (Closes: #274937) + + -- Sjoerd Simons Sun, 10 Oct 2004 17:31:40 +0200 + +hal (0.2.98-1) unstable; urgency=high + + * New upstream release + * Fixes endless loop in FAT32 label reading code (Closes: #273001) + * Make it possible to run hal with dropped priviledges + (not enabled by default) + * Put hal-device-manager in it's own package (Closes: Bug#239122) + * Install hal-hotplug-map helper + * Updated hald manpage + * Created hal-device-manager manpage + * Disable selinux for now. A newer libselinux then in debian is needed. + * debian/patches/hal-cdspeed.patch + + Added. Fix for unchecked buffer access from Martin Pitt + * debian/patches/libgphoto2-usermap.patch + + Added. Let hal-hotplug-map work correctly with the libgphoto2 hotplug + config. + * Urgency high because this fixes RC bugs + + -- Sjoerd Simons Sun, 26 Sep 2004 11:10:45 +0200 + +hal (0.2.97+cvs20040907-1) unstable; urgency=high + + * New maintainer. + * New CVS snapshot (Closes: Bug#266158) + * More robust hotplugging code (Closes: Bug#264597) + * libhal.la no long declares a bogus dependency on libexpat + (Closes: Bug#266667) + * debian/patches/hal_volume_utf8.patch + + removed. Already fixed upstream + * Changed fstab-update.sh to fstab-update.hal. Only callouts with the .hal + extension are invoked now. + * Conflict with old gnome-volume-manager + * Urgency high because it fixes RC bugs in testing + + -- Sjoerd Simons Tue, 7 Sep 2004 22:17:15 +0200 + +hal (0.2.97-0.1) unstable; urgency=low + + * NMU for New upstream release. + + sarge freezes tomorrow, this should beat the deadline. + + Works with D-BUS 0.22 and above. + * Tighten D-BUS Build-Deps/Depends to >= 0.22. + + -- Daniel Stone Mon, 16 Aug 2004 17:34:37 -0700 + +hal (0.2.95-5) unstable; urgency=medium + + * Urgency medium as this release should enter testing soon + * Replace hal_volume_utf8.patch with hal_validate_utf8.patch + + -- Martin Waitz Mon, 2 Aug 2004 20:23:51 +0200 + +hal (0.2.95-4) unstable; urgency=low + + * Manage patches with quilt. + * Apply hal_volume_utf8.patch and hal_mounted_on_startup.patch + from Sjoerd Simons (Closes: #261723) + + -- Martin Waitz Wed, 28 Jul 2004 21:34:56 +0200 + +hal (0.2.95-3) unstable; urgency=low + + * Explicitly depend on dbus 0.21-7 to get hald started (Closes: #261582) + + -- Martin Waitz Tue, 27 Jul 2004 23:15:40 +0200 + +hal (0.2.95-2) unstable; urgency=low + + * Build-depend on libpopt-dev + + -- Martin Waitz Sat, 24 Jul 2004 21:43:18 +0200 + +hal (0.2.95-1) unstable; urgency=low + + * New upstream release (Closes: #259860) + - hal hotplug helper executes in background (Closes: #237836) + - hal-device-manager shows error message in dialog (Closes: #233854) + * debian/rules: use upstream doc/api Makefiles to build docs. + * debian/{rules,hal.postinst,hal.init,hal.init.dbus}: + Start hald together with dbus (Closes: #231704) + * Apply patch from David Weinehall to make + the fstab update script not require bash (Closes: #259293) + * Cleanup syslog usage in the hotplug helper + * remove HACKING reference from README (Closes: #260241) + * fix hal-device-manager when info.product key misses + + -- Martin Waitz Fri, 23 Jul 2004 21:33:03 +0200 + +hal (0.2.93+20040711-2) unstable; urgency=low + + * rerun libtoolize to fix libhal0, argh. (Closes: #259111) + + -- Martin Waitz Tue, 13 Jul 2004 21:45:20 +0200 + +hal (0.2.93+20040711-1) unstable; urgency=low + + * New CVS checkout (Closes: #257781) + - includes part of my get-properties patch (Closes: #238175) + * debian/control: build-depend on python (Closes: #258461) + * add shlib file (Closes: #253779) + * support vc class in linux hotplug helper (Closes: #258112) + + -- Martin Waitz Mon, 12 Jul 2004 23:43:54 +0200 + +hal (0.2.92-1) unstable; urgency=low + + * New upstream release + * debian/README.Debian: add note about fstab-update callout + * fix COPYING, by accident it only contained the GPL + + -- Martin Waitz Tue, 8 Jun 2004 21:51:44 +0200 + +hal (0.2.91-1) unstable; urgency=low + + * New upstream release + + -- Martin Waitz Wed, 26 May 2004 00:28:25 +0200 + +hal (0.2.90+20040515-1) unstable; urgency=low + + * New CVS checkout + * debian/fstab-update.sh: add example from cvs tree + * debian/rules: install fstab-update.sh as example into hal/device.d + (but leave it -x for now to disable it) + + -- Martin Waitz Sat, 15 May 2004 19:55:11 +0200 + +hal (0.2.90+20040511-1) unstable; urgency=low + + * New CVS checkout + + -- Martin Waitz Tue, 11 May 2004 20:13:53 +0200 + +hal (0.2.90+20040424-1) unstable; urgency=low + + * New CVS checkout + + -- Martin Waitz Sat, 24 Apr 2004 13:15:48 +0200 + +hal (0.2.6+20040331-1) unstable; urgency=low + + * New CVS checkout + + -- Martin Waitz Wed, 31 Mar 2004 22:25:22 +0200 + +hal (0.2.6+20040311-1) unstable; urgency=low + + * New CVS checkout (Closes: #237436) + * don't die if usbfs is not mounted (Closes: # 234364) + * print better error message if hald is not runnig (one part of #233854) + + -- Martin Waitz Thu, 11 Mar 2004 20:51:59 +0100 + +hal (0.2.6-4) unstable; urgency=low + + * debian/hal.postinst: restart dbus on configure, so that it + reads our dbus policy configuration file + * debian/control: add dependency on some python modules and usbutils + (Closes: #231312, #231555, #231607) + + -- Martin Waitz Sat, 7 Feb 2004 21:49:57 +0100 + +hal (0.2.6-3) unstable; urgency=low + + * first upload to unstable + * debian/control: add phython2.3-dbus dependency + + -- Martin Waitz Thu, 5 Feb 2004 22:07:22 +0100 + +hal (0.2.6-2) experimental; urgency=low + + * Merge with package from Ross Burton + - debian/control: add hal-doc, update build-depends + - debian/rules: build documentation + - debian/hal-doc.install: include dokumentation in hal-doc + - debian/hal.postrm: new file + - debian/hal-device-manager.desktop: new file + - debian/hal.install: add desktop file + + -- Martin Waitz Tue, 27 Jan 2004 02:31:10 +0100 + +hal (0.2.6-1) experimental; urgency=low + + * Initial Release. (Closes: #217468) + + -- Martin Waitz Tue, 20 Jan 2004 01:41:51 +0100 + --- hal-0.5.10.orig/debian/hal.postinst +++ hal-0.5.10/debian/hal.postinst @@ -0,0 +1,67 @@ +#! /bin/sh +# postinst script for hal +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + if ! getent passwd haldaemon >/dev/null; then + adduser --disabled-password --quiet --system --no-create-home \ + --gecos "Hardware abstraction layer" --group haldaemon + fi + if ! getent group powerdev > /dev/null; then + addgroup --quiet --system powerdev || true + fi + + # Add the plugdev group + if ! getent group plugdev > /dev/null; then + addgroup --quiet --system plugdev || true + fi + + # be sure the run dir is owned by the hal user + chown haldaemon:haldaemon /var/run/hal 2>/dev/null || true + + if [ -x /etc/init.d/dbus ]; then + invoke-rc.d dbus force-reload || true + fi + + # finish the udev rules rename on upgrades + if dpkg --compare-versions "$2" le-nl "0.5.8.1-3ubuntu7"; then + rm -f /etc/udev/rules.d/85-hal.rules.moved-by-preinst + fi + + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- hal-0.5.10.orig/debian/hal.manpages +++ hal-0.5.10/debian/hal.manpages @@ -0,0 +1,9 @@ +debian/tmp/usr/share/man/man8/hald.8 +debian/tmp/usr/share/man/man1/hal-disable-polling.1 +debian/tmp/usr/share/man/man1/hal-find-by-capability.1 +debian/tmp/usr/share/man/man1/hal-find-by-property.1 +debian/tmp/usr/share/man/man1/hal-get-property.1 +debian/tmp/usr/share/man/man1/hal-is-caller-locked-out.1 +debian/tmp/usr/share/man/man1/hal-lock.1 +debian/tmp/usr/share/man/man1/hal-set-property.1 +debian/tmp/usr/share/man/man1/lshal.1 --- hal-0.5.10.orig/debian/hal.dirs +++ hal-0.5.10/debian/hal.dirs @@ -0,0 +1,2 @@ +/var/cache/hald +/var/lib/hal --- hal-0.5.10.orig/debian/hal.docs +++ hal-0.5.10/debian/hal.docs @@ -0,0 +1 @@ +build-tree/*/doc/TODO --- hal-0.5.10.orig/debian/hal.init +++ hal-0.5.10/debian/hal.init @@ -0,0 +1,96 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: hal +# Required-Start: $local_fs dbus +# Required-Stop: $local_fs dbus +# Should-Start: $syslog acpid +# Should-Stop: $syslog acpid +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Hardware abstraction layer +# Description: The HAL daemon collects and maintains information about +# your hardware. +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/hald +PIDDIR=/var/run/hal +PIDFILE=$PIDDIR/hald.pid +NAME=hald +DAEMONUSER=haldaemon +DESC="Hardware abstraction layer" + +. /lib/lsb/init-functions + +test -x $DAEMON || exit 0 + +# Include hal defaults if available +if [ -f /etc/default/hal ] ; then + . /etc/default/hal +fi + +set -e + +do_start() { + # a crashing gparted sometimes leaves this behind; a bad hack, but we + # should keep this in place until hal offers a native interface for + # temporarily disabling automount (see LP #134712) + rm -f /usr/share/hal/fdi/policy/gparted-disable-automount.fdi + + if [ ! -d $PIDDIR ]; then + mkdir -p $PIDDIR + chown $DAEMONUSER:$DAEMONUSER $PIDDIR + fi + start-stop-daemon --start --oknodo --pidfile $PIDFILE \ + --exec $DAEMON -- $DAEMON_OPTS +} + +do_stop() { + start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE \ + --exec $DAEMON +} + +case "$1" in + start) + if [ ! -d /proc/sys/fs/inotify ]; then + log_failure_msg "Can't start $DESC - enable inotify support in your kernel" + exit 0 + fi + if [ ! -e /var/run/dbus/system_bus_socket ]; then + log_failure_msg "Can't start $DESC - please ensure dbus is running" + exit 0 + fi + + if [ ! -d /sys/kernel ]; then + log_failure_msg "Can't start $DESC - sysfs not mounted on /sys" + exit 0 + fi + + if [ "$(stat -c %d/%i /)" != "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then + log_failure_msg "Can't start $DESC - detected chrooted session" + exit 0 + fi + + log_daemon_msg "Starting $DESC" "$NAME" + do_start + log_end_msg $? + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + log_end_msg $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + sleep 1 + do_start + log_end_msg $? + ;; + *) + log_success_msg "Usage: $0 {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- hal-0.5.10.orig/debian/libhal-dev.install +++ hal-0.5.10/debian/libhal-dev.install @@ -0,0 +1,4 @@ +debian/tmp/usr/include/hal/libhal.h +debian/tmp/usr/lib/pkgconfig/hal.pc +debian/tmp/usr/lib/libhal.so +debian/tmp/usr/lib/libhal.a --- hal-0.5.10.orig/debian/no-cd-media-check.fdi +++ hal-0.5.10/debian/no-cd-media-check.fdi @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --- hal-0.5.10.orig/debian/hal.postrm +++ hal-0.5.10/debian/hal.postrm @@ -0,0 +1,36 @@ +#!/bin/sh + +set -e + +# gracefully handle udev rules renaming on upgrade errors +if [ "$1" = abort-install ] || [ "$1" = abort-upgrade ]; then + if dpkg --compare-versions "$2" le-nl "0.5.8.1-3ubuntu7"; then + F=/etc/udev/rules.d/85-hal.rules + if [ -e $F.moved-by-preinst ]; then + mv -f $F.moved-by-preinst $F + fi + fi +fi + +#DEBHELPER# + +if [ "$1" = "purge" ] ; then + # Tell dbus to reload it's configuration files only, when we purge the + # package, i.e. when we remove its conffiles in /etc/dbus-1/system.d/ + if [ -x /etc/init.d/dbus ]; then + invoke-rc.d dbus force-reload || true + fi + + if [ -x "$(command -v deluser)" ]; then + deluser --quiet --system haldaemon > /dev/null || true + else + echo >&2 "Not removing haldaemon system account because deluser command was not found" + fi + + rmdir /var/run/hal || true + + rm -f /var/cache/hald/fdi-cache + rmdir /var/cache/hald || true +fi + +exit 0 --- hal-0.5.10.orig/debian/compat +++ hal-0.5.10/debian/compat @@ -0,0 +1 @@ +5 --- hal-0.5.10.orig/debian/libhal1.install +++ hal-0.5.10/debian/libhal1.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/libhal.so.* --- hal-0.5.10.orig/debian/run-hald.sh +++ hal-0.5.10/debian/run-hald.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +cd hald +P="`pwd`" +export HALD_RUNNER_PATH=$P/linux:$P/linux/probing:$P/linux/addons:.:../tools:../tools/linux +export PATH=../hald-runner:$PATH +export HAL_FDI_SOURCE_PREPROBE=../fdi/preprobe +export HAL_FDI_SOURCE_INFORMATION=../fdi/information +export HAL_FDI_SOURCE_POLICY=../fdi/policy +./hald --daemon=no --verbose=yes + --- hal-0.5.10.orig/debian/libhal1.preinst +++ hal-0.5.10/debian/libhal1.preinst @@ -0,0 +1,11 @@ +#!/bin/sh -e + +# clean up doc directory symlinking from Gutsy +if [ "$1" = install ] || [ "$1" = upgrade ]; then + if dpkg --compare-versions "$2" lt-nl 0.5.10; then + for p in hal libhal-dev libhal-storage1 libhal-storage-dev; do + f=/usr/share/doc/$p + [ -e "$f" ] && rm -f $f || true + done + fi +fi --- hal-0.5.10.orig/debian/libhal1.shlibs +++ hal-0.5.10/debian/libhal1.shlibs @@ -0,0 +1 @@ +libhal 1 libhal1 (>= 0.5.10) --- hal-0.5.10.orig/debian/hal-doc.install +++ hal-0.5.10/debian/hal-doc.install @@ -0,0 +1,3 @@ +debian/tmp/usr/share/doc/hal-doc +debian/tmp/usr/share/gtk-doc/html/libhal usr/share/doc/hal-doc/api +debian/tmp/usr/share/gtk-doc/html/libhal-storage usr/share/doc/hal-doc/api --- hal-0.5.10.orig/debian/hal-doc.links +++ hal-0.5.10/debian/hal-doc.links @@ -0,0 +1,2 @@ +usr/share/doc/hal-doc/api/libhal usr/share/gtk-doc/html/libhal +usr/share/doc/hal-doc/api/libhal-storage usr/share/gtk-doc/html/libhal-storage --- hal-0.5.10.orig/debian/README.Debian +++ hal-0.5.10/debian/README.Debian @@ -0,0 +1,25 @@ + + The powermanagement callouts are in the default hal config + (org.freedesktop.Hal.Device.SystemPowerManagement and + org.freedesktop.Hal.Device.LaptopPanel) can be used by users in group + powerdev. The storage callouts (org.freedesktop.Hal.Device.Volume.*) can by + used by users in the group plugdev. + + The acpi addon won't use the kernel acpi events interface but the acpid's + event socket if acpid is installed. If acpid is removed, hal needs to be + restarted to enable monitoring of acpi events again. And if apci is installed, + hal needs a restart to free the kernels acpi events interface for acpid. + + + Some CD and DVD drives, such as the GDR8162B model found in some Dell + laptops, do not correctly handle media status inquiries and incorrectly + spin up the drive when they should not. Since hal regularly polls CD + drives for media changes, this results in increased power consumption and + mechanical wear and tear on such drives, which remain spinning constantly + while hal is running. + + If you have a CD/DVD drive exhibiting this problem, you can copy + /usr/share/doc/hal/examples/no-cd-media-check.fdi to /etc/hal/fdi/policy/ to + disable media checks for your drive. This file disables media checks for + all CD drives on the system, and also includes an example config for + disabling media checks only on a specific drive. --- hal-0.5.10.orig/debian/hal.links +++ hal-0.5.10/debian/hal.links @@ -0,0 +1 @@ +/usr/sbin/umount.hal sbin/umount.hal --- hal-0.5.10.orig/debian/hal.examples +++ hal-0.5.10/debian/hal.examples @@ -0,0 +1,2 @@ +debian/no-cd-media-check.fdi +fdi/policy/10osvendor/10-x11-input.fdi --- hal-0.5.10.orig/debian/debian-storage-policy-ignore-fixed-crypto-drives.fdi +++ hal-0.5.10/debian/debian-storage-policy-ignore-fixed-crypto-drives.fdi @@ -0,0 +1,13 @@ + + + + + + + + true + + + + + --- hal-0.5.10.orig/debian/patches/65_keyboard-addon-repeated.patch +++ hal-0.5.10/debian/patches/65_keyboard-addon-repeated.patch @@ -0,0 +1,12 @@ +diff -Nur hal-0.5.9/hald/linux/addons/addon-input.c hal-0.5.9.new/hald/linux/addons/addon-input.c +--- hal-0.5.9/hald/linux/addons/addon-input.c 2007-03-07 22:52:19.000000000 +0100 ++++ hal-0.5.9.new/hald/linux/addons/addon-input.c 2007-04-17 20:12:26.000000000 +0200 +@@ -244,7 +244,7 @@ + } + } + } +- } else if (input_data->event.type == EV_KEY && key_name[input_data->event.code] != NULL && input_data->event.value == 1) { ++ } else if (input_data->event.type == EV_KEY && key_name[input_data->event.code] != NULL && input_data->event.value) { + dbus_error_init (&error); + libhal_device_emit_condition (ctx, input_data->udi, + "ButtonPressed", --- hal-0.5.10.orig/debian/patches/71_realpath.patch +++ hal-0.5.10/debian/patches/71_realpath.patch @@ -0,0 +1,10 @@ +--- hal-0.5.10/tools/hal-disable-polling.c~ 2007-08-31 14:53:08.000000000 -0600 ++++ hal-0.5.10/tools/hal-disable-polling.c 2007-10-22 15:44:20.000000000 -0600 +@@ -28,6 +28,7 @@ + # include + #endif + ++#include + #include + #include + #include --- hal-0.5.10.orig/debian/patches/01_hal_debian_dbuspolicy.patch +++ hal-0.5.10/debian/patches/01_hal_debian_dbuspolicy.patch @@ -0,0 +1,20 @@ +diff -aur hal-0.5.8.vanilla/hal.conf.in hal-0.5.8/hal.conf.in +--- hal-0.5.8.vanilla/hal.conf.in 2006-09-11 23:56:39.000000000 +0200 ++++ hal-0.5.8/hal.conf.in 2006-09-17 12:32:49.000000000 +0200 +@@ -54,6 +54,16 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + --- hal-0.5.10.orig/debian/patches/55_nonpolkit-mount-policy.patch +++ hal-0.5.10/debian/patches/55_nonpolkit-mount-policy.patch @@ -0,0 +1,33 @@ +diff --git a/tools/hal-storage-mount.c b/tools/hal-storage-mount.c +index ae14181..4628067 100644 +--- a/tools/hal-storage-mount.c ++++ b/tools/hal-storage-mount.c +@@ -92,6 +92,14 @@ permission_denied_etc_fstab (const char *device) + } + + static void ++permission_denied_uid (const char *device, const char *uid) ++{ ++ fprintf (stderr, "org.freedesktop.Hal.Device.Volume.PermissionDenied\n"); ++ fprintf (stderr, "Refusing to mount device %s for uid=%s.\n", device, uid); ++ exit (1); ++} ++ ++static void + already_mounted (const char *device) + { + fprintf (stderr, "org.freedesktop.Hal.Device.Volume.AlreadyMounted\n"); +@@ -812,6 +820,13 @@ handle_mount (LibHalContext *hal_ctx, + } + libhal_free_string (polkit_result); + } ++#else ++ /* root can do everything; only allow handling removable devices ++ * without uid change to non-root users */ ++ if (!invoked_by_uid || strcmp(invoked_by_uid, "0")) ++ if (!action || strcmp (action, "org.freedesktop.hal.storage.mount-removable")) ++ permission_denied_uid (device, invoked_by_uid); ++ + #endif + + #ifdef DEBUG --- hal-0.5.10.orig/debian/patches/83_ssb_bus_support.patch +++ hal-0.5.10/debian/patches/83_ssb_bus_support.patch @@ -0,0 +1,69 @@ +diff -Nur -x '*.orig' -x '*~' ubuntu/hald/linux/device.c ubuntu.new/hald/linux/device.c +--- ubuntu/hald/linux/device.c 2007-10-09 19:46:59.000000000 +0200 ++++ ubuntu.new/hald/linux/device.c 2007-10-23 11:33:30.000000000 +0200 +@@ -2345,6 +2345,43 @@ + /*--------------------------------------------------------------------------------------------------------------*/ + + static HalDevice * ++ssb_add (const gchar *sysfs_path, const gchar *device_file, HalDevice *parent_dev, const gchar *parent_path) ++{ ++ HalDevice *d; ++ ++ d = hal_device_new (); ++ hal_device_property_set_string (d, "linux.sysfs_path", sysfs_path); ++ hal_device_property_set_string (d, "linux.sysfs_path_device", sysfs_path); ++ hal_device_property_set_string (d, "info.bus", "ssb"); ++ if (parent_dev != NULL) { ++ hal_device_property_set_string (d, "info.parent", hal_device_get_udi (parent_dev)); ++ } else { ++ hal_device_property_set_string (d, "info.parent", "/org/freedesktop/Hal/devices/computer"); ++ } ++ ++ hal_util_set_driver (d, "info.linux.driver", sysfs_path); ++ ++ hal_device_property_set_string (d, "ssb.bus_id", ++ hal_util_get_last_element (sysfs_path)); ++ return d; ++} ++ ++static gboolean ++ssb_compute_udi (HalDevice *d) ++{ ++ gchar udi[256]; ++ ++ hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), ++ "/org/freedesktop/Hal/devices/ssb_%s", ++ hal_device_property_get_string (d, "xen.bus_id")); ++ hal_device_set_udi (d, udi); ++ hal_device_property_set_string (d, "info.udi", udi); ++ return TRUE; ++} ++ ++/*--------------------------------------------------------------------------------------------------------------*/ ++ ++static HalDevice * + ieee1394_add (const gchar *sysfs_path, const gchar *device_file, HalDevice *parent_dev, const gchar *parent_path) + { + HalDevice *d; +@@ -3588,6 +3625,13 @@ + .remove = dev_remove + }; + ++static DevHandler dev_handler_ssb = { ++ .subsystem = "ssb", ++ .add = ssb_add, ++ .compute_udi = ssb_compute_udi, ++ .remove = dev_remove ++}; ++ + /* s390 specific busses */ + static DevHandler dev_handler_ccw = { + .subsystem = "ccw", +@@ -3650,6 +3694,7 @@ + &dev_handler_mmc, + &dev_handler_ieee1394, + &dev_handler_xen, ++ &dev_handler_ssb, + &dev_handler_ccw, + &dev_handler_ccwgroup, + &dev_handler_iucv, --- hal-0.5.10.orig/debian/patches/70_killswitch_dell.patch +++ hal-0.5.10/debian/patches/70_killswitch_dell.patch @@ -0,0 +1,72 @@ +diff --git a/tools/linux/hal-system-killswitch-get-power-linux b/tools/linux/hal-system-killswitch-get-power-linux +index f19d1f4..0d1906f 100755 +--- a/tools/linux/hal-system-killswitch-get-power-linux ++++ b/tools/linux/hal-system-killswitch-get-power-linux +@@ -17,9 +17,9 @@ if [ "$HAL_PROP_KILLSWITCH_TYPE" = "bluetooth" ]; then + exit 1 + fi + exit ${value} +- elif [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/bin/dellWirelessCtl ]; then ++ elif [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/sbin/dellWirelessCtl ]; then + # TODO: write our own binary that links with libsmbios? +- /usr/bin/dellWirelessCtl --st_bt ++ /usr/sbin/dellWirelessCtl --st_bt + value=$? + if [ "$value" = "0" ]; then + exit 1 +@@ -35,9 +35,9 @@ if [ "$HAL_PROP_KILLSWITCH_TYPE" = "bluetooth" ]; then + exit 1 + fi + elif [ "$HAL_PROP_KILLSWITCH_TYPE" = "wlan" ]; then +- if [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/bin/dellWirelessCtl ]; then ++ if [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/sbin/dellWirelessCtl ]; then + # TODO: write our own binary that links with libsmbios? +- /usr/bin/dellWirelessCtl --st_wlan ++ /usr/sbin/dellWirelessCtl --st_wlan + value=$? + if [ "$value" = "0" ]; then + exit 1 +diff --git a/tools/linux/hal-system-killswitch-set-power-linux b/tools/linux/hal-system-killswitch-set-power-linux +index 85a4548..1913c5d 100755 +--- a/tools/linux/hal-system-killswitch-set-power-linux ++++ b/tools/linux/hal-system-killswitch-set-power-linux +@@ -16,16 +16,16 @@ if [ "$HAL_PROP_KILLSWITCH_TYPE" = "bluetooth" ]; then + exit 1 + fi + exit 0 +- elif [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/bin/dellWirelessCtl ]; then ++ elif [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/sbin/dellWirelessCtl ]; then + + # As a side effect we disable the physical kill switch + + # TODO: write our own binary that links with libsmbios? + if [ "$value" = "true" ]; then +- /usr/bin/dellWirelessCtl --sw_bt 0 --bt 1 ++ /usr/sbin/dellWirelessCtl --sw_bt 0 --bt 1 + ret=$? + else +- /usr/bin/dellWirelessCtl --sw_bt 0 --bt 0 ++ /usr/sbin/dellWirelessCtl --sw_bt 0 --bt 0 + ret=$? + fi + if [ "$ret" != "0" ]; then +@@ -38,16 +38,16 @@ if [ "$HAL_PROP_KILLSWITCH_TYPE" = "bluetooth" ]; then + exit 1 + fi + elif [ "$HAL_PROP_KILLSWITCH_TYPE" = "wlan" ]; then +- if [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/bin/dellWirelessCtl ]; then ++ if [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/sbin/dellWirelessCtl ]; then + + # As a side effect we disable the physical kill switch + + # TODO: write our own binary that links with libsmbios? + if [ "$value" = "true" ]; then +- /usr/bin/dellWirelessCtl --sw_wlan 0 --wlan 1 ++ /usr/sbin/dellWirelessCtl --sw_wlan 0 --wlan 1 + ret=$? + else +- /usr/bin/dellWirelessCtl --sw_wlan 0 --wlan 0 ++ /usr/sbin/dellWirelessCtl --sw_wlan 0 --wlan 0 + ret=$? + fi + if [ "$ret" != "0" ]; then --- hal-0.5.10.orig/debian/patches/84_memstick_bus_support.patch +++ hal-0.5.10/debian/patches/84_memstick_bus_support.patch @@ -0,0 +1,177 @@ +diff -Nur -x '*.orig' -x '*~' ubuntu/hald/linux/blockdev.c ubuntu.new/hald/linux/blockdev.c +--- ubuntu/hald/linux/blockdev.c 2007-08-14 20:24:10.000000000 +0200 ++++ ubuntu.new/hald/linux/blockdev.c 2007-10-23 11:44:30.000000000 +0200 +@@ -1161,6 +1161,12 @@ + is_hotpluggable = TRUE; + hal_device_property_set_string (d, "storage.bus", "mmc"); + break; ++ } else if (strcmp (bus, "memstick") == 0) { ++ physdev = d_it; ++ physdev_udi = udi_it; ++ is_hotpluggable = TRUE; ++ hal_device_property_set_string (d, "storage.bus", "memstick"); ++ break; + } else if (strcmp (bus, "ccw") == 0) { + physdev = d_it; + physdev_udi = udi_it; +@@ -1302,6 +1308,8 @@ + + } else if (strcmp (parent_bus, "mmc") == 0) { + hal_device_property_set_string (d, "storage.drive_type", "sd_mmc"); ++ } else if (strcmp (parent_bus, "memstick") == 0) { ++ hal_device_property_set_string (d, "storage.drive_type", "memstick"); + } + + hal_device_property_set_string (d, "info.category", "storage"); +diff -Nur -x '*.orig' -x '*~' ubuntu/hald/linux/device.c ubuntu.new/hald/linux/device.c +--- ubuntu/hald/linux/device.c 2007-10-23 11:44:20.000000000 +0200 ++++ ubuntu.new/hald/linux/device.c 2007-10-23 11:44:30.000000000 +0200 +@@ -1513,6 +1513,51 @@ + return TRUE; + } + ++ ++static HalDevice * ++memstick_host_add (const gchar *sysfs_path, const gchar *device_file, HalDevice *parent_dev, const gchar *parent_path) ++{ ++ HalDevice *d; ++ gint host_num; ++ const gchar *last_elem; ++ ++ d = NULL; ++ ++ if (parent_dev == NULL || parent_path == NULL) { ++ goto out; ++ } ++ ++ d = hal_device_new (); ++ hal_device_property_set_string (d, "linux.sysfs_path", sysfs_path); ++ ++ hal_device_property_set_string (d, "info.parent", hal_device_get_udi (parent_dev)); ++ ++ hal_device_property_set_string (d, "info.category", "memstick_host"); ++ hal_device_add_capability (d, "memstick_host"); ++ ++ hal_device_property_set_string (d, "info.product", "Memory Stick Host Adapter"); ++ ++ last_elem = hal_util_get_last_element (sysfs_path); ++ sscanf (last_elem, "memstick%d", &host_num); ++ hal_device_property_set_int (d, "memstick_host.host", host_num); ++ ++out: ++ return d; ++} ++ ++static gboolean ++memstick_host_compute_udi (HalDevice *d) ++{ ++ gchar udi[256]; ++ ++ hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), ++ "%s_memstick_host", ++ hal_device_property_get_string (d, "info.parent")); ++ hal_device_set_udi (d, udi); ++ hal_device_property_set_string (d, "info.udi", udi); ++ return TRUE; ++} ++ + static HalDevice * + pci_add (const gchar *sysfs_path, const gchar *device_file, HalDevice *parent_dev, const gchar *parent_path) + { +@@ -2280,6 +2325,49 @@ + + } + ++static HalDevice * ++memstick_add (const gchar *sysfs_path, const gchar *device_file, HalDevice *parent_dev, const gchar *parent_path) ++{ ++ HalDevice *d; ++ const gchar *bus_id; ++ ++ if (parent_dev == NULL) { ++ d = NULL; ++ goto out; ++ } ++ ++ d = hal_device_new (); ++ hal_device_property_set_string (d, "linux.sysfs_path", sysfs_path); ++ hal_device_property_set_string (d, "info.subsystem", "memstick"); ++ hal_device_property_set_string (d, "info.bus", "memstick"); ++ hal_device_property_set_string (d, "info.parent", hal_device_get_udi (parent_dev)); ++ ++ hal_util_set_driver (d, "info.linux.driver", sysfs_path); ++ ++ bus_id = hal_util_get_last_element (sysfs_path); ++ ++ hal_util_set_string_from_file (d, "info.product", sysfs_path, "attr_modelname"); ++ hal_util_set_string_from_file (d, "memstick.class", sysfs_path, "class"); ++ hal_util_set_string_from_file (d, "memstick.category", sysfs_path, "category"); ++ ++out: ++ return d; ++} ++ ++static gboolean ++memstick_compute_udi (HalDevice *d) ++{ ++ gchar udi[256]; ++ ++ hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), ++ "%s_memstick_card", ++ hal_device_property_get_string (d, "info.parent")); ++ hal_device_set_udi (d, udi); ++ hal_device_property_set_string (d, "info.udi", udi); ++ return TRUE; ++ ++} ++ + /*--------------------------------------------------------------------------------------------------------------*/ + + static HalDevice * +@@ -3538,6 +3626,16 @@ + .remove = dev_remove + }; + ++static DevHandler dev_handler_memstick_host = ++{ ++ .subsystem = "memstick_host", ++ .add = memstick_host_add, ++ .get_prober = NULL, ++ .post_probing = NULL, ++ .compute_udi = memstick_host_compute_udi, ++ .remove = dev_remove ++}; ++ + static DevHandler dev_handler_pci = { + .subsystem = "pci", + .add = pci_add, +@@ -3601,6 +3699,13 @@ + .remove = dev_remove + }; + ++static DevHandler dev_handler_memstick = { ++ .subsystem = "memstick", ++ .add = memstick_add, ++ .compute_udi = memstick_compute_udi, ++ .remove = dev_remove ++}; ++ + static DevHandler dev_handler_ieee1394 = { + .subsystem = "ieee1394", + .add = ieee1394_add, +@@ -3692,6 +3797,7 @@ + &dev_handler_pcmcia, + &dev_handler_scsi, + &dev_handler_mmc, ++ &dev_handler_memstick, + &dev_handler_ieee1394, + &dev_handler_xen, + &dev_handler_ssb, +@@ -3712,6 +3818,7 @@ + &dev_handler_tape, + &dev_handler_tape390, + &dev_handler_mmc_host, ++ &dev_handler_memstick_host, + &dev_handler_backlight, + &dev_handler_firewire, + &dev_handler_power_supply, --- hal-0.5.10.orig/debian/patches/40_readme_remove_hacking.patch +++ hal-0.5.10/debian/patches/40_readme_remove_hacking.patch @@ -0,0 +1,12 @@ +diff -ruN hal-0.5.0-old/README hal-0.5.0/README +--- hal-0.5.0-old/README 2004-12-14 03:47:58.000000000 +0100 ++++ hal-0.5.0/README 2005-04-13 12:32:18.448771192 +0200 +@@ -2,8 +2,6 @@ + HAL is a hardware abstraction layer + + +-See also the file HACKING for notes of interest to developers working on HAL. +- + See http://www.freedesktop.org/Software/hal for lots of documentation, + mailing lists, etc. + --- hal-0.5.10.orig/debian/patches/80_allow_vfat_usefree.patch +++ hal-0.5.10/debian/patches/80_allow_vfat_usefree.patch @@ -0,0 +1,11 @@ +diff -Nur -x '*.orig' -x '*~' ubuntu/fdi/policy/10osvendor/20-storage-methods.fdi ubuntu.new/fdi/policy/10osvendor/20-storage-methods.fdi +--- ubuntu/fdi/policy/10osvendor/20-storage-methods.fdi 2007-08-27 17:34:05.000000000 +0200 ++++ ubuntu.new/fdi/policy/10osvendor/20-storage-methods.fdi 2007-10-23 11:18:49.000000000 +0200 +@@ -202,6 +202,7 @@ + fmask= + uid= + flush ++ usefree + + + longnames --- hal-0.5.10.orig/debian/patches/82_ignore_fixed_nonmedia.patch +++ hal-0.5.10/debian/patches/82_ignore_fixed_nonmedia.patch @@ -0,0 +1,25 @@ +diff -Nur -x '*.orig' -x '*~' ubuntu/fdi/policy/10osvendor/20-storage-methods.fdi ubuntu.new/fdi/policy/10osvendor/20-storage-methods.fdi +--- ubuntu/fdi/policy/10osvendor/20-storage-methods.fdi 2007-10-23 11:24:43.000000000 +0200 ++++ ubuntu.new/fdi/policy/10osvendor/20-storage-methods.fdi 2007-10-23 11:26:37.000000000 +0200 +@@ -155,6 +155,21 @@ + + + ++ ++ ++ ++ ++ true ++ ++ ++ ++ false ++ ++ ++ ++ ++ ++ + org.freedesktop.Hal.Device.Volume + + Mount --- hal-0.5.10.orig/debian/patches/85_read_brightness_not_actual_brightness.patch +++ hal-0.5.10/debian/patches/85_read_brightness_not_actual_brightness.patch @@ -0,0 +1,14 @@ +diff -Nur -x '*.orig' -x '*~' ubuntu/tools/linux/hal-system-lcd-get-brightness-linux ubuntu.new/tools/linux/hal-system-lcd-get-brightness-linux +--- ubuntu/tools/linux/hal-system-lcd-get-brightness-linux 2007-07-26 20:00:28.000000000 +0200 ++++ ubuntu.new/tools/linux/hal-system-lcd-get-brightness-linux 2007-10-23 11:48:27.000000000 +0200 +@@ -8,8 +8,8 @@ + # (at your option) any later version. + + # we have /sys/class/backlight +-if [ -r "$HAL_PROP_LINUX_SYSFS_PATH/actual_brightness" ]; then +- value="`cat $HAL_PROP_LINUX_SYSFS_PATH/actual_brightness`" ++if [ -r "$HAL_PROP_LINUX_SYSFS_PATH/brightness" ]; then ++ value="`cat $HAL_PROP_LINUX_SYSFS_PATH/brightness`" + exit ${value} + fi + --- hal-0.5.10.orig/debian/patches/23_addon_acpi.patch +++ hal-0.5.10/debian/patches/23_addon_acpi.patch @@ -0,0 +1,28 @@ +diff -aur hal-0.5.8.vanilla/hald/linux/addons/addon-acpi.c hal-0.5.8/hald/linux/addons/addon-acpi.c +--- hal-0.5.8.vanilla/hald/linux/addons/addon-acpi.c 2006-09-11 23:56:39.000000000 +0200 ++++ hal-0.5.8/hald/linux/addons/addon-acpi.c 2006-09-17 16:12:51.000000000 +0200 +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + #include + #include + +@@ -45,9 +46,14 @@ + acpi_get_event_fp_kernel (void) + { + FILE *fp = NULL; ++ struct stat sbuf; + +- fp = fopen ("/proc/acpi/event", "r"); ++ if (stat("/usr/sbin/acpid", &sbuf) == 0) { ++ HAL_DEBUG (("acpid installed, not using the kernel acpi event interface")); ++ return NULL; ++ } + ++ fp = fopen ("/proc/acpi/event", "r"); + if (fp == NULL) + HAL_ERROR (("Cannot open /proc/acpi/event: %s", strerror (errno))); + +Only in hal-0.5.8/hald/linux/addons: addon-acpi.c.orig --- hal-0.5.10.orig/debian/patches/68_alternative-cdrw-capacity-detection.patch +++ hal-0.5.10/debian/patches/68_alternative-cdrw-capacity-detection.patch @@ -0,0 +1,192 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 68_disc_identification.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Added get_mmc_profile to recognise discs in old drives (where GET +## DP: CONFIGURATION fails), called from get_disc_type. + +@DPATCH@ + +diff -Nru hal-0.5.9.orig/hald/linux/probing/linux_dvd_rw_utils.c hal-0.5.9/hald/linux/probing/linux_dvd_rw_utils.c +--- hal-0.5.9.orig/hald/linux/probing/linux_dvd_rw_utils.c 2007-03-07 21:52:19.000000000 +0000 ++++ hal-0.5.9/hald/linux/probing/linux_dvd_rw_utils.c 2007-07-31 19:23:36.000000000 +0100 +@@ -740,6 +740,160 @@ + return retval; + } + ++ ++static int ++get_mmc_profile (int fd, int * isblank) ++{ ++ ScsiCommand * cmd; ++ int retval = -1; ++ unsigned char formats[260],disc_info[32]; ++ unsigned char page[20]; ++ unsigned char buf[8],inq[128]; ++ int profile=0,once=1,blank=0,err,erasable=0; ++ unsigned int len; ++ ++ cmd = scsi_command_new_from_fd (fd); ++ ++ /* For valgrind */ ++ memset (&page, 0, sizeof (page)); ++ memset (&buf, 0, sizeof (buf)); ++ memset (&inq, 0, sizeof (inq)); ++ memset (&disc_info, 0, sizeof (disc_info)); ++ memset (&formats, 0, sizeof (formats)); ++ ++ /* ++ INQUIRY is considered to be "non-intrusive" in a sense that it ++ won't interfere with any other operation nor clear sense data, ++ which might be important to retain for security reasons. ++ */ ++ ++ scsi_command_init(cmd,0,0x12); /* INQUIRY */ ++ scsi_command_init(cmd,4,36); ++ scsi_command_init(cmd,5,0); ++ if ((err=scsi_command_transport(cmd,READ,inq,36))) { ++ /*sperror ("INQUIRY",err);*/ ++ goto bail; ++ } ++ ++ /* make sure we're talking to MMC unit, for security reasons... */ ++ if ((inq[0]&0x1F) != 5) { ++ fprintf (stderr, "Could not determine drive profile: not an MMC unit!\n"); ++ goto bail; ++ } ++ ++ do { ++ scsi_command_init(cmd,0,0x46); ++ scsi_command_init(cmd,8,sizeof(buf)); ++ scsi_command_init(cmd,9,0); ++ if ((err=scsi_command_transport(cmd,READ,buf,sizeof(buf)))) { ++ /*sperror ("GET CONFIGURATION",err);*/ ++ /* this is not a fatal error -- some older drives support MMC-1 ++ * but don't support the GET CONFIGURATION command (which is part ++ * of the MMC-2 spec). */ ++ } else { ++ if ((profile = buf[6]<<8|buf[7]) || !once) break; ++ } ++ ++ // no media? ++ scsi_command_init(cmd,0,0); // TEST UNIT READY ++ scsi_command_init(cmd,5,0); ++ if ((scsi_command_transport(cmd,READ,buf,sizeof(buf))&0xFFF00) != 0x23A00) break; ++ ++ // try to load tray... ++ scsi_command_init(cmd,0,0x1B); // START/STOP UNIT ++ scsi_command_init(cmd,4,0x3); // "Load" ++ scsi_command_init(cmd,5,0); ++ if ((err=scsi_command_transport(cmd,READ,buf,sizeof(buf)))) { ++ /*sperror ("LOAD TRAY",err);*/ ++ fprintf (stderr, "Could not determine drive profile: Error loading drive tray\n"); ++ goto bail; ++ } ++ ++ /* wait_for_unit (cmd);*/ ++ } while (once--); ++ ++ scsi_command_init(cmd,0,0x51); // READ DISC INFORMATION ++ scsi_command_init(cmd,8,sizeof(disc_info)); ++ scsi_command_init(cmd,9,0); ++ if ((err=scsi_command_transport(cmd,READ,disc_info,sizeof(disc_info)))) { ++ /*sperror ("READ DISC INFORMATION",err);*/ ++ fprintf (stderr, "Could not fully determine drive profile %x: Error reading disc information\n", profile); ++ goto bail; ++ } ++ ++ // see if it's blank media ++ if ((disc_info[2]&3) == 0) blank=1; ++ ++ if (!profile ) { ++ /* if the profile has not yet been set, we're dealing with an older ++ * CD-R or CD-RW burner (which doesn't know the GET CONFIGURATION ++ * command. Do some digging into the disc type to figure out what's ++ * in the drive */ ++ erasable = ((disc_info[2] & 16)); ++ if (blank && !erasable) { ++ profile = 0x09; /* CD-R */ ++ } else if (erasable) { ++ profile = 0x0a; /* CD-RW */ ++ } else if (disc_info[8] == 0x00) { ++ profile = 0x08; /* Commercial CDs and Audio CD */ ++ } else { ++ fprintf (stderr, "Could not determine profile or type of media\n"); ++ goto bail; ++ } ++ } ++ ++ if ((profile != 0x1A && profile != 0x13 && profile != 0x12)) { ++ retval = profile; ++ } ++ else { ++ scsi_command_init(cmd,0,0x23); // READ FORMAT CAPACITIES ++ scsi_command_init(cmd,8,12); ++ scsi_command_init(cmd,9,0); ++ if ((err=scsi_command_transport(cmd,READ,formats,12))) { ++ /*sperror ("READ FORMAT CAPACITIES",err);*/ ++ fprintf (stderr, "Could not determine drive profile: " ++ "Error reading format capacities\n"); ++ goto bail; ++ } ++ ++ len = formats[3]; ++ if (len&7 || len<16) { ++ fprintf (stderr, "Could not determine drive profile: " ++ "Format allocation length isn't sane\n"); ++ goto bail; ++ } ++ ++ scsi_command_init(cmd,0,0x23); // READ FORMAT CAPACITIES ++ scsi_command_init(cmd,7,(4+len)>>8); ++ scsi_command_init(cmd,8,(4+len)&0xFF); ++ scsi_command_init(cmd,9,0); ++ if ((err=scsi_command_transport(cmd,READ,formats,4+len))) { ++ /*sperror ("READ FORMAT CAPACITIES",err);*/ ++ fprintf (stderr, "Could not determine drive profile: " ++ "Error reading format capacities (2)\n"); ++ goto bail; ++ } ++ ++ if (len != formats[3]) { ++ fprintf (stderr, "Could not determine drive profile: " ++ "parameter length inconsistency\n"); ++ goto bail; ++ } ++ ++ // see if it's not formatted ++ if ((formats[8]&3) != 2) blank = 1; ++ ++ retval = profile; ++ } ++ ++ /* Only touch isblank if we have read the profile correctly. */ ++ if ( retval != -1 ) { ++ *isblank = blank; ++ } ++bail: ++ return retval; ++} ++ + int + get_disc_type (int fd) + { +@@ -754,14 +908,16 @@ + scsi_command_init (cmd, 8, 8); + scsi_command_init (cmd, 9, 0); + if (scsi_command_transport (cmd, READ, header, 8)) { ++ int isblank; + /* GET CONFIGURATION failed */ + scsi_command_free (cmd); +- return -1; ++ /* Try alternative method */ ++ retval = get_mmc_profile(fd,&isblank); ++ return retval; /* get_mmc_profile returns -1 on error too. */ + } + + retval = (header[6]<<8)|(header[7]); + +- + scsi_command_free (cmd); + return retval; + } --- hal-0.5.10.orig/debian/patches/28_runner_64bit_values.patch +++ hal-0.5.10/debian/patches/28_runner_64bit_values.patch @@ -0,0 +1,34 @@ +diff --git a/hald-runner/main.c b/hald-runner/main.c +index 3b170b3..3842cb8 100644 +--- a/hald-runner/main.c ++++ b/hald-runner/main.c +@@ -128,9 +128,10 @@ handle_start(DBusConnection *con, DBusMessage *msg) + goto malformed; + + if (run_request_run(r, con, NULL, &pid)) { ++ gint64 ppid = pid; + reply = dbus_message_new_method_return(msg); + dbus_message_append_args (reply, +- DBUS_TYPE_INT64, &pid, ++ DBUS_TYPE_INT64, &ppid, + DBUS_TYPE_INVALID); + + } else { +diff --git a/hald-runner/runner.c b/hald-runner/runner.c +index 57a2a80..8cbc777 100644 +--- a/hald-runner/runner.c ++++ b/hald-runner/runner.c +@@ -175,11 +175,12 @@ out: + /* emit a signal that this PID exited */ + if(rd->con != NULL && rd->emit_pid_exited) { + DBusMessage *signal; ++ gint64 ppid = rd->pid; + signal = dbus_message_new_signal ("/org/freedesktop/HalRunner", + "org.freedesktop.HalRunner", + "StartedProcessExited"); + dbus_message_append_args (signal, +- DBUS_TYPE_INT64, &(rd->pid), ++ DBUS_TYPE_INT64, &(ppid), + DBUS_TYPE_INVALID); + dbus_connection_send(rd->con, signal, NULL); + } --- hal-0.5.10.orig/debian/patches/86_allow_ufs_ufstype.patch +++ hal-0.5.10/debian/patches/86_allow_ufs_ufstype.patch @@ -0,0 +1,17 @@ +diff -Nur -x '*.orig' -x '*~' ubuntu/fdi/policy/10osvendor/20-storage-methods.fdi ubuntu.new/fdi/policy/10osvendor/20-storage-methods.fdi +--- ubuntu/fdi/policy/10osvendor/20-storage-methods.fdi 2007-10-23 12:33:31.000000000 +0200 ++++ ubuntu.new/fdi/policy/10osvendor/20-storage-methods.fdi 2007-10-23 12:33:46.000000000 +0200 +@@ -278,6 +278,13 @@ + user_xattr + + ++ ++ ++ ++ ufstype= ++ ++ ++ + + + --- hal-0.5.10.orig/debian/patches/81_ignore_single_slash_label.patch +++ hal-0.5.10/debian/patches/81_ignore_single_slash_label.patch @@ -0,0 +1,12 @@ +diff -Nur hal/build-tree/hal-0.5.8.1/tools/hal-storage-mount.c hal.new/build-tree/hal-0.5.8.1/tools/hal-storage-mount.c +--- hal-0.5.8.1/tools/hal-storage-mount.c 2007-03-09 18:13:01.000000000 +0100 ++++ hal-0.5.8.1/tools/hal-storage-mount.c 2007-03-09 18:19:42.000000000 +0100 +@@ -591,7 +591,7 @@ + else + label = NULL; + +- if (label != NULL) { ++ if (label != NULL && strcmp(label, "/") != 0) { + /* best - use label */ + g_strlcpy (mount_point, label, sizeof (mount_point)); + --- hal-0.5.10.orig/debian/copyright +++ hal-0.5.10/debian/copyright @@ -0,0 +1,232 @@ +This package was debianized by Martin Waitz on +Fri, 24 Oct 2003 22:54:43 +0200. + +It was downloaded from www.freedesktop.org + +Upstream Author: David Zeuthen + +Copyright: + +HAL is licensed to you under your choice of the Academic Free +License version 2.0, or the GNU General Public License version 2. +Both licenses are included here. Some individual source code files +and/or binaries may be under the GPL only or under the LGPG. + +Each source code file is marked with the proper copyright information. + + The Academic Free License + v. 2.0 + +This Academic Free License (the "License") applies to any original +work of authorship (the "Original Work") whose owner (the "Licensor") +has placed the following notice immediately following the copyright +notice for the Original Work: + +Licensed under the Academic Free License version 2.0 + +1) Grant of Copyright License. Licensor hereby grants You a +world-wide, royalty-free, non-exclusive, perpetual, sublicenseable +license to do the following: + +a) to reproduce the Original Work in copies; + +b) to prepare derivative works ("Derivative Works") based upon the Original Work; + +c) to distribute copies of the Original Work and Derivative Works to the public; + +d) to perform the Original Work publicly; and + +e) to display the Original Work publicly. + +2) Grant of Patent License. Licensor hereby grants You a world-wide, +royalty-free, non-exclusive, perpetual, sublicenseable license, under +patent claims owned or controlled by the Licensor that are embodied in +the Original Work as furnished by the Licensor, to make, use, sell and +offer for sale the Original Work and Derivative Works. + +3) Grant of Source Code License. The term "Source Code" means the +preferred form of the Original Work for making modifications to it and +all available documentation describing how to modify the Original +Work. Licensor hereby agrees to provide a machine-readable copy of +the Source Code of the Original Work along with each copy of the +Original Work that Licensor distributes. Licensor reserves the right +to satisfy this obligation by placing a machine-readable copy of the +Source Code in an information repository reasonably calculated to +permit inexpensive and convenient access by You for as long as +Licensor continues to distribute the Original Work, and by publishing +the address of that information repository in a notice immediately +following the copyright notice that applies to the Original Work. + +4) Exclusions From License Grant. Neither the names of Licensor, nor +the names of any contributors to the Original Work, nor any of their +trademarks or service marks, may be used to endorse or promote +products derived from this Original Work without express prior written +permission of the Licensor. Nothing in this License shall be deemed +to grant any rights to trademarks, copyrights, patents, trade secrets +or any other intellectual property of Licensor except as expressly +stated herein. No patent license is granted to make, use, sell or +offer to sell embodiments of any patent claims other than the licensed +claims defined in Section 2. No right is granted to the trademarks of +Licensor even if such marks are included in the Original Work. +Nothing in this License shall be interpreted to prohibit Licensor from +licensing under different terms from this License any Original Work +that Licensor otherwise would have a right to license. + +5) This section intentionally omitted. + +6) Attribution Rights. You must retain, in the Source Code of any +Derivative Works that You create, all copyright, patent or trademark +notices from the Source Code of the Original Work, as well as any +notices of licensing and any descriptive text identified therein as an +"Attribution Notice." You must cause the Source Code for any +Derivative Works that You create to carry a prominent Attribution +Notice reasonably calculated to inform recipients that You have +modified the Original Work. + +7) Warranty of Provenance and Disclaimer of Warranty. Licensor +warrants that the copyright in and to the Original Work and the patent +rights granted herein by Licensor are owned by the Licensor or are +sublicensed to You under the terms of this License with the permission +of the contributor(s) of those copyrights and patent rights. Except +as expressly stated in the immediately proceeding sentence, the +Original Work is provided under this License on an "AS IS" BASIS and +WITHOUT WARRANTY, either express or implied, including, without +limitation, the warranties of NON-INFRINGEMENT, MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY +OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY +constitutes an essential part of this License. No license to Original +Work is granted hereunder except under this disclaimer. + +8) Limitation of Liability. Under no circumstances and under no legal +theory, whether in tort (including negligence), contract, or +otherwise, shall the Licensor be liable to any person for any direct, +indirect, special, incidental, or consequential damages of any +character arising as a result of this License or the use of the +Original Work including, without limitation, damages for loss of +goodwill, work stoppage, computer failure or malfunction, or any and +all other commercial damages or losses. This limitation of liability +shall not apply to liability for death or personal injury resulting +from Licensor's negligence to the extent applicable law prohibits such +limitation. Some jurisdictions do not allow the exclusion or +limitation of incidental or consequential damages, so this exclusion +and limitation may not apply to You. + +9) Acceptance and Termination. If You distribute copies of the +Original Work or a Derivative Work, You must make a reasonable effort +under the circumstances to obtain the express assent of recipients to +the terms of this License. Nothing else but this License (or another +written agreement between Licensor and You) grants You permission to +create Derivative Works based upon the Original Work or to exercise +any of the rights granted in Section 1 herein, and any attempt to do +so except under the terms of this License (or another written +agreement between Licensor and You) is expressly prohibited by +U.S. copyright law, the equivalent laws of other countries, and by +international treaty. Therefore, by exercising any of the rights +granted to You in Section 1 herein, You indicate Your acceptance of +this License and all of its terms and conditions. + +10) Termination for Patent Action. This License shall terminate +automatically and You may no longer exercise any of the rights granted +to You by this License as of the date You commence an action, +including a cross-claim or counterclaim, for patent infringement (i) +against Licensor with respect to a patent applicable to software or +(ii) against any entity with respect to a patent applicable to the +Original Work (but excluding combinations of the Original Work with +other software or hardware). + +11) Jurisdiction, Venue and Governing Law. Any action or suit relating +to this License may be brought only in the courts of a jurisdiction +wherein the Licensor resides or in which Licensor conducts its primary +business, and under the laws of that jurisdiction excluding its +conflict-of-law provisions. The application of the United Nations +Convention on Contracts for the International Sale of Goods is +expressly excluded. Any use of the Original Work outside the scope of +this License or after its termination shall be subject to the +requirements and penalties of the U.S. Copyright Act, 17 U.S.C. \u00a4 +101 et seq., the equivalent laws of other countries, and international +treaty. This section shall survive the termination of this License. + +12) Attorneys Fees. In any action to enforce the terms of this License +or seeking damages relating thereto, the prevailing party shall be +entitled to recover its costs and expenses, including, without +limitation, reasonable attorneys' fees and costs incurred in +connection with such action, including any appeal of such action. +This section shall survive the termination of this License. + +13) Miscellaneous. This License represents the complete agreement +concerning the subject matter hereof. If any provision of this +License is held to be unenforceable, such provision shall be reformed +only to the extent necessary to make it enforceable. + +14) Definition of "You" in This License. "You" throughout this +License, whether in upper or lower case, means an individual or a +legal entity exercising rights under, and complying with all of the +terms of, this License. For legal entities, "You" includes any entity +that controls, is controlled by, or is under common control with you. +For purposes of this definition, "control" means (i) the power, direct +or indirect, to cause the direction or management of such entity, +whether by contract or otherwise, or (ii) ownership of fifty percent +(50%) or more of the outstanding shares, or (iii) beneficial ownership +of such entity. + +15) Right to Use. You may use the Original Work in all ways not +otherwise restricted or conditioned by this License or by law, and +Licensor promises not to interfere with or be responsible for such +uses by You. + +This license is Copyright (C) 2003 Lawrence E. Rosen. All rights +reserved. Permission is hereby granted to copy and distribute this +license without modification. This license may not be modified +without the express written permission of its copyright owner. + +-- +END OF ACADEMIC FREE LICENSE. The following is intended to describe the essential +differences between the Academic Free License (AFL) version 1.0 and other +open source licenses: + +The Academic Free License is similar to the BSD, MIT, UoI/NCSA and Apache +licenses in many respects but it is intended to solve a few problems with +those licenses. + +* The AFL is written so as to make it clear what software is being +licensed (by the inclusion of a statement following the copyright notice +in the software). This way, the license functions better than a template +license. The BSD, MIT and UoI/NCSA licenses apply to unidentified software. + +* The AFL contains a complete copyright grant to the software. The BSD +and Apache licenses are vague and incomplete in that respect. + +* The AFL contains a complete patent grant to the software. The BSD, MIT, +UoI/NCSA and Apache licenses rely on an implied patent license and contain +no explicit patent grant. + +* The AFL makes it clear that no trademark rights are granted to the +licensor's trademarks. The Apache license contains such a provision, but the +BSD, MIT and UoI/NCSA licenses do not. + +* The AFL includes the warranty by the licensor that it either owns the +copyright or that it is distributing the software under a license. None of +the other licenses contain that warranty. All other warranties are disclaimed, +as is the case for the other licenses. + +* The AFL is itself copyrighted (with the right granted to copy and distribute +without modification). This ensures that the owner of the copyright to the +license will control changes. The Apache license contains a copyright notice, +but the BSD, MIT and UoI/NCSA licenses do not. + + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +A copy of the GPL is available in /usr/share/common-licenses/GPL --- hal-0.5.10.orig/debian/preferences.fdi +++ hal-0.5.10/debian/preferences.fdi @@ -0,0 +1,59 @@ + + + + + + + + + + false + + + + + + + + + + --- hal-0.5.10.orig/debian/hal.udev.rules +++ hal-0.5.10/debian/hal.udev.rules @@ -0,0 +1,2 @@ +# Have udev pass data over a socket to hal +RUN+="socket:/org/freedesktop/hal/udev_event" --- hal-0.5.10.orig/debian/libhal-storage-dev.install +++ hal-0.5.10/debian/libhal-storage-dev.install @@ -0,0 +1,4 @@ +debian/tmp/usr/include/hal/libhal-storage.h +debian/tmp/usr/lib/pkgconfig/hal-storage.pc +debian/tmp/usr/lib/libhal-storage.so +debian/tmp/usr/lib/libhal-storage.a --- hal-0.5.10.orig/debian/libhal-storage1.shlibs +++ hal-0.5.10/debian/libhal-storage1.shlibs @@ -0,0 +1 @@ +libhal-storage 1 libhal-storage1 (>= 0.5.10) --- hal-0.5.10.orig/debian/hal.install +++ hal-0.5.10/debian/hal.install @@ -0,0 +1,17 @@ +debian/tmp/etc/ +debian/tmp/usr/bin/lshal +debian/tmp/usr/bin/hal-device +debian/tmp/usr/bin/hal-get-property +debian/tmp/usr/bin/hal-set-property +debian/tmp/usr/bin/hal-find-by-capability +debian/tmp/usr/bin/hal-find-by-property +debian/tmp/usr/bin/hal-disable-polling +debian/tmp/usr/bin/hal-is-caller-locked-out +debian/tmp/usr/bin/hal-lock +debian/tmp/usr/bin/hal-setup-keymap +debian/tmp/usr/sbin/ +debian/tmp/sbin/umount.hal usr/sbin +debian/tmp/usr/lib/hal/ +debian/tmp/usr/share/hal/fdi +debian/preferences.fdi etc/hal/fdi/policy +debian/debian-storage-policy-ignore-fixed-crypto-drives.fdi usr/share/hal/fdi/policy/10osvendor

str :

str : the nul-terminated sting to free

ctx :

ctx : the context for the connection to hald

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : Temporary device unique id or NULL if there was a problem. This string must be freed by the caller.

ctx :

ctx : the context for the connection to hald

temp_udi :

the temporary unique device id as returned by libhal_new_device() +temp_udi : the temporary unique device id as returned by libhal_new_device()

udi :

udi : the new unique device id.

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : FALSE if the given unique device id is already in use.

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique device id.

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the device was removed, FALSE otherwise

ctx :

ctx : the context for the connection to hald

target_udi :

target_udi : the Unique device id of target device to merge to

source_udi :

source_udi : the Unique device id of device to merge from

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the properties were merged, FALSE otherwise

ctx :

ctx : the context for the connection to hald

udi1 :

udi1 : the Unique Device Id for device 1

udi2 :

udi2 : the Unique Device Id for device 2

property_namespace :

property_namespace : the namespace for set of devices, e.g. "usb"

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if all properties starting with the given namespace parameter from one device is in the other and have the same value.

ctx :

ctx : the context for the connection to hald

key :

key : name of the property

value :

value : the value to match

num_devices :

num_devices : pointer to store number of devices

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

UDI of devices; free with libhal_free_string_array() +Returns : UDI of devices; free with libhal_free_string_array()

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

capability :

capability : the capability name to add

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the capability was added, FALSE if the device didn't exist

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

capability :

capability : the capability name

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the device has the capability, otherwise FALSE

ctx :

ctx : the context for the connection to hald

capability :

capability : the capability name

num_devices :

num_devices : pointer to store number of devices

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

UDI of devices; free with libhal_free_string_array() +Returns : UDI of devices; free with libhal_free_string_array()

ctx :

ctx : the context for the connection to hald

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE only if the operation succeeded

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE only if the operation succeeded

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE only if the operation succeeded

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

reason_to_lock :

reason_to_lock : a user-presentable reason why the device is locked.

reason_why_locked :

reason_why_locked : a pointer to store the reason why the device cannot be locked on failure, or NULL

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the lock was obtained, FALSE otherwise

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the device was successfully unlocked, FALSE otherwise

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique id of device

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : Whether the operation succeeded

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique id of device

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : Whether the operation succeeded

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

condition_name :

condition_name : user-readable name of condition

condition_details :

condition_details : user-readable details of condition

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if condition successfully emitted, FALSE otherwise

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id

interface_name :

interface_name : Name of interface to claim, e.g. org.freedesktop.Hal.Device.FoobarKindOfThing

introspection_xml :

introspection_xml : Introspection XML containing what would be inside the interface XML tag

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if interface was claimed, FALSE otherwise

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique Device Id this addon is handling

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the HAL daemon received the message, FALSE otherwise

ctx :

ctx : the context for the connection to hald

command_line :

command_line : commandline singleton was started with

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : TRUE if the HAL daemon received the message, FALSE otherwise

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique id of device

interface :

interface : the intername name to lock

exclusive :

exclusive : whether the lock should be exclusive

error :

error : pointer to an initialized dbus error object for returning errors

Returns :

Returns : TRUE iff the lock was acquired

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique id of device

interface :

interface : the intername name to unlock

error :

error : pointer to an initialized dbus error object for returning errors

Returns :

Returns : TRUE iff the lock was released.

ctx :

ctx : the context for the connection to hald

interface :

interface : the intername name to lock

exclusive :

exclusive : whether the lock should be exclusive

error :

error : pointer to an initialized dbus error object for returning errors

Returns :

Returns : TRUE iff the lock was acquired

ctx :

ctx : the context for the connection to hald

interface :

interface : the intername name to unlock

error :

error : pointer to an initialized dbus error object for returning errors

Returns :

Returns : TRUE iff the lock was released

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique id of device

interface :

interface : the intername name to check

caller :

caller : the caller to check for

error :

error : pointer to an initialized dbus error object for returning errors

Returns :

Returns : Whether the given caller is locked out

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique id of device

interface :

interface : the intername name to check

error :

error : pointer to an initialized dbus error object for returning errors or NULL

Returns :

Returns : If another process is holding a lock on the device

ctx :

ctx : the context for the connection to hald

udi :

udi : the Unique id of device

action :

action : the action to check for

caller :

caller : the caller to check for

error :

error : pointer to an initialized dbus error object for returning errors

Returns :

Returns : The textual reply from PolicyKit. See the PolicyKitResult enumeration in the PolicyKit documentation for details. The caller is responsible for freeing this string with the function -libhal_free_string(). +libhal_free_string().