chiark / gitweb /
logind: add support for /run/nologin and /run/systemd/shutdown/scheduled
[elogind.git] / src / login / logind-session.h
index 3ec9d84f96e07f213465f3b7f27c9b8ce845b899..14117bd888b6c0433f0f304c2a065becc1ad4042 100644 (file)
@@ -25,10 +25,6 @@ typedef struct Session Session;
 typedef enum KillWho KillWho;
 
 #include "list.h"
-#include "util.h"
-#include "logind.h"
-#include "logind-seat.h"
-#include "logind-session-device.h"
 #include "logind-user.h"
 #include "login-shared.h"
 
@@ -93,8 +89,8 @@ struct Session {
         char *service;
         char *desktop;
 
+        /* Always NULL.  */
         char *scope;
-        char *scope_job;
 
         Seat *seat;
         unsigned int vtnr;
@@ -141,7 +137,7 @@ int session_create_fifo(Session *s);
 int session_start(Session *s);
 int session_stop(Session *s, bool force);
 int session_finalize(Session *s);
-void session_release(Session *s);
+int session_release(Session *s);
 int session_save(Session *s);
 int session_load(Session *s);
 int session_kill(Session *s, KillWho who, int signo);