chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-icmp6-nd: Add helper function to get the IPv6 link MTU
[elogind.git]
/
src
/
login
/
logind-button.h
diff --git
a/src/login/logind-button.h
b/src/login/logind-button.h
index 83bf1fc70cb3503b18ab55ed5bb599b6c289c94b..72a612e9148acedf6d71607dd1756074333c4ab5 100644
(file)
--- a/
src/login/logind-button.h
+++ b/
src/login/logind-button.h
@@
-1,7
+1,6
@@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foologindbuttonhfoo
-#define foologindbuttonhfoo
+#pragma once
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-31,19
+30,19
@@
typedef struct Button Button;
struct Button {
Manager *manager;
struct Button {
Manager *manager;
- sd_event_source *event_source;
+ sd_event_source *io_event_source;
+ sd_event_source *check_event_source;
char *name;
char *seat;
int fd;
char *name;
char *seat;
int fd;
- bool lid_close_queued;
+ bool lid_closed;
+ bool docked;
};
Button* button_new(Manager *m, const char *name);
void button_free(Button*b);
int button_open(Button *b);
};
Button* button_new(Manager *m, const char *name);
void button_free(Button*b);
int button_open(Button *b);
-int button_recheck(Button *b);
int button_set_seat(Button *b, const char *sn);
int button_set_seat(Button *b, const char *sn);
-
-#endif
+int button_check_switches(Button *b);