]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/libudev/libudev-device-internal.h
Add SPDX license identifiers to source files under the LGPL
[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
TG
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
f4ac4d1a
TG
24#include "libudev.h"
25#include "sd-device.h"
26
07630cea
LP
27#include "libudev-private.h"
28
f4ac4d1a
TG
29/**
30 * udev_device:
31 *
32 * Opaque object representing one kernel sys device.
33 */
34struct 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;
378f61eb
TG
52 bool properties_read:1;
53 bool tags_read:1;
54 bool devlinks_read:1;
f4ac4d1a
TG
55 struct udev_list sysattrs;
56 bool sysattrs_read;
57};
58
59struct udev_device *udev_device_new(struct udev *udev);