]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - src/login/logind-device.h
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / login / logind-device.h
... / ...
CommitLineData
1/* SPDX-License-Identifier: LGPL-2.1+ */
2#pragma once
3
4/***
5 This file is part of systemd.
6
7 Copyright 2011 Lennart Poettering
8***/
9
10typedef struct Device Device;
11
12#include "list.h"
13#include "logind-seat.h"
14#include "logind-session-device.h"
15
16struct Device {
17 Manager *manager;
18
19 char *sysfs;
20 Seat *seat;
21 bool master;
22
23 dual_timestamp timestamp;
24
25 LIST_FIELDS(struct Device, devices);
26 LIST_HEAD(SessionDevice, session_devices);
27};
28
29Device* device_new(Manager *m, const char *sysfs, bool master);
30void device_free(Device *d);
31void device_attach(Device *d, Seat *s);