diff options
author | 2015-03-15 17:10:17 +0100 | |
---|---|---|
committer | 2015-03-18 21:34:18 -0400 | |
commit | 0199ac5afb7dd621a9cbdebbeabc96c70638438e (patch) | |
tree | 7bc9dce08e66728da4965f8a5b28d8bd6b44a82b /test | |
parent | libudev-monitor: use initialization (diff) | |
download | eudev-0199ac5afb7dd621a9cbdebbeabc96c70638438e.tar.gz eudev-0199ac5afb7dd621a9cbdebbeabc96c70638438e.tar.bz2 eudev-0199ac5afb7dd621a9cbdebbeabc96c70638438e.zip |
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 'test')
-rw-r--r-- | test/test-udev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test-udev.c b/test/test-udev.c index b59a7969a..817f08fda 100644 --- a/test/test-udev.c +++ b/test/test-udev.c @@ -125,13 +125,12 @@ int main(int argc, char *argv[]) { rules = udev_rules_new(udev, 1); strscpyl(syspath, sizeof(syspath), "/sys", devpath, NULL); - dev = udev_device_new_from_syspath(udev, syspath); + dev = udev_device_new_from_synthetic_event(udev, syspath, action); if (dev == NULL) { log_debug("unknown device '%s'", devpath); goto out; } - udev_device_set_action(dev, action); event = udev_event_new(dev); sigfillset(&mask); |