chiark / gitweb /
inhibit: port to sd-bus
[elogind.git] / src / login / logind-session.h
index 9cf64850be8bc72b90ac60b9fc09c88573192d2c..f175a8995ee4e29509626bacfe21ab130e874fc6 100644 (file)
@@ -28,6 +28,7 @@ typedef enum KillWho KillWho;
 #include "util.h"
 #include "logind.h"
 #include "logind-seat.h"
+#include "logind-session-device.h"
 #include "logind-user.h"
 #include "login-shared.h"
 
@@ -106,6 +107,9 @@ struct Session {
 
         DBusMessage *create_message;
 
+        char *controller;
+        Hashmap *devices;
+
         LIST_FIELDS(Session, sessions_by_user);
         LIST_FIELDS(Session, sessions_by_seat);
 
@@ -154,3 +158,7 @@ SessionClass session_class_from_string(const char *s) _pure_;
 
 const char *kill_who_to_string(KillWho k) _const_;
 KillWho kill_who_from_string(const char *s) _pure_;
+
+bool session_is_controller(Session *s, const char *sender);
+int session_set_controller(Session *s, const char *sender, bool force);
+void session_drop_controller(Session *s);