diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-17 23:32:43 -0700 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-17 23:32:43 -0700 |
commit | a076080bd43d55f0d4eabc9bef2bf46c9791372f (patch) | |
tree | 3377c3a7aa4d640b7a003705a776a67f3a4f7798 /udev/lib/test-libudev.c | |
parent | 7bcbf7ecc81be6be2a0862c9d713fe41869ecba3 (diff) |
libudev: pass udev_device in enumerate
Diffstat (limited to 'udev/lib/test-libudev.c')
-rw-r--r-- | udev/lib/test-libudev.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c index 929fd66730..50123f6ec7 100644 --- a/udev/lib/test-libudev.c +++ b/udev/lib/test-libudev.c @@ -116,11 +116,12 @@ static int test_device_parents(struct udev *udev, const char *syspath) return 0; } -static int devices_enum_cb(struct udev *udev, - const char *devpath, const char *subsystem, const char *name, - void *data) +static int devices_enum_cb(struct udev_device *device, void *data) { - printf("device: '%s' (%s) '%s'\n", devpath, subsystem, name); + printf("device: '%s' (%s) '%s'\n", + udev_device_get_syspath(device), + udev_device_get_subsystem(device), + udev_device_get_sysname(device)); return 0; } |