From: Kay Sievers Date: Tue, 6 Jan 2009 15:52:40 +0000 (+0100) Subject: libudev: test - add udev_device_get_property_value() X-Git-Tag: 174~1210 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=56c141eceb34041aa68bb9695c23eda165f47726 libudev: test - add udev_device_get_property_value() --- diff --git a/udev/lib/exported_symbols b/udev/lib/exported_symbols index 86ab1059f..27314e4a2 100644 --- a/udev/lib/exported_symbols +++ b/udev/lib/exported_symbols @@ -29,7 +29,7 @@ udev_device_get_subsystem udev_device_get_devtype udev_device_get_devlinks_list_entry udev_device_get_properties_list_entry -udev_device_get_properties_value +udev_device_get_property_value udev_device_get_action udev_device_get_driver udev_device_get_devnum diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c index fd12bd934..592a147e0 100644 --- a/udev/lib/test-libudev.c +++ b/udev/lib/test-libudev.c @@ -101,6 +101,10 @@ static void print_device(struct udev_device *device) if (count > 0) printf("found %i properties\n", count); + str = udev_device_get_property_value(device, "MAJOR"); + if (str != NULL) + printf("MAJOR: '%s'\n", str); + str = udev_device_get_sysattr_value(device, "dev"); if (str != NULL) printf("attr{dev}: '%s'\n", str);