]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
c2f1db8f | 2 | #pragma once |
90821c93 | 3 | |
90821c93 LP |
4 | typedef struct Device Device; |
5 | ||
6 | #include "list.h" | |
90821c93 | 7 | #include "logind-seat.h" |
118ecf32 | 8 | #include "logind-session-device.h" |
90821c93 LP |
9 | |
10 | struct Device { | |
11 | Manager *manager; | |
12 | ||
13 | char *sysfs; | |
14 | Seat *seat; | |
718d006a | 15 | bool master; |
90821c93 LP |
16 | |
17 | dual_timestamp timestamp; | |
18 | ||
19 | LIST_FIELDS(struct Device, devices); | |
118ecf32 | 20 | LIST_HEAD(SessionDevice, session_devices); |
90821c93 LP |
21 | }; |
22 | ||
718d006a | 23 | Device* device_new(Manager *m, const char *sysfs, bool master); |
90821c93 LP |
24 | void device_free(Device *d); |
25 | void device_attach(Device *d, Seat *s); |