chiark / gitweb /
logind: implement suspend/hibernate calls with inhibition logic
[elogind.git] / src / login / logind-inhibit.h
index 6364b00586a22ece7a253822c463dc16265c29e8..4377f00429332987fb0a3d64e3edf530324db9d4 100644 (file)
 ***/
 
 typedef struct Inhibitor Inhibitor;
+typedef enum InhibitWhat InhibitWhat;
 
 #include "list.h"
 #include "util.h"
-#include "logind.h"
-#include "logind-seat.h"
 
 typedef enum InhibitWhat {
         INHIBIT_SHUTDOWN = 1,
@@ -44,6 +43,9 @@ typedef enum InhibitMode {
         _INHIBIT_MODE_INVALID = -1
 } InhibitMode;
 
+#include "logind.h"
+#include "logind-seat.h"
+
 struct Inhibitor {
         Manager *manager;