chiark / gitweb /
install: improve paths we show the user when enabling/disabling
[elogind.git] / src / login / logind-button.h
index 824106cd24e5d3e8278ec666f5190ac57c1513e2..72a612e9148acedf6d71607dd1756074333c4ab5 100644 (file)
@@ -30,17 +30,19 @@ typedef struct Button Button;
 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;
 
-        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);
-int button_recheck(Button *b);
 int button_set_seat(Button *b, const char *sn);
+int button_check_switches(Button *b);