Debian Codegraph @

src/login/logind-device.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "list.h"
5 #include "logind-forward.h"
6 #include "time-util.h"
7
8 typedef struct Device {
9 Manager *manager;
10
11 char *sysfs;
12 Seat *seat;
13 bool master;
14
15 dual_timestamp timestamp;
16
17 LIST_FIELDS(Device, devices);
18 LIST_HEAD(SessionDevice, session_devices);
19 } Device;
20
21 Device* device_new(Manager *m, const char *sysfs, bool master);
22 void device_free(Device *d);
23 void device_attach(Device *d, Seat *s);