]>
Commit | Line | Data |
---|---|---|
52ad194e | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
aa27b158 MP |
2 | #pragma once |
3 | ||
e3bff60a MP |
4 | /*** |
5 | This file is part of systemd. | |
6 | ||
7 | Copyright 2008-2012 Kay Sievers <kay@vrfy.org> | |
8 | Copyright 2015 Tom Gundersen <teg@jklm.no> | |
9 | ||
10 | systemd is free software; you can redistribute it and/or modify it | |
11 | under the terms of the GNU Lesser General Public License as published by | |
12 | the Free Software Foundation; either version 2.1 of the License, or | |
13 | (at your option) any later version. | |
14 | ||
15 | systemd is distributed in the hope that it will be useful, but | |
16 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 | Lesser General Public License for more details. | |
19 | ||
20 | You should have received a copy of the GNU Lesser General Public License | |
21 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
22 | ***/ | |
23 | ||
e3bff60a | 24 | #include "libudev.h" |
e3bff60a MP |
25 | #include "sd-device.h" |
26 | ||
db2df898 MP |
27 | #include "libudev-private.h" |
28 | ||
e3bff60a MP |
29 | /** |
30 | * udev_device: | |
31 | * | |
32 | * Opaque object representing one kernel sys device. | |
33 | */ | |
34 | struct udev_device { | |
35 | struct udev *udev; | |
36 | ||
37 | /* real device object */ | |
38 | sd_device *device; | |
39 | ||
40 | /* legacy */ | |
41 | int refcount; | |
42 | ||
43 | struct udev_device *parent; | |
44 | bool parent_set; | |
45 | ||
46 | struct udev_list properties; | |
47 | uint64_t properties_generation; | |
48 | struct udev_list tags; | |
49 | uint64_t tags_generation; | |
50 | struct udev_list devlinks; | |
51 | uint64_t devlinks_generation; | |
52 | bool properties_read:1; | |
53 | bool tags_read:1; | |
54 | bool devlinks_read:1; | |
55 | struct udev_list sysattrs; | |
56 | bool sysattrs_read; | |
57 | }; | |
58 | ||
59 | struct udev_device *udev_device_new(struct udev *udev); |