summaryrefslogtreecommitdiff
path: root/udev/lib/test-libudev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-17 23:32:43 -0700
committerKay Sievers <kay.sievers@vrfy.org>2008-09-17 23:32:43 -0700
commita076080bd43d55f0d4eabc9bef2bf46c9791372f (patch)
tree3377c3a7aa4d640b7a003705a776a67f3a4f7798 /udev/lib/test-libudev.c
parent7bcbf7ecc81be6be2a0862c9d713fe41869ecba3 (diff)
libudev: pass udev_device in enumerate
Diffstat (limited to 'udev/lib/test-libudev.c')
-rw-r--r--udev/lib/test-libudev.c9
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;
}