chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login: fix re-use of users
[elogind.git]
/
src
/
login
/
logind-button.h
diff --git
a/src/login/logind-button.h
b/src/login/logind-button.h
index 95bb6a52402f166d05c5f46d51eccad57b35d1c1..80d93c7e6bdf691d4ffafbe803524ee7cd9d6479 100644
(file)
--- a/
src/login/logind-button.h
+++ b/
src/login/logind-button.h
@@
-5,7
+5,7
@@
/***
This file is part of systemd.
/***
This file is part of systemd.
- Copyright 201
4 Daniel Mack
+ Copyright 201
2 Lennart Poettering
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
@@
-21,24
+21,26
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-typedef struct BusEndpoint BusEndpoint;
-typedef struct BusEndpointPolicy BusEndpointPolicy;
+typedef struct Button Button;
-#include "hashmap.h"
-#include "bus-policy.h"
+#include "logind.h"
-struct BusEndpointPolicy {
- char *name;
- BusPolicyAccess access;
-};
+struct Button {
+ Manager *manager;
-struct BusEndpoint {
- Hashmap *policy_hash;
-};
+ sd_event_source *io_event_source;
+ sd_event_source *check_event_source;
-// UNNEEDED int bus_endpoint_new(BusEndpoint **ep);
-void bus_endpoint_free(BusEndpoint *endpoint);
+ char *name;
+ char *seat;
+ int fd;
-// UNNEEDED int bus_endpoint_add_policy(BusEndpoint *ep, const char *name, BusPolicyAccess access);
+ bool lid_closed;
+ bool docked;
+};
-int bus_kernel_set_endpoint_policy(int fd, uid_t uid, BusEndpoint *ep);
+Button* button_new(Manager *m, const char *name);
+void button_free(Button*b);
+int button_open(Button *b);
+int button_set_seat(Button *b, const char *sn);
+int button_check_switches(Button *b);