chiark / gitweb /
tree-wide: drop license boilerplate
[elogind.git] / src / login / logind-device.h
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
10 typedef struct Device Device;
11
12 #include "list.h"
13 #include "logind-seat.h"
14 #include "logind-session-device.h"
15
16 struct 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
29 Device* device_new(Manager *m, const char *sysfs, bool master);
30 void device_free(Device *d);
31 void device_attach(Device *d, Seat *s);