chiark / gitweb /
Prep v231.2: Really set an extra wall message (if any) and display it when cancelling...
[elogind.git] / src / login / logind-button.h
index e85aa81d0a8e75b5fc6ad310111a43c8918e5343..f30cba29594d712e59de1c5ba1d70b2a743d73b4 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 #pragma once
 
 /***
@@ -23,8 +21,6 @@
 
 typedef struct Button Button;
 
-#include "list.h"
-#include "util.h"
 #include "logind.h"
 
 struct Button {
@@ -38,10 +34,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);