chiark / gitweb /
Prep v234: Apply missing upstream fixes in src/login (3/6)
[elogind.git] / src / login / logind-button.h
index 1c5a84553d21ca7dc6322fdec083b255cbb45a85..f30cba29594d712e59de1c5ba1d70b2a743d73b4 100644 (file)
@@ -1,7 +1,4 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
-#ifndef foologindbuttonhfoo
-#define foologindbuttonhfoo
+#pragma once
 
 /***
   This file is part of systemd.
 
 typedef struct Button Button;
 
-#include "list.h"
-#include "util.h"
 #include "logind.h"
 
 struct Button {
         Manager *manager;
 
+        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_process(Button *b);
-int button_recheck(Button *b);
 int button_set_seat(Button *b, const char *sn);
-
-#endif
+int button_check_switches(Button *b);