]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/libudev/libudev-device-internal.h
tree-wide: beautify remaining copyright statements
[thirdparty/systemd.git] / src / libudev / libudev-device-internal.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
0ef6f454
LP
2#pragma once
3
f4ac4d1a 4/***
96b2fb93
LP
5 Copyright © 2008-2012 Kay Sievers <kay@vrfy.org>
6 Copyright © 2015 Tom Gundersen <teg@jklm.no>
f4ac4d1a
TG
7***/
8
f4ac4d1a
TG
9#include "libudev.h"
10#include "sd-device.h"
11
07630cea
LP
12#include "libudev-private.h"
13
f4ac4d1a
TG
14/**
15 * udev_device:
16 *
17 * Opaque object representing one kernel sys device.
18 */
19struct udev_device {
20 struct udev *udev;
21
22 /* real device object */
23 sd_device *device;
24
25 /* legacy */
26 int refcount;
27
28 struct udev_device *parent;
29 bool parent_set;
30
31 struct udev_list properties;
32 uint64_t properties_generation;
33 struct udev_list tags;
34 uint64_t tags_generation;
35 struct udev_list devlinks;
36 uint64_t devlinks_generation;
378f61eb
TG
37 bool properties_read:1;
38 bool tags_read:1;
39 bool devlinks_read:1;
f4ac4d1a
TG
40 struct udev_list sysattrs;
41 bool sysattrs_read;
42};
43
44struct udev_device *udev_device_new(struct udev *udev);