summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-device.c
Commit message (Collapse)AuthorAge
* Remove src/libudevAndy Wingo2015-04-19
|
* libudev: device - replace by a thin wrapper around sd-deviceTom Gundersen2015-04-02
|
* libudev: private - introduce udev_device_new_from_synthetic_event()Tom Gundersen2015-03-18
| | | | This allows set_action(), read_uevent_file() and read_db() to be made internal to libudev.
* udev: downgrade "has devpath" and "filled with db file" messagesZbigniew Jędrzejewski-Szmek2015-03-14
| | | | | | Udev debug messages have to be significantly overhauled... For now just downgrade those two. They are responsible for approximately 25% of debug output during boot and are rather useless.
* udev: make set_usec_initialized() internal to libudevTom Gundersen2015-03-13
| | | | | Instead introduce ensure_usec_initialized(), which copies the timestamp if possible otherwise sets it to now(CLOCK_MONOTONIC).
* libudev: introduce clone_with_db()Tom Gundersen2015-03-12
| | | | This allows us to move the db reading from udevd to libudev.
* libudev: introduce udev_device_properties_copy()Tom Gundersen2015-03-12
| | | | To copy properties from one device to another. Drop the equivalent functionality from udevd.
* libudev: udev_device_read_db - drop unused argumentTom Gundersen2015-03-09
|
* libudev: udev_device_add_property - implicitly mark properties for saving to dbTom Gundersen2015-03-09
| | | | | | Properties should only be saved to the db when added to the udev_device by udevd, and only if the property does not start with a '.'. Make this implicit rather than expose the marking of properties.
* udev/libudev: event - move {OLD_,}INTERFACE handling from udevd to libudevTom Gundersen2015-03-09
| | | | This should be internal to the library as it is only about reflecting the sysfs state in the udev_device.
* libudev: private - make property_from_string_parse* staticTom Gundersen2015-03-09
|
* util: rework strappenda(), and rename it strjoina()Lennart Poettering2015-02-03
| | | | | | After all it is now much more like strjoin() than strappend(). At the same time, add support for NULL sentinels, even if they are normally not necessary.
* libudev: private - drop some functions from the internal APITom Gundersen2015-01-26
|
* libudev: monitor - move nulstr parsing to libudev-deviceTom Gundersen2015-01-26
| | | | Hide the details a bit.
* udev: event - introduce and use internal udev_device_shallow_clone()Tom Gundersen2015-01-26
|
* udev: event - move renaming of udev_device to libudevTom Gundersen2015-01-26
| | | | | This is not exposed in the public API. We want to simplify the internal libudev-device API as much as possible so that it will be simpler to rip the whole thing out in the future.
* Assorted format fixesZbigniew Jędrzejewski-Szmek2015-01-22
| | | | | Types used for pids and uids in various interfaces are unpredictable. Too bad.
* use correct format typesThomas Hindoe Paaboel Andersen2014-12-11
|
* libudev: set errno properly in all error conditions of ↵Lennart Poettering2014-12-03
| | | | udev_device_new_from_syspath()
* treewide: another round of simplificationsMichal Schmidt2014-11-28
| | | | | Using the same scripts as in f647962d64e "treewide: yet more log_*_errno + return simplifications".
* treewide: use log_*_errno whenever %m is in the format stringMichal Schmidt2014-11-28
| | | | | | | | | | | If the format string contains %m, clearly errno must have a meaningful value, so we might as well use log_*_errno to have ERRNO= logged. Using: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/' Plus some whitespace, linewrap, and indent adjustments.
* treewide: drop unnecessary trailing \n in log_*() callsMichal Schmidt2014-11-28
|
* udev: move global property handling from libudev to udevdKay Sievers2014-11-13
|
* udev: switch to systemd logging functionsKay Sievers2014-11-13
|
* udev: fix path for database names on 'change' eventRobert Milasan2014-09-18
| | | | | | | | | | | If a device does not have a major/minor number attached, we use different database names than if it does. On "change" events, we didn't copy the devnum over, therefore, we used different paths than on 'add' or 'remove' events (where devnum was properly copied). Fix this by always copying the devnum into the udev-device. (David: added commit-log from email)
* udev: allow removing tags via TAG-="foobar"David Herrmann2014-09-11
| | | | | | | | | | This extends the udev parser to support OP_REMOVE (-=) and adds support for TAG-= to remove previously set tags. We don't fail if the tag didn't exist. This is pretty handy if we ship default rules for seat-assignments and users want to exclude specific devices from that. They can easily add rules that drop any automatically added "seat" tags again.
* libudev: set errno when udev_device_new_from_* or udev_device_get_parent_* failTom Gundersen2014-08-01
|
* Remove unnecessary casts in printfsZbigniew Jędrzejewski-Szmek2014-05-15
| | | | No functional change expected :)
* everywhere: make use of new0() and macro() macros, and stop using perror()Lennart Poettering2014-02-13
|
* use memzero(foo, length); for all memset(foo, 0, length); callsGreg KH2014-01-31
| | | | | | | | In trying to track down a stupid linker bug, I noticed a bunch of memset() calls that should be using memzero() to make it more "obvious" that the options are correct (i.e. 0 is not the length, but the data to set). So fix up all current calls to memset(foo, 0, length) to memzero(foo, length).
* libudev: devices received from udev are always initializedKay Sievers2013-12-18
|
* docs: remove unneeded the's in gudev docsZbigniew Jędrzejewski-Szmek2013-11-30
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=72164
* libudev: always return NULL in _unref() APIsLennart Poettering2013-11-20
| | | | | | | | | | | | | Returning anything else but NULL would suggest the caller's reference might still be valid, but it isn't, because the caller just invoked _unref() after all. This turns the return value into a typesafe shortcut that allows unreffing and resetting a reference in one line. In contrast to solutions for this which take a pointer to a pointer to accomplish the same this solution is just syntactic sugar the developer can make use of but doesn't have to, and this is particularly useful when immediately unreffing objects returned by function calls.
* libudev: always return valid negative error codes on API functionsLennart Poettering2013-11-20
|
* udev: declare some symbols staticKay Sievers2013-11-13
|
* typo fixes in man and commentsThomas Hindoe Paaboel Andersen2013-08-15
|
* hwdb: add --device=<device-id> and --filter=<key name glob>Kay Sievers2013-07-01
|
* libude: remove special handling of "device" link, it should not be usedKay Sievers2013-03-20
|
* libudev: implement udev_device_set_attribute_value()Hannes Reinecke2013-03-13
|
* udev: move string copy functions to shared/Kay Sievers2013-01-09
|
* udev: in addition to DEVMODE, honor DEVUID, DEVGID from the ueventKay Sievers2012-12-31
|
* libudev: do not resolve $attr{device} symlinksKay Sievers2012-11-20
|
* libudev: update copyright headersKay Sievers2012-11-12
|
* udev: use usec_t and now()Kay Sievers2012-11-12
|
* udev: remove SYMLINK "unique" optionKay Sievers2012-10-08
|
* man: fix a bunch of typos in docsThomas Hindoe Paaboel Andersen2012-09-13
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=54501
* udev: export udev_device_new_from_device_id()Kay Sievers2012-08-10
|
* udev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /runKay Sievers2012-07-15
|
* udev: update docs, NEWSKay Sievers2012-05-15
|
* udev: libudev - bump soname, remove deprecated functions, introduce symbol ↵Kay Sievers2012-05-15
| | | | versions