chiark / gitweb /
__thread --> thread_local for C11 compat
[elogind.git] / src / login / logind-session.h
index f7a9dbc24932c77dff1724e26fc38a7afa8f528c..ee931013dd9cbdc01e76779bbe0508c3da8a56d8 100644 (file)
@@ -89,8 +89,10 @@ struct Session {
         char *scope;
         char *scope_job;
 
-        int vtnr;
         Seat *seat;
+        unsigned int vtnr;
+        int vtfd;
+        sd_event_source *vt_source;
 
         pid_t leader;
         uint32_t audit_id;
@@ -105,7 +107,6 @@ struct Session {
 
         bool in_gc_queue:1;
         bool started:1;
-        bool closing:1;
 
         sd_bus_message *create_message;
 
@@ -162,6 +163,9 @@ 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_;
 
+void session_mute_vt(Session *s);
+void session_restore_vt(Session *s);
+
 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);