diff options
author | Tom Gundersen <teg@jklm.no> | 2015-03-15 17:10:17 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-03-18 21:34:18 -0400 |
commit | 0199ac5afb7dd621a9cbdebbeabc96c70638438e (patch) | |
tree | 7bc9dce08e66728da4965f8a5b28d8bd6b44a82b /src/udev | |
parent | 9b2f02162bf4ffecb1386d2fc75ca5648bb134ce (diff) |
libudev: private - introduce udev_device_new_from_synthetic_event()
This allows set_action(), read_uevent_file() and read_db() to be made internal to libudev.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udevadm-test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/udev/udevadm-test.c b/src/udev/udevadm-test.c index 4922b5b6ac..9a9bfa97cc 100644 --- a/src/udev/udevadm-test.c +++ b/src/udev/udevadm-test.c @@ -120,18 +120,16 @@ static int adm_test(struct udev *udev, int argc, char *argv[]) { strscpy(filename, sizeof(filename), syspath); util_remove_trailing_chars(filename, '/'); - dev = udev_device_new_from_syspath(udev, filename); + dev = udev_device_new_from_synthetic_event(udev, filename, action); if (dev == NULL) { fprintf(stderr, "unable to open device '%s'\n", filename); rc = 4; goto out; } - /* skip reading of db, but read kernel parameters */ + /* don't read info from the db */ udev_device_set_info_loaded(dev); - udev_device_read_uevent_file(dev); - udev_device_set_action(dev, action); event = udev_event_new(dev); sigfillset(&mask); |