HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

src/libudev/libudev-util.h

Git blob: eb899f9f1dd3d47ca1216e672e201cd88ef038ee

Lines 1–15 of 15

/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
 
#include "libudev.h"
 
#include "forward.h"
 
/* Cleanup functions */
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_device*, udev_device_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_enumerate*, udev_enumerate_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_hwdb*, udev_hwdb_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_queue*, udev_queue_unref);