diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-07 21:31:50 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-07 21:31:50 +0200 |
commit | b59c22a7587201d24087567e2eb93ab78c74187a (patch) | |
tree | 90c088beda6096c1065a02857a83c306aa8558cb /libudev | |
parent | d21781c4576e161ada21447e4d85d82b86b381b4 (diff) |
libudev: device - add udev_device_has_tag() to libudev.h and gtk-doc
Diffstat (limited to 'libudev')
-rw-r--r-- | libudev/docs/libudev-sections.txt | 1 | ||||
-rw-r--r-- | libudev/libudev-device.c | 2 | ||||
-rw-r--r-- | libudev/libudev-private.h | 1 | ||||
-rw-r--r-- | libudev/libudev.h | 1 |
4 files changed, 3 insertions, 2 deletions
diff --git a/libudev/docs/libudev-sections.txt b/libudev/docs/libudev-sections.txt index 2560a08e1f..6ccd025438 100644 --- a/libudev/docs/libudev-sections.txt +++ b/libudev/docs/libudev-sections.txt @@ -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> diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c index 1d4cb704c2..025527bb8a 100644 --- a/libudev/libudev-device.c +++ b/libudev/libudev-device.c @@ -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); diff --git a/libudev/libudev-private.h b/libudev/libudev-private.h index 315ca3d700..9ef1408ac1 100644 --- a/libudev/libudev-private.h +++ b/libudev/libudev-private.h @@ -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); diff --git a/libudev/libudev.h b/libudev/libudev.h index 021ef9e8c0..1d4a4ae520 100644 --- a/libudev/libudev.h +++ b/libudev/libudev.h @@ -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 |