hal/libhal libhal.c,1.32,1.33
David Zeuthen
david at freedesktop.org
Tue Jan 18 11:48:15 PST 2005
- Previous message: hal/hald/linux2/probing Makefile.am, NONE, 1.1 probe-input.c, NONE,
1.1
- Next message: hal/hald/linux Makefile.am, 1.1, NONE block_class_device.c, 1.88,
NONE bus_device.c, 1.20, NONE bus_device.h, 1.9,
NONE class_device.c, 1.30, NONE class_device.h, 1.12,
NONE common.c, 1.16, NONE common.h, 1.11, NONE hald_helper.h,
1.6, NONE ide_bus_device.c, 1.8, NONE ide_host_bus_device.c,
1.9, NONE ieee1394_class_device.c, 1.4,
NONE ieee1394_host_class_device.c, 1.5,
NONE ieee1394_node_class_device.c, 1.6,
NONE input_class_device.c, 1.11, NONE linux_dvd_rw_utils.c,
1.8, NONE linux_dvd_rw_utils.h, 1.6, NONE macio_bus_device.c,
1.4, NONE multimedia_class_device.c, 1.2,
NONE net_class_device.c, 1.22, NONE osspec.c, 1.54,
NONE pci_bus_device.c, 1.9, NONE pcmcia_cs.h, 1.1,
NONE pcmcia_socket_class_device.c, 1.4, NONE pcmcia_utils.c,
1.2, NONE pcmcia_utils.h, 1.1, NONE platform_bus_device.c, 1.7,
NONE printer_class_device.c, 1.10, NONE scsi_bus_device.c, 1.1,
NONE scsi_generic_class_device.c, 1.4,
NONE scsi_host_class_device.c, 1.10,
NONE serial_class_device.c, 1.1, NONE usb_bus_device.c, 1.15,
NONE usb_serial_bus_device.c, 1.1, NONE usbif_bus_device.c,
1.9, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/hal/hal/libhal
In directory gabe:/tmp/cvs-serv19239/libhal
Modified Files:
libhal.c
Log Message:
2005-01-18 David Zeuthen <david at fubar.dk>
* tools/linux/Makefile.am: Remove hal.dev build rules
* tools/linux/hal_dev.c: Remove
* configure.in: Set linux2 as the default backend
* hald/linux: Remove all files here as they will get reimplemented
in hald/linux2
* hald/linux2: Add a bunch of new files
* hald/linux2/probing: Add some new files
2005-01-18 David Zeuthen <davidz at redhat.com>
Merge some more changes from the stable branch (except those
in hald/linux and doc/spec)
2005-01-12 David Zeuthen <davidz at redhat.com>
* hald/callout.c (callout_timeout_handler): Be tough and kill
the misbehaving child the hard way - suggestion from Joe Shaw.
2005-01-12 David Zeuthen <davidz at redhat.com>
* hald/linux/osspec.c (HOTPLUG_TIMEOUT): Increase to 25 seconds
to better cope with callouts timeout of 10 seconds
* hald/callout.c (iochn_data): Cope with callouts terminating
and free timeout handler
(callout_timeout_handler): New function; kill callouts if they
time out
(process_next_callout): Setup timeout for callouts - set to
ten seconds
2005-01-11 David Zeuthen <davidz at redhat.com>
* hald/callout.c: Simplify a lot more by demanding that callouts
are run sequentially - which they are anyway since everything is
serialized. Make a mental note to review and stress test this in
the morning.
2005-01-11 David Zeuthen <davidz at redhat.com>
* hald/callout.c: Fix some craziness adding an idle handler for
detecting when callouts complete - fixes bug on my new AMD64
system with device add/remove prior to completion of callouts -
one visible effect was that fstab-sync was crashing since it
couldn't retrieve the block.device device as the device was
removed prior to the completion of the callout
2005-01-07 David Zeuthen <davidz at redhat.com>
* fdi/20freedesktop/ide-drives.fdi: Also check IDE floppies for whether
they are Zip drives
2005-01-07 Joe Shaw <joeshaw at novell.com>
* configure.in: Check for popt when building fstab-sync and error
out if it's not found.
* tools/Makefile.am: Build fstab-sync conditionally based on
whether --enable-fstab-sync is passed in.
2005-01-06 David Zeuthen <davidz at redhat.com>
* libhal/libhal.c (hal_device_query_capability): Patch from Tim
Müller <t.i.m at zen.co.uk>. The attached patch fixes a small memory
leak in libhal's hal_device_query_capability().
2005-01-03 David Zeuthen <davidz at redhat.com>
* configure.in: Added it to ALL_LINGUAS
* po/it.po: Italien translation from Pier Luigi Fiorini
<pierluigi.fiorini at mockup.org>
2004-12-15 David Zeuthen <davidz at redhat.com>
* fdi/20freedesktop/usb-zip-drives.fdi: Only match on actual
harddisks to avoid wrong detection of e.g. "Iomega ZipCD 650 USB CDRW"
drives (Red Hat bug #143834)
* fdi/20freedesktop/ide-drives.fdi: ditto
Index: libhal.c
===================================================================
RCS file: /cvs/hal/hal/libhal/libhal.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- libhal.c 14 Oct 2004 18:37:28 -0000 1.32
+++ libhal.c 18 Jan 2005 19:48:13 -0000 1.33
@@ -2230,15 +2230,13 @@
hal_device_query_capability (LibHalContext *ctx,
const char *udi, const char *capability)
{
+ dbus_bool_t ret;
char *caps;
caps = hal_device_get_property_string (ctx, udi, "info.capabilities");
-
- if (caps != NULL)
- if (strstr (caps, capability) != NULL)
- return TRUE;
-
- return FALSE;
+ ret = (caps != NULL && strstr (caps, capability) != NULL);
+ hal_free_string (caps);
+ return ret;
}
/** Find devices with a given capability.
- Previous message: hal/hald/linux2/probing Makefile.am, NONE, 1.1 probe-input.c, NONE,
1.1
- Next message: hal/hald/linux Makefile.am, 1.1, NONE block_class_device.c, 1.88,
NONE bus_device.c, 1.20, NONE bus_device.h, 1.9,
NONE class_device.c, 1.30, NONE class_device.h, 1.12,
NONE common.c, 1.16, NONE common.h, 1.11, NONE hald_helper.h,
1.6, NONE ide_bus_device.c, 1.8, NONE ide_host_bus_device.c,
1.9, NONE ieee1394_class_device.c, 1.4,
NONE ieee1394_host_class_device.c, 1.5,
NONE ieee1394_node_class_device.c, 1.6,
NONE input_class_device.c, 1.11, NONE linux_dvd_rw_utils.c,
1.8, NONE linux_dvd_rw_utils.h, 1.6, NONE macio_bus_device.c,
1.4, NONE multimedia_class_device.c, 1.2,
NONE net_class_device.c, 1.22, NONE osspec.c, 1.54,
NONE pci_bus_device.c, 1.9, NONE pcmcia_cs.h, 1.1,
NONE pcmcia_socket_class_device.c, 1.4, NONE pcmcia_utils.c,
1.2, NONE pcmcia_utils.h, 1.1, NONE platform_bus_device.c, 1.7,
NONE printer_class_device.c, 1.10, NONE scsi_bus_device.c, 1.1,
NONE scsi_generic_class_device.c, 1.4,
NONE scsi_host_class_device.c, 1.10,
NONE serial_class_device.c, 1.1, NONE usb_bus_device.c, 1.15,
NONE usb_serial_bus_device.c, 1.1, NONE usbif_bus_device.c,
1.9, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the hal-commit
mailing list