chiark / gitweb /
logind: detect whether the system is docked, and if it is inhibit lid switch processing
[elogind.git] / src / login / logind-button.h
index e85aa81d0a8e75b5fc6ad310111a43c8918e5343..72a612e9148acedf6d71607dd1756074333c4ab5 100644 (file)
@@ -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);