]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/login/logind-device.h
Merge pull request #9594 from filbranden/cpu_quota_period1
[thirdparty/systemd.git] / src / login / logind-device.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
c2f1db8f 2#pragma once
90821c93 3
90821c93
LP
4typedef struct Device Device;
5
6#include "list.h"
90821c93 7#include "logind-seat.h"
118ecf32 8#include "logind-session-device.h"
90821c93
LP
9
10struct 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 23Device* device_new(Manager *m, const char *sysfs, bool master);
90821c93
LP
24void device_free(Device *d);
25void device_attach(Device *d, Seat *s);