Line data Source code
1 : /* SPDX-License-Identifier: LGPL-2.1+ */ 2 : #pragma once 3 : 4 : #include "libudev.h" 5 : 6 : #include "macro.h" 7 : 8 : struct udev_list; 9 : 10 : struct udev_list *udev_list_new(bool unique); 11 : void udev_list_cleanup(struct udev_list *list); 12 : struct udev_list *udev_list_free(struct udev_list *list); 13 1 : DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_list *, udev_list_free); 14 : 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);