chiark / gitweb /
libudev: test - add udev_device_get_property_value()
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 6 Jan 2009 15:52:40 +0000 (16:52 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 6 Jan 2009 15:52:40 +0000 (16:52 +0100)
udev/lib/exported_symbols
udev/lib/test-libudev.c

index 86ab105..27314e4 100644 (file)
@@ -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
index fd12bd9..592a147 100644 (file)
@@ -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);