str = udev_device_get_syspath(device);
printf("syspath: '%s'\n", str);
+ str = udev_device_get_sysname(device);
+ printf("sysname: '%s'\n", str);
+
+ str = udev_device_get_sysnum(device);
+ if (str != NULL)
+ printf("sysnum: '%s'\n", str);
+
str = udev_device_get_devpath(device);
printf("devpath: '%s'\n", str);
if (count > 0)
printf("found %i properties\n", count);
- str = udev_device_get_attr_value(device, "dev");
+ str = udev_device_get_sysattr_value(device, "dev");
if (str != NULL)
printf("attr{dev}: '%s'\n", str);