summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-device
Commit message (Collapse)AuthorAge
* libudev: enumerate - accept NULL parameters in add_match()Tom Gundersen2017-03-14
| | | | This was a regression introduced when moving to sd-device.
* sd-device: enumerator - fix matching on properties and sysattrsTom Gundersen2017-03-14
| | | | | | | | This was a regression that broke $ udevadm trigger -nv --property-match=DEVNAME=/dev/sda1 --attr-match=size=409600 Reported by David Reisner.
* sd-device: fix return codes on errorZbigniew Jędrzejewski-Szmek2017-03-14
| | | | asprintf() does not set errno.
* libudev-device: fix lazy loading of devlinks, properties and tagsTom Gundersen2017-03-14
| | | | | If the underlying device has not read in the properties yet, the generation will be 0, so make sure we trigger the reading at least once.
* sd-device: uniformly handle missing devicesTom Gundersen2017-03-14
| | | | | sd_device_new_from_* now returns -ENODEV when the device does not exist, and the enumerator silently drops these errors as missing devices is exepected.
* sd-device: enumerator - match only on initialized devices by defaultTom Gundersen2017-03-14
| | | | | | | | It is still possible to include uninitialized ones, but now that is opt-in. In most cases people only want initialized devices. Exception is if you want to work without udev running. Suggested by David Herrmann.
* sd-device: enumerator - don't expose add_device()Tom Gundersen2017-03-14
| | | | | | | This is rarely, if ever, used. Drop it from the new public API and only keep it for the legacy API. Suggested by David Herrmann.
* libudev: make libudev-enumerate a thin wrapper around sd-deviceTom Gundersen2017-03-14
|
* sd-device: add device-enumerator libraryTom Gundersen2017-03-14
|
* Rename more things to elogindAndy Wingo2015-04-19
|
* sd-device: get_sysattr_value - don't leak returned valueTom Gundersen2015-04-03
| | | | | | | This was getting leaked as a copy was added to the hashmap, simply add the returned value instead. This should fix CID #1292806.
* sd-device: initialize variableTom Gundersen2015-04-03
| | | | sysnum would not be initialized if sysname had no trailing digits.
* libsystemd: add sd-device libraryTom Gundersen2015-04-02
This provides equivalent functionality to libudev-device, but in the systemd style. The public API only caters to creating sd_device objects from for devices that already exist in /sys, there is no support for listening for monitoring events or creating devices received over the udev netlink protocol. The private API contains the necessary functionality to make sd-device a drop-in replacement for libudev-device, but which we would not otherwise want to export.