diff options
author | Kay Sievers <kay@vrfy.org> | 2012-05-15 22:57:58 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-05-15 23:06:26 +0200 |
commit | 20bbd54f603994a3cc211d2795de16550882ed8d (patch) | |
tree | de65aaa655d6c3d50d52c7c5db8607fc83a550a8 /src/libudev/libudev-queue.c | |
parent | 6e92b23f0d6dd398848376bbaf47e54a90ed3389 (diff) |
udev: libudev - bump soname, remove deprecated functions, introduce symbol versions
Diffstat (limited to 'src/libudev/libudev-queue.c')
-rw-r--r-- | src/libudev/libudev-queue.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/libudev/libudev-queue.c b/src/libudev/libudev-queue.c index 81f40db208..15a7f558b1 100644 --- a/src/libudev/libudev-queue.c +++ b/src/libudev/libudev-queue.c @@ -93,15 +93,16 @@ _public_ struct udev_queue *udev_queue_ref(struct udev_queue *udev_queue) * Drop a reference of a udev queue context. If the refcount reaches zero, * the resources of the queue context will be released. **/ -_public_ void udev_queue_unref(struct udev_queue *udev_queue) +_public_ struct udev_queue *udev_queue_unref(struct udev_queue *udev_queue) { if (udev_queue == NULL) - return; + return NULL; udev_queue->refcount--; if (udev_queue->refcount > 0) - return; + return udev_queue; udev_list_cleanup(&udev_queue->queue_list); free(udev_queue); + return NULL; } /** @@ -469,11 +470,3 @@ _public_ struct udev_list_entry *udev_queue_get_queued_list_entry(struct udev_qu return udev_list_get_entry(&udev_queue->queue_list); } - -struct udev_list_entry *udev_queue_get_failed_list_entry(struct udev_queue *udev_queue); -_public_ struct udev_list_entry *udev_queue_get_failed_list_entry(struct udev_queue *udev_queue) -{ - udev_err(udev_queue->udev, "udev_queue_get_failed_list_entry() does not return anything; failed events are not recorded\n"); - errno = ENOSYS; - return NULL; -} |