]>
Commit | Line | Data |
---|---|---|
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 | ||
10 | typedef struct Device Device; | |
11 | ||
12 | #include "list.h" | |
90821c93 | 13 | #include "logind-seat.h" |
118ecf32 | 14 | #include "logind-session-device.h" |
90821c93 LP |
15 | |
16 | struct 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 | 29 | Device* device_new(Manager *m, const char *sysfs, bool master); |
90821c93 LP |
30 | void device_free(Device *d); |
31 | void device_attach(Device *d, Seat *s); |