diff options
author | Tom Gundersen <teg@jklm.no> | 2015-03-15 17:10:17 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-03-18 14:49:20 +0100 |
commit | bf0e00ec58c0d203d0654c083bbe5c6d9cb23328 (patch) | |
tree | b4dada5643a9a705ab292a3ad8d4846b36c8642b /src/test | |
parent | 1b41981d9a62443d566df6bcabc1b5024e9f5e4a (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.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-udev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test-udev.c b/src/test/test-udev.c index 4403624c5a..23b7faa939 100644 --- a/src/test/test-udev.c +++ b/src/test/test-udev.c @@ -110,13 +110,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); |