]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/login/logind-button.h
Merge pull request #8417 from brauner/2018-03-09/add_bind_mount_fallback_to_private_d...
[thirdparty/systemd.git] / src / login / logind-button.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
05d3a176 2#pragma once
e9d21f24
LP
3
4/***
5 This file is part of systemd.
6
7 Copyright 2012 Lennart Poettering
e9d21f24
LP
8***/
9
10typedef struct Button Button;
11
e9d21f24
LP
12#include "logind.h"
13
14struct Button {
15 Manager *manager;
16
ed4ba7e4
LP
17 sd_event_source *io_event_source;
18 sd_event_source *check_event_source;
cc377381 19
e9d21f24
LP
20 char *name;
21 char *seat;
22 int fd;
65b51162 23
ed4ba7e4 24 bool lid_closed;
2d62c530 25 bool docked;
e9d21f24
LP
26};
27
28Button* button_new(Manager *m, const char *name);
29void button_free(Button*b);
30int button_open(Button *b);
e9d21f24 31int button_set_seat(Button *b, const char *sn);
2d62c530 32int button_check_switches(Button *b);