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