]> err.no Git - systemd/commitdiff
libudev: device - add udev_device_has_tag() to libudev.h and gtk-doc
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 7 Jul 2011 19:31:50 +0000 (21:31 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 7 Jul 2011 19:31:50 +0000 (21:31 +0200)
libudev/docs/libudev-sections.txt
libudev/libudev-device.c
libudev/libudev-private.h
libudev/libudev.h

index 2560a08e1faad44d7ddd301eb7f54a377ab8b347..6ccd02543812e43e6a748b0c154cd48ddfa5e3a5 100644 (file)
@@ -58,6 +58,7 @@ udev_device_get_sysattr_value
 udev_device_get_sysattr_list_entry
 udev_device_get_seqnum
 udev_device_get_usec_since_initialized
+udev_device_has_tag
 </SECTION>
 
 <SECTION>
index 1d4cb704c29794eb531404653102322663a6939d..025527bb8ab59f2114e34d812c5d8d48d5755b20 100644 (file)
@@ -1651,7 +1651,7 @@ UDEV_EXPORT int udev_device_has_tag(struct udev_device *udev_device, const char
        struct udev_list_entry *list_entry;
 
        if (udev_device == NULL)
-               return NULL;
+               return false;
        if (!udev_device->info_loaded)
                udev_device_read_db(udev_device, NULL);
        list_entry = udev_device_get_tags_list_entry(udev_device);
index 315ca3d700df870055be5751fc8d6ac844218896..9ef1408ac1b9e9eb609af326c6b433bdc975107d 100644 (file)
@@ -90,7 +90,6 @@ const char *udev_device_get_id_filename(struct udev_device *udev_device);
 void udev_device_set_is_initialized(struct udev_device *udev_device);
 int udev_device_add_tag(struct udev_device *udev_device, const char *tag);
 void udev_device_cleanup_tags_list(struct udev_device *udev_device);
-int udev_device_has_tag(struct udev_device *udev_device, const char *tag);
 int udev_device_get_timeout(struct udev_device *udev_device);
 unsigned long long udev_device_get_usec_initialized(struct udev_device *udev_device);
 void udev_device_set_usec_initialized(struct udev_device *udev_device, unsigned long long usec_initialized);
index 021ef9e8c0f186900fd4de6c3e0346bd74c95631..1d4a4ae520e7f72ba1bd74a887ce0fd8e2f14d24 100644 (file)
@@ -101,6 +101,7 @@ const char *udev_device_get_action(struct udev_device *udev_device);
 unsigned long long int udev_device_get_seqnum(struct udev_device *udev_device);
 unsigned long long int udev_device_get_usec_since_initialized(struct udev_device *udev_device);
 const char *udev_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr);
+int udev_device_has_tag(struct udev_device *udev_device, const char *tag);
 
 /*
  * udev_monitor