1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3 
4 #include "libudev.h"
5 
6 #include "macro.h"
7 
8 /* Cleanup functions */
9 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref);
10 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_device*, udev_device_unref);
11 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_enumerate*, udev_enumerate_unref);
12 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref);
13 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_hwdb*, udev_hwdb_unref);
14 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_queue*, udev_queue_unref);
15