chiark / gitweb /
machined: split out machine registration stuff from logind
[elogind.git] / src / machine / machine.h
similarity index 90%
rename from src/login/logind-machine.h
rename to src/machine/machine.h
index a09f07195a615ad6251fdd4386668107f9b390e7..7501fa372e32eba00a73c7197dfeb6463b734a54 100644 (file)
 ***/
 
 typedef struct Machine Machine;
+typedef enum KillWho KillWho;
 
 #include "list.h"
 #include "util.h"
-#include "logind.h"
-#include "logind-session.h"
+#include "machined.h"
 
 typedef enum MachineState {
         MACHINE_OPENING,    /* Machine is being registered */
@@ -43,6 +43,13 @@ typedef enum MachineClass {
         _MACHINE_CLASS_INVALID = -1
 } MachineClass;
 
+enum KillWho {
+        KILL_LEADER,
+        KILL_ALL,
+        _KILL_WHO_MAX,
+        _KILL_WHO_INVALID = -1
+};
+
 struct Machine {
         Manager *manager;
 
@@ -97,3 +104,6 @@ MachineClass machine_class_from_string(const char *s) _pure_;
 
 const char* machine_state_to_string(MachineState t) _const_;
 MachineState machine_state_from_string(const char *s) _pure_;
+
+const char *kill_who_to_string(KillWho k) _const_;
+KillWho kill_who_from_string(const char *s) _pure_;