]>
Commit | Line | Data |
---|---|---|
5ea78a39 YW |
1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
2 | #pragma once | |
3 | ||
4 | #include "libudev.h" | |
5 | ||
dcf557f7 | 6 | #include "macro.h" |
5ea78a39 | 7 | |
dcf557f7 | 8 | struct udev_list; |
5ea78a39 | 9 | |
dcf557f7 | 10 | struct udev_list *udev_list_new(bool unique); |
5ea78a39 | 11 | void udev_list_cleanup(struct udev_list *list); |
dcf557f7 YW |
12 | struct udev_list *udev_list_free(struct udev_list *list); |
13 | DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_list *, udev_list_free); | |
14 | ||
5ea78a39 YW |
15 | struct udev_list_entry *udev_list_get_entry(struct udev_list *list); |
16 | struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *name, const char *value); |