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