chiark / gitweb /
6b0d506aba38641f43493908c58aa7d8b8ababde
[elogind.git] / src / shared / udev-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4
5 #if 0 /// elogind needs the systems udev header
6 #include "udev.h"
7 #else
8 #include <libudev.h>
9 #endif // 0
10 #include "util.h"
11
12 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref);
13 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_device*, udev_device_unref);
14 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_enumerate*, udev_enumerate_unref);
15 #if 0 /// UNNEEDED by elogind
16 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_event*, udev_event_unref);
17 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_rules*, udev_rules_unref);
18 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_ctrl*, udev_ctrl_unref);
19 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_ctrl_connection*, udev_ctrl_connection_unref);
20 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_ctrl_msg*, udev_ctrl_msg_unref);
21 #endif // 0
22 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref);
23
24 #if 0 /// UNNEEDED by elogind
25 #endif // 0
26 int udev_parse_config(void);
27
28 int udev_device_new_from_stat_rdev(struct udev *udev, const struct stat *st, struct udev_device **ret);