summaryrefslogtreecommitdiff
path: root/src/login/logind-button.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-24 16:22:23 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-24 16:22:23 +0100
commit2d62c530d2b4c2730abff715b7342f1402114513 (patch)
treea04f57d94d9b01a958b922da5608ba9630efff26 /src/login/logind-button.h
parent539237644eef4dbb9e5428dd249d7ee8392427d0 (diff)
logind: detect whether the system is docked, and if it is inhibit lid switch processing
This should make operation nicer with docking stations, but will not cover anything that does not implement SW_DOCK.
Diffstat (limited to 'src/login/logind-button.h')
-rw-r--r--src/login/logind-button.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/logind-button.h b/src/login/logind-button.h
index e85aa81d0a..72a612e914 100644
--- a/src/login/logind-button.h
+++ b/src/login/logind-button.h
@@ -38,10 +38,11 @@ struct Button {
int fd;
bool lid_closed;
+ bool docked;
};
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_lid(Button *b);
+int button_check_switches(Button *b);