]>
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 | |
8 | ||
9 | systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
10 | under the terms of the GNU Lesser General Public License as published by |
11 | the Free Software Foundation; either version 2.1 of the License, or | |
90821c93 LP |
12 | (at your option) any later version. |
13 | ||
14 | systemd is distributed in the hope that it will be useful, but | |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
5430f7f2 | 17 | Lesser General Public License for more details. |
90821c93 | 18 | |
5430f7f2 | 19 | You should have received a copy of the GNU Lesser General Public License |
90821c93 LP |
20 | along with systemd; If not, see <http://www.gnu.org/licenses/>. |
21 | ***/ | |
22 | ||
23 | typedef struct Device Device; | |
24 | ||
25 | #include "list.h" | |
90821c93 | 26 | #include "logind-seat.h" |
118ecf32 | 27 | #include "logind-session-device.h" |
90821c93 LP |
28 | |
29 | struct Device { | |
30 | Manager *manager; | |
31 | ||
32 | char *sysfs; | |
33 | Seat *seat; | |
718d006a | 34 | bool master; |
90821c93 LP |
35 | |
36 | dual_timestamp timestamp; | |
37 | ||
38 | LIST_FIELDS(struct Device, devices); | |
118ecf32 | 39 | LIST_HEAD(SessionDevice, session_devices); |
90821c93 LP |
40 | }; |
41 | ||
718d006a | 42 | Device* device_new(Manager *m, const char *sysfs, bool master); |
90821c93 LP |
43 | void device_free(Device *d); |
44 | void device_attach(Device *d, Seat *s); |